/[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.17 by chupa, Sat Feb 8 00:00:14 2003 UTC revision 1.18 by chupa, Fri May 16 15:28:45 2003 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 2002-2003  Jean-Charles Salzeber <jc@varspool.net>   * Copyright (C) 2002-2003  Jean-Charles Salzeber <chupa@penggy.org>
3   *   *
4   * This file is part of penggy.   * This file is part of penggy.
5   *   *
# Line 68  Line 68 
68  #include "iptunnel/aol2cli.h"  #include "iptunnel/aol2cli.h"
69  #include "iptunnel/cli2aol.h"  #include "iptunnel/cli2aol.h"
70    
71    #include "stream.h"
72    #include "fdo/bytecode.h"
73    
74  buffer_t *acout, *ifout;  buffer_t *acout, *ifout;
75    
76  int ipnum = 1;  int ipnum = 1;
# Line 102  ip_tunnel_init () Line 105  ip_tunnel_init ()
105  }  }
106    
107  int  int
108    imap_response (token, data, data_size)
109         token_t token;
110         char *data;
111         size_t data_size;
112    {
113      log (LOG_INFO, "IMAP response!!!\n");
114      return 1;
115    }
116    
117    int
118    imap_request ()
119    {
120      /*char request[]= {
121        0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x02,
122        0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
123        0x00, 0x02, 0x00, 0x20, 0x00, 0x04, 0x00, 0x01,
124        0x00 };*/
125    
126      char smtp_request[]= {
127        0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x02,
128        0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
129        0x00, 0x02, 0x00, 0x20, 0x00, 0x04, 0x00, 0x01,
130        0x00 };
131      fdo_send (TOKEN ("yO"), smtp_request, sizeof (smtp_request));
132    
133      log(LOG_INFO, "IMAP request\n");
134      fdo_register (TOKEN ("yO"), imap_response);
135      return 1;
136    }
137    
138    int
139  ip_tunnel_ready (bufin)  ip_tunnel_ready (bufin)
140       buffer_t *bufin;       buffer_t *bufin;
141  {  {
# Line 170  ip_tunnel_config (token, data, data_size Line 204  ip_tunnel_config (token, data, data_size
204        nparsed += sizeof (struct ip_config_header) + cfg_hdr->length;        nparsed += sizeof (struct ip_config_header) + cfg_hdr->length;
205      }      }
206    
207    if(PARAM_SET_DNS)    /*if(PARAM_SET_DNS)
208      set_dns (domain, dns);      set_dns (domain, dns);
209    launch_ip_up (ifname, address, dns, domain, mtu);    launch_ip_up (ifname, address, dns, domain, mtu);
210    
# Line 180  ip_tunnel_config (token, data, data_size Line 214  ip_tunnel_config (token, data, data_size
214    engine_register (*(iface->fd), 0, ip_tunnel_fn);    engine_register (*(iface->fd), 0, ip_tunnel_fn);
215    
216    fdo_register (TOKEN ("yc"), get_ip_aol);    fdo_register (TOKEN ("yc"), get_ip_aol);
217    need_extra=0;    need_extra=0;*/
218      imap_request();
219    log(LOG_NOTICE, _("IP tunnel is working.\n"), domain);    log(LOG_NOTICE, _("IP tunnel is working.\n"), domain);
220    
221    return 1;    return 1;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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