X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/15f9be10118e488ce12a590157ff6f619cd26d54..04553c0968af8a8a0df3f0b6a7301432dc426477:/package/ead/src/ead-client.c diff --git a/package/ead/src/ead-client.c b/package/ead/src/ead-client.c index 2592c8f15..7f462c180 100644 --- 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 uint16_t sid = 0; 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); + sid = msg->sid; return true; } @@ -320,7 +322,7 @@ int main(int argc, char **argv) int ch; msg->magic = htonl(EAD_MAGIC); - msg->tid = 0; + msg->sid = 0; memset(&local, 0, sizeof(local)); memset(&remote, 0, sizeof(remote));