3e2c6b6736
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;'
24 lines
695 B
C
24 lines
695 B
C
#include <stdint.h>
|
|
#include <byteswap.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <gpxe/icmp6.h>
|
|
#include <gpxe/ip6.h>
|
|
#include <gpxe/in.h>
|
|
#include <gpxe/netdevice.h>
|
|
#include <gpxe/iobuf.h>
|
|
#include <gpxe/tcpip.h>
|
|
|
|
#define NDP_STATE_INVALID 0
|
|
#define NDP_STATE_INCOMPLETE 1
|
|
#define NDP_STATE_REACHABLE 2
|
|
#define NDP_STATE_DELAY 3
|
|
#define NDP_STATE_PROBE 4
|
|
#define NDP_STATE_STALE 5
|
|
|
|
static struct ndp_entry * ndp_find_entry ( struct in6_addr *in6 );
|
|
int ndp_resolve ( struct net_device *netdev, struct in6_addr *src,
|
|
struct in6_addr *dest, void *dest_ll_addr );
|
|
int ndp_process_advert ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src,
|
|
struct sockaddr_tcpip *st_dest );
|