projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ppl: update to new version.
[openwrt.git]
/
package
/
ead
/
src
/
ead-client.c
diff --git
a/package/ead/src/ead-client.c
b/package/ead/src/ead-client.c
index
2592c8f
..
54d8b13
100644
(file)
--- a/
package/ead/src/ead-client.c
+++ b/
package/ead/src/ead-client.c
@@
-62,6
+62,7
@@
static struct t_num *A, B;
static struct t_preconf *tcp;
static int auth_type = EAD_AUTH_DEFAULT;
static int timeout = EAD_TIMEOUT;
static struct t_preconf *tcp;
static int auth_type = EAD_AUTH_DEFAULT;
static int timeout = EAD_TIMEOUT;
+static uint16_t sid = 0;
static void
set_nonblock(int enable)
static void
set_nonblock(int enable)
@@
-157,6
+158,7
@@
handle_pong(void)
auth_type = ntohs(pong->auth_type);
if (nid == 0xffff)
printf("%04x: %s\n", ntohs(msg->nid), pong->name);
auth_type = ntohs(pong->auth_type);
if (nid == 0xffff)
printf("%04x: %s\n", ntohs(msg->nid), pong->name);
+ sid = msg->sid;
return true;
}
return true;
}
@@
-320,7
+322,7
@@
int main(int argc, char **argv)
int ch;
msg->magic = htonl(EAD_MAGIC);
int ch;
msg->magic = htonl(EAD_MAGIC);
- msg->
t
id = 0;
+ msg->
s
id = 0;
memset(&local, 0, sizeof(local));
memset(&remote, 0, sizeof(remote));
memset(&local, 0, sizeof(local));
memset(&remote, 0, sizeof(remote));
@@
-405,12
+407,11
@@
int main(int argc, char **argv)
fprintf(stderr, "Device did not accept user name\n");
return 1;
}
fprintf(stderr, "Device did not accept user name\n");
return 1;
}
+ timeout = EAD_TIMEOUT_LONG;
if (!get_prime()) {
fprintf(stderr, "Failed to get user password info\n");
return 1;
}
if (!get_prime()) {
fprintf(stderr, "Failed to get user password info\n");
return 1;
}
-
- timeout = EAD_TIMEOUT_LONG;
if (!send_a()) {
fprintf(stderr, "Failed to send local authentication data\n");
return 1;
if (!send_a()) {
fprintf(stderr, "Failed to send local authentication data\n");
return 1;
This page took
0.025619 seconds
and
4
git commands to generate.