1 #include <stdint.h> 2 #include <byteswap.h> 3 #include <string.h> 4 #include <gpxe/icmp6.h> 5 #include <gpxe/ip6.h> 6 #include <gpxe/in.h> 7 #include <gpxe/netdevice.h> 8 #include <gpxe/iobuf.h> 9 #include <gpxe/tcpip.h> 10 11 #define NDP_STATE_INVALID 0 12 #define NDP_STATE_INCOMPLETE 1 13 #define NDP_STATE_REACHABLE 2 14 #define NDP_STATE_DELAY 3 15 #define NDP_STATE_PROBE 4 16 #define NDP_STATE_STALE 5 17 18 int ndp_resolve ( struct net_device *netdev, struct in6_addr *src, 19 struct in6_addr *dest, void *dest_ll_addr ); 20 int ndp_process_advert ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src, 21 struct sockaddr_tcpip *st_dest ); 22