1 #ifndef _USR_SBIN_NDP_NDP_H_ 2 #define _USR_SBIN_NDP_NDP_H_ 3 4 #define W_ADDR 36 5 #define W_LL 17 6 #define W_IF 6 7 8 struct ndp_opts { 9 bool nflag; 10 bool tflag; 11 int flags; 12 time_t expire_time; 13 }; 14 15 extern struct ndp_opts opts; 16 17 bool valid_type(int if_type); 18 void ts_print(const struct timeval *tvp); 19 char *ether_str(struct sockaddr_dl *sdl); 20 char *sec2str(time_t total); 21 int getaddr(char *host, struct sockaddr_in6 *sin6); 22 int print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag); 23 int delete_nl(uint32_t ifindex, char *host, bool warn); 24 int set_nl(uint32_t ifindex, struct sockaddr_in6 *dst, struct sockaddr_dl *sdl, 25 char *host); 26 27 #endif 28