summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-08-01 16:13:58 +0200
committerMichael Brown2006-08-01 16:13:58 +0200
commit21c3d63c2eef0d7387d2e079b83e7ca6d6f9e0f1 (patch)
tree4aab879732ac9b242c9447916a8c11442c539c94
parentRequest bootfile name; it doesn't seem to be automatically supplied by (diff)
downloadipxe-21c3d63c2eef0d7387d2e079b83e7ca6d6f9e0f1.tar.gz
ipxe-21c3d63c2eef0d7387d2e079b83e7ca6d6f9e0f1.tar.xz
ipxe-21c3d63c2eef0d7387d2e079b83e7ca6d6f9e0f1.zip
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.
-rw-r--r--src/net/udp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/net/udp.c b/src/net/udp.c
index 77fb3b973..4f133ae60 100644
--- a/src/net/udp.c
+++ b/src/net/udp.c
@@ -258,10 +258,6 @@ void udp_rx ( struct pk_buff *pkb, struct in_addr *src_net_addr __unused,
/** Strip off the UDP header */
pkb_pull ( pkb, sizeof ( *udphdr ) );
- /** Allocate max possible buffer space to the tx buffer */
- conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
- pkb_reserve ( conn->tx_pkb, UDP_MAX_HLEN );
-
/** Call the application's callback */
conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
}