diff options
author | Michael Brown | 2007-05-19 20:39:40 +0200 |
---|---|---|
committer | Michael Brown | 2007-05-19 20:39:40 +0200 |
commit | 3e2c6b6736729633c5d6c00cd31458a1c6a49730 (patch) | |
tree | 8c9e1ed94b301680c9870ed09424e3a2a2e4bafa /src/net/ndp.c | |
parent | Add explicit "freeing" debug messages. (diff) | |
download | ipxe-3e2c6b6736729633c5d6c00cd31458a1c6a49730.tar.gz ipxe-3e2c6b6736729633c5d6c00cd31458a1c6a49730.tar.xz ipxe-3e2c6b6736729633c5d6c00cd31458a1c6a49730.zip |
pkbuff->iobuf changeover
Achieved via Perl using:
perl -pi -e 's/pk_buff/io_buffer/g; s/Packet buffer/I\/O buffer/ig; ' \
-e 's/pkbuff\.h/iobuf.h/g; s/pkb_/iob_/g; s/_pkb/_iob/g; ' \
-e 's/pkb/iobuf/g; s/PKB/IOB/g;'
Diffstat (limited to 'src/net/ndp.c')
-rw-r--r-- | src/net/ndp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ndp.c b/src/net/ndp.c index 11085a43..7c684e7c 100644 --- a/src/net/ndp.c +++ b/src/net/ndp.c @@ -3,7 +3,7 @@ #include <byteswap.h> #include <errno.h> #include <gpxe/if_ether.h> -#include <gpxe/pkbuff.h> +#include <gpxe/iobuf.h> #include <gpxe/ndp.h> #include <gpxe/icmp6.h> #include <gpxe/ip6.h> @@ -143,18 +143,18 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest, /** * Process neighbour advertisement * - * @v pkb Packet buffer + * @v iobuf I/O buffer * @v st_src Source address * @v st_dest Destination address */ -int ndp_process_advert ( struct pk_buff *pkb, struct sockaddr_tcpip *st_src __unused, +int ndp_process_advert ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src __unused, struct sockaddr_tcpip *st_dest __unused ) { - struct neighbour_advert *nadvert = pkb->data; + struct neighbour_advert *nadvert = iobuf->data; struct ndp_entry *ndp; /* Sanity check */ - if ( pkb_len ( pkb ) < sizeof ( *nadvert ) ) { - DBG ( "Packet too short (%d bytes)\n", pkb_len ( pkb ) ); + if ( iob_len ( iobuf ) < sizeof ( *nadvert ) ) { + DBG ( "Packet too short (%d bytes)\n", iob_len ( iobuf ) ); return -EINVAL; } |