Browse Source

We shouldn't need to allocate a TX packet buffer when calling newdata();

if the application wants to send data then it will have to use the normal
senddata() mechanism.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
21c3d63c2e
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      src/net/udp.c

+ 0
- 4
src/net/udp.c View File

258
 	/** Strip off the UDP header */
258
 	/** Strip off the UDP header */
259
 	pkb_pull ( pkb, sizeof ( *udphdr ) );
259
 	pkb_pull ( pkb, sizeof ( *udphdr ) );
260
 
260
 
261
-	/** Allocate max possible buffer space to the tx buffer */
262
-	conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
263
-	pkb_reserve ( conn->tx_pkb, UDP_MAX_HLEN );
264
-
265
 	/** Call the application's callback */
261
 	/** Call the application's callback */
266
 	conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
262
 	conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
267
 }
263
 }

Loading…
Cancel
Save