mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
6ad73dbf65
The change is intended to be fully transparent to the users. Similarly to route(8) and netstat(8), arp can be build without netlink by defining WITHOUT_NETLINK in make.conf. Differential Revision: https://reviews.freebsd.org/D39720
22 lines
508 B
C
22 lines
508 B
C
#ifndef _USR_SBIN_ARP_ARP_H_
|
|
#define _USR_SBIN_ARP_ARP_H_
|
|
|
|
int valid_type(int type);
|
|
struct sockaddr_in *getaddr(char *host);
|
|
int print_entries_nl(uint32_t ifindex, struct in_addr addr);
|
|
|
|
struct arp_opts {
|
|
bool aflag;
|
|
bool nflag;
|
|
time_t expire_time;
|
|
int flags;
|
|
};
|
|
extern struct arp_opts opts;
|
|
|
|
int print_entries_nl(uint32_t ifindex, struct in_addr addr);
|
|
int delete_nl(uint32_t ifindex, char *host);
|
|
int set_nl(uint32_t ifindex, struct sockaddr_in *dst, struct sockaddr_dl *sdl,
|
|
char *host);
|
|
|
|
#endif
|