updates.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 12 Mar 2002 18:29:25 +0000 (18:29 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 12 Mar 2002 18:29:25 +0000 (18:29 +0000)
TODO
lib/silcutil/silcnet.c
lib/silcutil/silcsockconn.c

diff --git a/TODO b/TODO
index 322e71f0792fc5dee65317a83331b397127010e0..96edf53dcffc51d78a40a10fc7953452c12be482 100644 (file)
--- a/TODO
+++ b/TODO
@@ -48,6 +48,8 @@ TODO/bugs In SILC Server
 
        o Add rehashing support.
 
+ o IPv6 support problems.
+
  o If server send CUMODE_CHANGE notify (like setting founder) to router
    and router does not have founder on channel (founder is left or there's
    no founder on channel at all), the router will accept the server's
index da0635952b313189308f881916f83a7aa3165e6b..c685e6375efc9a2c5b45bc08fe1fda234b73787d 100644 (file)
@@ -115,14 +115,15 @@ SILC_TASK_CALLBACK(silc_net_resolve_completion)
 static void *silc_net_gethostbyname_thread(void *context)
 {
   SilcNetResolveContext r = (SilcNetResolveContext)context;
+  SilcSchedule schedule = r->schedule;
   char tmp[64];
 
   if (silc_net_gethostbyname(r->input, r->prefer_ipv6, tmp, sizeof(tmp)))
     r->result = strdup(tmp);
 
-  silc_schedule_task_add(r->schedule, 0, silc_net_resolve_completion, r, 0, 1,
+  silc_schedule_task_add(schedule, 0, silc_net_resolve_completion, r, 0, 1,
                         SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL);
-  silc_schedule_wakeup(r->schedule);
+  silc_schedule_wakeup(schedule);
   return NULL;
 }
 
@@ -131,14 +132,15 @@ static void *silc_net_gethostbyname_thread(void *context)
 static void *silc_net_gethostbyaddr_thread(void *context)
 {
   SilcNetResolveContext r = (SilcNetResolveContext)context;
+  SilcSchedule schedule = r->schedule;
   char tmp[256];
 
   if (silc_net_gethostbyaddr(r->input, tmp, sizeof(tmp)))
     r->result = strdup(tmp);
 
-  silc_schedule_task_add(r->schedule, 0, silc_net_resolve_completion, r, 0, 1,
+  silc_schedule_task_add(schedule, 0, silc_net_resolve_completion, r, 0, 1,
                         SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL);
-  silc_schedule_wakeup(r->schedule);
+  silc_schedule_wakeup(schedule);
   return NULL;
 }
 
index ad07a2b6cbb9943c8b9cef5b1fe1d32fcd4601a4..c32aaf8cc571b3fdf11959fabc086fa4078c93a3 100644 (file)
@@ -184,6 +184,7 @@ static void *silc_socket_host_lookup_start(void *context)
 {
   SilcSocketHostLookup lookup = (SilcSocketHostLookup)context;
   SilcSocketConnection sock = lookup->sock;
+  SilcSchedule schedule = lookup->schedule;
 
   if (lookup->port)
     sock->port = silc_net_get_remote_port(sock->sock);
@@ -192,10 +193,10 @@ static void *silc_socket_host_lookup_start(void *context)
   if (!sock->hostname && sock->ip)
     sock->hostname = strdup(sock->ip);
 
-  silc_schedule_task_add(lookup->schedule, sock->sock,
+  silc_schedule_task_add(schedule, sock->sock,
                         silc_socket_host_lookup_finish, lookup, 0, 1,
                         SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL);
-  silc_schedule_wakeup(lookup->schedule);
+  silc_schedule_wakeup(schedule);
 
   return NULL;
 }