]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: add support for RTA_PREF
authorTom Gundersen <teg@jklm.no>
Tue, 3 Nov 2015 14:25:10 +0000 (15:25 +0100)
committerTom Gundersen <teg@jklm.no>
Wed, 11 Nov 2015 14:42:38 +0000 (15:42 +0100)
src/basic/missing.h
src/libsystemd/sd-netlink/netlink-types.c

index 71dad8f0ad890fed4bb7c6c46ab3433de69db9cf..d539ed00e4065e576ac67bc565df97c064580013 100644 (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
index b2575404bf0b3b73933c6f31c9d01127f36b9864..135354e5f3478ecac03469fbcd44cab2572be9da 100644 (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 = {