Reserve space for lower-layer headers when allocating packet buffer.
authorMichael Brown <mcb30@etherboot.org>
Wed, 19 Jul 2006 18:21:30 +0000 (18:21 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 19 Jul 2006 18:21:30 +0000 (18:21 +0000)
commitab633f6a73a6b349f4162c4645347993884fc183
tree4da6e1e63d645b6dd09006818b854f510b8b367e
parent6858b14a34abea2bf5862bb4c1ddda161df5ebf7
Reserve space for lower-layer headers when allocating packet buffer.

Use pkb_available() rather than pkb_len() (which will always return 0
on a freshly allocated buffer).

udp_send() should assume that the buffer has already been allocated.
src/net/udp.c