sd-netlink: add support for RTA_PREF

This commit is contained in:
Tom Gundersen 2015-11-03 15:25:10 +01:00
parent 8ae4b6d12c
commit b69015efd2
2 changed files with 8 additions and 0 deletions

View file

@ -901,6 +901,10 @@ static inline int setns(int fd, int nstype) {
#define NDA_MAX (__NDA_MAX - 1)
#endif
#ifndef RTA_PREF
#define RTA_PREF 20
#endif
#ifndef IPV6_UNICAST_IF
#define IPV6_UNICAST_IF 76
#endif

View file

@ -490,7 +490,11 @@ static const NLType rtnl_route_types[] = {
RTA_TABLE,
RTA_MARK,
RTA_MFC_STATS,
RTA_VIA,
RTA_NEWDST,
*/
[RTA_PREF] = { .type = NETLINK_TYPE_U8 },
};
static const NLTypeSystem rtnl_route_type_system = {