diff options
author | David Ahern <dsahern@gmail.com> | 2017-05-03 14:05:09 -0700 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-05-12 10:09:15 +0200 |
commit | 37fda66735eebcf6fd85799cb36f5d356f3dc5f0 (patch) | |
tree | b0033e8cc235368fde2bf8d9f9e6a081223c024c /include | |
parent | a66511d7edde76fe8e0c1da7bbe014860ba299d9 (diff) | |
download | libnl-37fda66735eebcf6fd85799cb36f5d356f3dc5f0.tar.gz |
route: Add support for MPLS to netconf
Add support to netconf for MPLS address family.
v2
- change get method to return 0/error and take 'int *val'
which is set to the value requested
- added rtnl_netconf_get_input to libnl-route-3.sym
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux-private/linux/netconf.h | 1 | ||||
-rw-r--r-- | include/linux-private/linux/rtnetlink.h | 2 | ||||
-rw-r--r-- | include/netlink/netlink-compat.h | 4 | ||||
-rw-r--r-- | include/netlink/route/netconf.h | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/include/linux-private/linux/netconf.h b/include/linux-private/linux/netconf.h index ec14058e..76ecfcc2 100644 --- a/include/linux-private/linux/netconf.h +++ b/include/linux-private/linux/netconf.h @@ -16,6 +16,7 @@ enum { NETCONFA_MC_FORWARDING, NETCONFA_PROXY_NEIGH, NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN, + NETCONFA_INPUT, __NETCONFA_MAX }; #define NETCONFA_MAX (__NETCONFA_MAX - 1) diff --git a/include/linux-private/linux/rtnetlink.h b/include/linux-private/linux/rtnetlink.h index 7d94908c..a92c7c41 100644 --- a/include/linux-private/linux/rtnetlink.h +++ b/include/linux-private/linux/rtnetlink.h @@ -647,6 +647,8 @@ enum rtnetlink_groups { #define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE RTNLGRP_NSID, #define RTNLGRP_NSID RTNLGRP_NSID + RTNLGRP_MPLS_NETCONF, +#define RTNLGRP_MPLS_NETCONF RTNLGRP_MPLS_NETCONF __RTNLGRP_MAX }; #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) diff --git a/include/netlink/netlink-compat.h b/include/netlink/netlink-compat.h index 17ec9fc8..2839ed03 100644 --- a/include/netlink/netlink-compat.h +++ b/include/netlink/netlink-compat.h @@ -47,4 +47,8 @@ typedef unsigned short sa_family_t; #define AF_LLC 26 #endif +#ifndef AF_MPLS +#define AF_MPLS 28 +#endif + #endif diff --git a/include/netlink/route/netconf.h b/include/netlink/route/netconf.h index d2d1f9b5..19934381 100644 --- a/include/netlink/route/netconf.h +++ b/include/netlink/route/netconf.h @@ -35,6 +35,7 @@ int rtnl_netconf_get_mc_forwarding(struct rtnl_netconf *nc, int *val); int rtnl_netconf_get_rp_filter(struct rtnl_netconf *nc, int *val); int rtnl_netconf_get_proxy_neigh(struct rtnl_netconf *nc, int *val); int rtnl_netconf_get_ignore_routes_linkdown(struct rtnl_netconf *nc, int *val); +int rtnl_netconf_get_input(struct rtnl_netconf *nc, int *val); #ifdef __cplusplus } |