1 #ifndef _USR_SBIN_ARP_ARP_H_ 2 #define _USR_SBIN_ARP_ARP_H_ 3 4 int valid_type(int type); 5 struct sockaddr_in *getaddr(char *host); 6 int print_entries_nl(uint32_t ifindex, struct in_addr addr); 7 8 struct arp_opts { 9 bool aflag; 10 bool nflag; 11 time_t expire_time; 12 int flags; 13 }; 14 extern struct arp_opts opts; 15 16 int print_entries_nl(uint32_t ifindex, struct in_addr addr); 17 int delete_nl(uint32_t ifindex, char *host); 18 int set_nl(uint32_t ifindex, struct sockaddr_in *dst, struct sockaddr_dl *sdl, 19 char *host); 20 21 #endif 22