]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Cleanup compile for older linux platforms.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 1 Dec 2016 01:24:47 +0000 (20:24 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:17 +0000 (20:26 -0500)
Allow code to compile for older platforms.

Ticket: CM-13745
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/if_netlink.c
zebra/rt_netlink.c

index 180e8c5de6e2f6302abe4c03b8dec877b39b3fa8..1748703a3e8ff5579bf9556d94a117efd872719a 100644 (file)
@@ -173,6 +173,48 @@ netlink_to_zebra_link_type (unsigned int hwt)
   }
 }
 
+
+//Temporary Assignments to compile on older platforms.
+#ifndef IFLA_BR_MAX
+#define IFLA_BR_MAX   39
+#endif
+
+#ifndef IFLA_VXLAN_ID
+#define IFLA_VXLAN_ID 1
+#endif
+
+#ifndef IFLA_VXLAN_LOCAL
+#define IFLA_VXLAN_LOCAL  4
+#endif
+
+#ifndef IFLA_VXLAN_MAX
+#define IFLA_VXLAN_MAX 26
+#endif
+
+#ifndef IFLA_BRIDGE_MAX
+#define IFLA_BRIDGE_MAX   2
+#endif
+
+#ifndef IFLA_BRIDGE_VLAN_INFO
+#define IFLA_BRIDGE_VLAN_INFO 2
+#endif
+
+#ifndef BRIDGE_VLAN_INFO_PVID
+#define BRIDGE_VLAN_INFO_PVID  (1<<1)
+#endif
+
+#ifndef RTEXT_FILTER_BRVLAN
+#define RTEXT_FILTER_BRVLAN    (1<<1)
+#endif
+
+#ifndef NTF_SELF
+#define NTF_SELF   0x02
+#endif
+
+#ifndef IFLA_BR_VLAN_FILTERING
+#define IFLA_BR_VLAN_FILTERING  7
+#endif
+
 #define parse_rtattr_nested(tb, max, rta) \
           netlink_parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta))
 
index 15dd7ef1cba660c127105a500023666717073a10..05a9940a935b2912c7e4659219d7087c7ae28e82 100644 (file)
 #ifndef MPLS_IPTUNNEL_DST
 #define MPLS_IPTUNNEL_DST  1
 #endif
+
+#ifndef NDA_MASTER
+#define NDA_MASTER   9
+#endif
 /* End of temporary definitions */
 
 struct gw_family_t
@@ -562,8 +566,10 @@ netlink_route_change_read_multicast (struct sockaddr_nl *snl, struct nlmsghdr *h
   if (tb[RTA_DST])
     m->sg.grp = *(struct in_addr *)RTA_DATA (tb[RTA_DST]);
 
+#if defined RTA_EXPIRES
   if (tb[RTA_EXPIRES])
     m->lastused = *(unsigned long long *)RTA_DATA (tb[RTA_EXPIRES]);
+#endif
 
   if (tb[RTA_MULTIPATH])
     {