/[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 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: net_ip.c,v 1.5 2006/12/30 13:31:02 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.34  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26