version 1.1.1.1, 2013/07/21 23:54:41
|
version 1.1.1.2, 2016/11/02 10:09:10
|
Line 25
|
Line 25
|
#ifdef HAVE_NETLINK |
#ifdef HAVE_NETLINK |
|
|
#define NL_PKT_BUF_SIZE 8192 |
#define NL_PKT_BUF_SIZE 8192 |
|
#define NL_DEFAULT_ROUTE_METRIC 20 |
|
|
extern int |
extern int |
addattr32 (struct nlmsghdr *n, int maxlen, int type, int data); | addattr32 (struct nlmsghdr *n, size_t maxlen, int type, int data); |
extern int |
extern int |
addattr_l (struct nlmsghdr *n, int maxlen, int type, void *data, int alen); | addattr_l (struct nlmsghdr *n, size_t maxlen, int type, void *data, int alen); |
|
|
extern int |
extern int |
rta_addattr_l (struct rtattr *rta, int maxlen, int type, void *data, int alen); |
rta_addattr_l (struct rtattr *rta, int maxlen, int type, void *data, int alen); |
Line 40 nl_msg_type_to_str (uint16_t msg_type);
|
Line 41 nl_msg_type_to_str (uint16_t msg_type);
|
extern const char * |
extern const char * |
nl_rtproto_to_str (u_char rtproto); |
nl_rtproto_to_str (u_char rtproto); |
|
|
|
|
|
extern int interface_lookup_netlink (struct zebra_vrf *zvrf); |
|
extern int netlink_route_read (struct zebra_vrf *zvrf); |
|
|
#endif /* HAVE_NETLINK */ |
#endif /* HAVE_NETLINK */ |
|
|