]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_ns.h
doc, lib, zebra: Remove deprecated encode and decode functionality
[mirror_frr.git] / zebra / zebra_ns.h
index 19ecba1f0e764cab1a8c937a6aa8b8eef35aa66b..ed70a34c0bfbe1e8c06b97d598782c9ee6f1c456 100644 (file)
@@ -25,6 +25,9 @@
 #include <lib/ns.h>
 #include <lib/vrf.h>
 
+#include "zebra/rib.h"
+#include "zebra/zebra_vrf.h"
+
 #ifdef HAVE_NETLINK
 /* Socket interface to kernel */
 struct nlsock {
@@ -40,6 +43,7 @@ struct zebra_ns_table {
 
        uint32_t tableid;
        afi_t afi;
+       ns_id_t ns_id;
 
        struct route_table *table;
 };
@@ -73,6 +77,12 @@ struct zebra_ns {
 
        struct hash *rules_hash;
 
+       struct hash *ipset_hash;
+
+       struct hash *ipset_entry_hash;
+
+       struct hash *iptable_hash;
+
        /* Back pointer */
        struct ns *ns;
 };
@@ -90,4 +100,7 @@ extern struct route_table *zebra_ns_get_table(struct zebra_ns *zns,
                                              struct zebra_vrf *zvrf,
                                              uint32_t tableid, afi_t afi);
 int zebra_ns_config_write(struct vty *vty, struct ns *ns);
+
+unsigned long zebra_ns_score_proto(uint8_t proto, unsigned short instance);
+void zebra_ns_sweep_route(void);
 #endif