16ad73dbfSAlexander V. Chernikov #ifndef _USR_SBIN_ARP_ARP_H_ 26ad73dbfSAlexander V. Chernikov #define _USR_SBIN_ARP_ARP_H_ 36ad73dbfSAlexander V. Chernikov 46ad73dbfSAlexander V. Chernikov int valid_type(int type); 56ad73dbfSAlexander V. Chernikov struct sockaddr_in *getaddr(char *host); 66ad73dbfSAlexander V. Chernikov int print_entries_nl(uint32_t ifindex, struct in_addr addr); 76ad73dbfSAlexander V. Chernikov 86ad73dbfSAlexander V. Chernikov struct arp_opts { 96ad73dbfSAlexander V. Chernikov bool aflag; 106ad73dbfSAlexander V. Chernikov bool nflag; 116ad73dbfSAlexander V. Chernikov time_t expire_time; 126ad73dbfSAlexander V. Chernikov int flags; 13*79278872SR. Christian McDonald char *rifname; 14*79278872SR. Christian McDonald unsigned int rifindex; 156ad73dbfSAlexander V. Chernikov }; 166ad73dbfSAlexander V. Chernikov extern struct arp_opts opts; 176ad73dbfSAlexander V. Chernikov 186ad73dbfSAlexander V. Chernikov int print_entries_nl(uint32_t ifindex, struct in_addr addr); 196ad73dbfSAlexander V. Chernikov int delete_nl(uint32_t ifindex, char *host); 206ad73dbfSAlexander V. Chernikov int set_nl(uint32_t ifindex, struct sockaddr_in *dst, struct sockaddr_dl *sdl, 216ad73dbfSAlexander V. Chernikov char *host); 226ad73dbfSAlexander V. Chernikov 236ad73dbfSAlexander V. Chernikov #endif 24