mirror_frr/zebra
Philippe Guibert 97c9e7533b zebra, lib: add an internal API to get relative default nsid in other ns
as remind, the netns identifiers are local to a namespace. that is to
say that for instance, a vrf <vrfx> will have a netns id value in one
netns, and have an other netns id value in one other netns.
There is a need for zebra daemon to collect some cross information, like
the LINK_NETNSID information from interfaces having link layer in an
other network namespace. For that, it is needed to have a global
overview instead of a relative overview per namespace.
The first brick of this change is an API that sticks to netlink API,
that uses NETNSA_TARGET_NSID. from a given vrf vrfX, and a new vrf
created vrfY, the API returns the value of nsID from vrfX, inside the
new vrf vrfY.
The brick also gets the ns id value of default namespace in each other
namespace. An additional value in ns.h is offered, that permits to
retrieve the default namespace context.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2020-05-18 14:11:03 +02:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
connected.c zebra: don't treat every interface as unnumbered 2020-04-29 12:08:49 -04:00
connected.h zebra: Do not use connection dest for bcast 2019-08-18 18:54:46 +02:00
debug.c *: move CLI node names to cmd_node->name 2020-04-16 12:53:59 +02:00
debug.h zebra: add a debug category for nexthops 2019-12-23 08:47:38 -05:00
dplane_fpm_nl.c *: fix first header 2020-04-27 09:52:41 +02:00
if_ioctl_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
if_ioctl.c Revert "Ospf missing interface handling 2" 2019-06-23 19:46:39 -04:00
if_netlink.c zebra: across network namespace, vxlan remembers the link information 2020-05-18 14:11:03 +02:00
if_netlink.h vrrpd: protodown macvlan in backup state 2019-05-17 00:27:08 +00:00
if_sysctl.c *: spelchek 2018-10-25 20:10:57 +02:00
interface.c zebra: display interface slave type 2020-05-18 14:11:03 +02:00
interface.h Merge pull request #6231 from dslicenc/v6-ra-hoplimit 2020-04-18 22:48:20 +03:00
ioctl_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ioctl_solaris.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
ioctl.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ioctl.h zebra: removing old intf address code 2019-04-22 13:49:27 -04:00
ipforward_proc.c zebra: Cleanup set but unused variables 2020-02-27 09:41:58 -05:00
ipforward_solaris.c *: frr_elevate_privs -> frr_with_privs 2019-09-03 17:18:35 +02:00
ipforward_sysctl.c *: Replace sizeof something to sizeof(something) 2020-03-08 21:44:53 +02:00
ipforward.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
irdp_interface.c *: replace all random() calls 2020-04-17 20:57:43 -03:00
irdp_main.c *: replace all random() calls 2020-04-17 20:57:43 -03:00
irdp_packet.c *: Replace sizeof something to sizeof(something) 2020-03-08 21:44:53 +02:00
irdp.h *: strip trailing whitespace 2019-09-30 16:44:43 +00:00
kernel_netlink.c zebra: Modify netlink_request to statisfy coverity 2020-04-15 09:01:56 -04:00
kernel_netlink.h zebra: Modify netlink_request to statisfy coverity 2020-04-15 09:01:56 -04:00
kernel_socket.c *: remove line breaks from log messages 2020-03-24 19:43:18 +01:00
kernel_socket.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
label_manager.c zebra,ldpd: use zapi client session id in LM apis 2020-04-16 12:07:54 -04:00
label_manager.h zebra,ldpd: use zapi client session id in LM apis 2020-04-16 12:07:54 -04:00
main.c zebra: nb callbacks support 2020-04-16 08:13:12 -07:00
Makefile build: convert zebra/ to non-recursive build 2017-07-31 23:03:30 +02:00
redistribute.c Zebra: Default route distribute handling. 2020-04-07 10:12:14 -07:00
redistribute.h zebra: revise redistribution delete to improve update case 2019-09-12 08:51:05 -04:00
rib.h zebra: avoid using c++ keywords in headers 2020-05-14 16:42:47 +02:00
router-id.c *: Replace s_addr 0 => INADDR_ANY 2020-02-06 09:00:12 +02:00
router-id.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
rt_netlink.c zebra: abstract 5549 check into a function 2020-05-05 15:05:30 -04:00
rt_netlink.h zebra: Expose vrf lookup by table id out of rt_netlink.c 2020-04-22 10:56:06 -04:00
rt_socket.c zebra: Add code to install v6 blackhole routes on *bsd 2020-05-07 11:24:05 -04:00
rt.h zebra: Add base functionality for nexthop processing via the dataplane 2019-10-25 11:13:36 -04:00
rtadv.c zebra: Remove enum around ipv6_nd_suppress_ra_status 2020-05-08 08:08:04 -04:00
rtadv.h zebra: Remove enum around ipv6_nd_suppress_ra_status 2020-05-08 08:08:04 -04:00
rtread_getmsg.c *: Replace sizeof something to sizeof(something) 2020-03-08 21:44:53 +02:00
rtread_netlink.c zebra: evpn remote delete fetch local entry 2018-12-31 14:40:31 -08:00
rtread_sysctl.c zebra: evpn remote delete fetch local entry 2018-12-31 14:40:31 -08:00
rule_netlink.c zebra: Modify netlink_request to statisfy coverity 2020-04-15 09:01:56 -04:00
rule_netlink.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
rule_socket.c zebra: define some explicit rule replace code paths 2020-04-09 13:37:55 -04:00
sample_plugin.c zebra: Add a sample dataplane plugin module 2019-10-31 16:24:16 -04:00
subdir.am build: make clippy Makefile rules nicer 2020-04-27 09:52:41 +02:00
table_manager.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
table_manager.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
testrib.conf zebra: Build the test client, can be useful, and add IPv6 to testrib.conf 2016-05-26 01:13:58 +00:00
zapi_msg.c zebra,ldpd: use zapi client session id in LM apis 2020-04-16 12:07:54 -04:00
zapi_msg.h zebra,ldpd: use zapi client session id in LM apis 2020-04-16 12:07:54 -04:00
zebra_dplane.c zebra: Remove typedef rib_table_info_t from system 2020-05-08 08:10:49 -04:00
zebra_dplane.h zebra: adapt and export rmac netlink functions 2020-04-14 13:45:39 -03:00
zebra_errors.c zebra: Prevent awful misconfiguration in vrf's 2020-04-22 10:57:29 -04:00
zebra_errors.h zebra: Prevent awful misconfiguration in vrf's 2020-04-22 10:57:29 -04:00
zebra_fpm_dt.c zebra: fix nexthop_group conversion in fpm code 2020-02-28 08:45:56 -05:00
zebra_fpm_netlink.c zebra: Remove typedef netlink_route_info_t 2020-05-08 08:10:49 -04:00
zebra_fpm_private.h Zebra: Build nelink message for RMAC updates 2019-06-17 12:05:38 -07:00
zebra_fpm_protobuf.c *: Do not cast to the same type 2020-04-08 17:15:06 +03:00
zebra_fpm.c zebra: Remvoe typedef for zfpm_glob_t 2020-05-08 08:08:04 -04:00
zebra_gr.c zebra: avoid using c++ keywords in headers 2020-05-14 16:42:47 +02:00
zebra_l2.c zebra: map vxlan interface to bridge interface with correct ns id 2020-05-18 14:11:03 +02:00
zebra_l2.h zebra: map vxlan interface to bridge interface with correct ns id 2020-05-18 14:11:03 +02:00
zebra_memory.c zebra: use MTYPE_STATIC 2019-06-21 08:54:25 +02:00
zebra_memory.h zebra: use MTYPE_STATIC 2019-06-21 08:54:25 +02:00
zebra_mlag_private.c zebra: SO_PEERCRED is a getsockopt call 2020-03-06 16:03:52 -05:00
zebra_mlag_vty.c zebra: Do not build mlag protobuf support if version 3 is not avail 2019-12-15 09:37:51 -05:00
zebra_mlag_vty.h lib, zebra: add missing extern "C" {} blocks to new header files 2020-04-22 23:49:22 -03:00
zebra_mlag.c zebra: Fix spelling mistakes found by debian packaging 2020-03-13 19:16:11 -04:00
zebra_mlag.h lib, zebra: add missing extern "C" {} blocks to new header files 2020-04-22 23:49:22 -03:00
zebra_mpls_netlink.c zebra: convert PW updates to async dataplane 2019-01-25 10:45:57 -05:00
zebra_mpls_null.c zebra: convert PW updates to async dataplane 2019-01-25 10:45:57 -05:00
zebra_mpls_openbsd.c *: Remove parenthesis on return for constants 2020-02-09 14:21:56 +02:00
zebra_mpls_vty.c *: move CLI node names to cmd_node->name 2020-04-16 12:53:59 +02:00
zebra_mpls.c *: sprintf -> snprintf 2020-04-20 19:14:33 -04:00
zebra_mpls.h isisd: add support for segment routing 2020-04-30 12:15:47 +02:00
zebra_mroute.c zebra: Add some additional vrf debug for retrieving mroute info 2018-09-17 09:22:31 -04:00
zebra_mroute.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_nb_config.c zebra: rib northbound callback implementation 2020-05-12 14:51:36 -07:00
zebra_nb_rpcs.c *: change the signature of the northbound callbacks to be more flexible 2020-04-23 10:14:32 -03:00
zebra_nb_state.c zebra: fix SA warning in zebra_nb_state.c 2020-05-14 09:41:59 -04:00
zebra_nb.c zebra: afi-safi identity to value apis 2020-05-12 14:31:37 -07:00
zebra_nb.h zebra: afi-safi identity to value apis 2020-05-12 14:31:37 -07:00
zebra_netns_id.c zebra, lib: add an internal API to get relative default nsid in other ns 2020-05-18 14:11:03 +02:00
zebra_netns_id.h zebra, lib: add an internal API to get relative default nsid in other ns 2020-05-18 14:11:03 +02:00
zebra_netns_notify.c zebra, lib: add an internal API to get relative default nsid in other ns 2020-05-18 14:11:03 +02:00
zebra_netns_notify.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_nhg_private.h lib, zebra: add missing extern "C" {} blocks to new header files 2020-04-22 23:49:22 -03:00
zebra_nhg.c zebra: Remove typedef rib_table_info_t from system 2020-05-08 08:10:49 -04:00
zebra_nhg.h lib, zebra: add missing extern "C" {} blocks to new header files 2020-04-22 23:49:22 -03:00
zebra_ns.c zebra: importation of bgp evpn rt5 from vni with other netns 2020-05-18 14:11:03 +02:00
zebra_ns.h zebra: importation of bgp evpn rt5 from vni with other netns 2020-05-18 14:11:03 +02:00
zebra_pbr.c *: use appropriate buffer sizes, specifiers 2020-04-20 19:14:33 -04:00
zebra_pbr.h zebra: define some explicit rule replace code paths 2020-04-09 13:37:55 -04:00
zebra_ptm_redistribute.c zebra: Add missing c-bit uint8_t 2020-03-17 16:01:59 -04:00
zebra_ptm_redistribute.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_ptm.c *: sprintf -> snprintf 2020-04-20 19:14:33 -04:00
zebra_ptm.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_pw.c ldpd and Zebra: Expand existing debug commands. 2020-05-11 16:22:52 -04:00
zebra_pw.h add cplusplus guards to all zebra headers 2019-03-25 16:05:27 +01:00
zebra_rib.c zebra: avoid using c++ keywords in headers 2020-05-14 16:42:47 +02:00
zebra_rnh.c zebra: Remove typedef rnh_type_t from system 2020-05-08 08:10:49 -04:00
zebra_rnh.h zebra: Remove typedef rnh_type_t from system 2020-05-08 08:10:49 -04:00
zebra_routemap.c *: sprintf -> snprintf 2020-04-20 19:14:33 -04:00
zebra_routemap.h zebra: Disable rmap update thread before routemap_finish while shutting down zebra 2020-03-16 23:57:45 -07:00
zebra_router.c zebra: northbound changes for the rib model 2020-05-12 13:25:10 -07:00
zebra_router.h zebra: northbound changes for the rib model 2020-05-12 13:25:10 -07:00
zebra_snmp.c zebra: in_addr_cmp and struct prefix are not happy 2020-04-16 20:14:55 -04:00
zebra_vrf.c zebra: Don't kill the global rtadv socket when a vrf is deleted 2020-04-02 11:38:26 -04:00
zebra_vrf.h zebra: Remove typedef of mpls_srgb_t 2020-05-08 08:08:04 -04:00
zebra_vty.c Merge pull request #6227 from pguibert6WIND/show_nexthop_group_permit_netns 2020-05-13 10:53:52 -04:00
zebra_vxlan_private.h zebra: adapt and export rmac netlink functions 2020-04-14 13:45:39 -03:00
zebra_vxlan.c zebra: zvni_map_to_svi() adaptation for other network namespaces 2020-05-18 14:11:03 +02:00
zebra_vxlan.h zebra: clear dup detect cleanup for nb conversion 2020-04-16 08:13:15 -07:00
zebra.conf.sample *: Remove cvs control points 2017-12-05 17:28:12 -05:00
zserv.c lib,zebra: add a session id for zapi sessions 2020-04-16 12:07:54 -04:00
zserv.h zebra: avoid using c++ keywords in headers 2020-05-14 16:42:47 +02:00