mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
91fbe0819b
The change is intended to be fully transparent to the users. Similarly to route(8) and netstat(8), ndp can be build without netlink by defining WITHOUT_NETLINK in make.conf. Differential Revision: https://reviews.freebsd.org/D39720
28 lines
644 B
C
28 lines
644 B
C
#ifndef _USR_SBIN_NDP_NDP_H_
|
|
#define _USR_SBIN_NDP_NDP_H_
|
|
|
|
#define W_ADDR 36
|
|
#define W_LL 17
|
|
#define W_IF 6
|
|
|
|
struct ndp_opts {
|
|
bool nflag;
|
|
bool tflag;
|
|
int flags;
|
|
time_t expire_time;
|
|
};
|
|
|
|
extern struct ndp_opts opts;
|
|
|
|
bool valid_type(int if_type);
|
|
void ts_print(const struct timeval *tvp);
|
|
char *ether_str(struct sockaddr_dl *sdl);
|
|
char *sec2str(time_t total);
|
|
int getaddr(char *host, struct sockaddr_in6 *sin6);
|
|
int print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag);
|
|
int delete_nl(uint32_t ifindex, char *host);
|
|
int set_nl(uint32_t ifindex, struct sockaddr_in6 *dst, struct sockaddr_dl *sdl,
|
|
char *host);
|
|
|
|
#endif
|