/[pengfork]/pengfork/src/p30tcpip.c
ViewVC logotype

Diff of /pengfork/src/p30tcpip.c

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

revision 1.3 by chupa, Wed Aug 28 22:32:00 2002 UTC revision 1.4 by chupa, Thu Aug 29 13:27:05 2002 UTC
# Line 32  Line 32 
32  #include "if.h"  #include "if.h"
33  #include "misc.h"  #include "misc.h"
34    
35  int ipnum;  int ipnum = 0;
36    
37  void  void
38  prot30_send_ip_config ()  prot30_send_ip_config ()
# Line 132  prot30_send_ip () Line 132  prot30_send_ip ()
132      {      {
133        if (data_size > 0x7f)        if (data_size > 0x7f)
134          {          {
135          offset=0;            offset = 0;
136          while(data_size-offset>MAX_PACKET_SIZE-AOL_DATA_OFFSET-3)            while (data_size - offset > MAX_PACKET_SIZE - AOL_DATA_OFFSET - 3)
137          big.ipnum=ipnum;              big.ipnum = ipnum;
138          big.len=data_size & LONG_IP_MASK;            big.len = data_size & LONG_IP_MASK;
139          memcpy(big.ip_data,data,data_size);            memcpy (big.ip_data, data, data_size);
140          }          }
141        else        else
142          {          {
143          small.ipnum=ipnum;            small.ipnum = ipnum;
144          small.len=data_size;            small.len = data_size;
145          memcpy(small.ip_data,data,data_size);            memcpy (small.ip_data, data, data_size);
146          }          }
147      }      }
148    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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