/[gxemul]/trunk/src/net/net_ip.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/net/net_ip.c

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

revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2004-2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2004-2007  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: net_ip.c,v 1.4 2006/09/05 06:13:28 debug Exp $   *  $Id: net_ip.c,v 1.6 2007/06/15 17:02:40 debug Exp $
29   *   *
30   *  Internet Protocol related networking stuff.   *  Internet Protocol related networking stuff.
31   */   */
# Line 1375  void net_tcp_rx_avail(struct net *net, v Line 1375  void net_tcp_rx_avail(struct net *net, v
1375                          continue;                          continue;
1376                  }                  }
1377    
1378                  if (net->tcp_connections[con_id].incoming_buf == NULL) {                  if (net->tcp_connections[con_id].incoming_buf == NULL)
1379                          net->tcp_connections[con_id].incoming_buf =                          CHECK_ALLOCATION(net->tcp_connections[con_id].
1380                              malloc(TCP_INCOMING_BUF_LEN);                              incoming_buf = malloc(TCP_INCOMING_BUF_LEN));
                         if (net->tcp_connections[con_id].incoming_buf == NULL) {  
                                 printf("out of memory allocating "  
                                     "incoming_buf for con_id %i\n", con_id);  
                                 exit(1);  
                         }  
                 }  
1381    
1382                  if (net->tcp_connections[con_id].state >=                  if (net->tcp_connections[con_id].state >=
1383                      TCP_OUTSIDE_DISCONNECTED)                      TCP_OUTSIDE_DISCONNECTED)

Legend:
Removed from v.32  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26