xref: /freebsd/usr.sbin/arp/arp.h (revision 79278872ad966e5f54805efbeb692c8cbc0306c8)
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 	char *rifname;
14 	unsigned int rifindex;
15 };
16 extern struct arp_opts opts;
17 
18 int print_entries_nl(uint32_t ifindex, struct in_addr addr);
19 int delete_nl(uint32_t ifindex, char *host);
20 int set_nl(uint32_t ifindex, struct sockaddr_in *dst, struct sockaddr_dl *sdl,
21     char *host);
22 
23 #endif
24