/[pengfork]/pengfork/src/iptunnel/init.c
ViewVC logotype

Diff of /pengfork/src/iptunnel/init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by chupa, Sat Sep 7 22:32:04 2002 UTC revision 1.2 by chupa, Sun Sep 8 16:38:59 2002 UTC
# Line 49  void Line 49  void
49  ip_tunnel_init (buffer)  ip_tunnel_init (buffer)
50       buffer_t *buffer;       buffer_t *buffer;
51  {  {
52    char *fdo;    struct ip_config_request request = DEFAULT_IP_CONFIG_REQUEST;
   struct ip_config_request *request;  
53    
54    fdo = malloc (sizeof (token_t) + sizeof (struct ip_config_request));    fdo_send (buffer, TOKEN ("ya"), (char *) &request, sizeof (request));
   request = (struct ip_config_request *) (fdo + sizeof (token_t));  
   *request = DEFAULT_IP_CONFIG_REQUEST;  
   
   fdo_send (buffer, TOKEN ("ya"), (char *) fdo, sizeof (*request));  
   free (fdo);  
55    
56    fdo_register ( TOKEN ("ya"), ip_tunnel_config);    fdo_register ( TOKEN ("ya"), ip_tunnel_config);
57  }  }
# Line 103  ip_tunnel_config (token, data, data_size Line 97  ip_tunnel_config (token, data, data_size
97    
98    engine_register (*(iface->fd), 0, init_iface, NULL, get_ip_client, NULL);    engine_register (*(iface->fd), 0, init_iface, NULL, get_ip_client, NULL);
99    
100      acout = out;
101    fdo_register ( TOKEN ("yc"), get_ip_aol);    fdo_register ( TOKEN ("yc"), get_ip_aol);
102    fdo_register ( TOKEN ("yd"), get_ip_aol);    fdo_register ( TOKEN ("yd"), get_ip_aol);
103  }  }
# Line 112  init_iface (in, out) Line 107  init_iface (in, out)
107       buffer_t *in;       buffer_t *in;
108       buffer_t *out;       buffer_t *out;
109  {  {
110      ifout = out;
111      create_buffer(in,2*mtu);
112      create_buffer(out,2*mtu);
113  }  }
114    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26