Przeglądaj źródła

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 lat temu
rodzic
commit
21c3d63c2e
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0
    4
      src/net/udp.c

+ 0
- 4
src/net/udp.c Wyświetl plik

@@ -258,10 +258,6 @@ void udp_rx ( struct pk_buff *pkb, struct in_addr *src_net_addr __unused,
258 258
 	/** Strip off the UDP header */
259 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 261
 	/** Call the application's callback */
266 262
 	conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
267 263
 }

Ładowanie…
Anuluj
Zapisz