diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/missing.h | 4 | ||||
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-types.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h index 71dad8f0ad..d539ed00e4 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -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 diff --git a/src/libsystemd/sd-netlink/netlink-types.c b/src/libsystemd/sd-netlink/netlink-types.c index b2575404bf..135354e5f3 100644 --- a/src/libsystemd/sd-netlink/netlink-types.c +++ b/src/libsystemd/sd-netlink/netlink-types.c @@ -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 = { |