You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. #include <stdint.h>
  2. #include <byteswap.h>
  3. #include <errno.h>
  4. #include <string.h>
  5. #include <gpxe/icmp6.h>
  6. #include <gpxe/ip6.h>
  7. #include <gpxe/in.h>
  8. #include <gpxe/netdevice.h>
  9. #include <gpxe/iobuf.h>
  10. #include <gpxe/tcpip.h>
  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. static struct ndp_entry * ndp_find_entry ( struct in6_addr *in6 );
  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 );