summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_router.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-03-27 15:05:58 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-06-04 18:33:57 +0200
commit9245fe61933c9ae3092d107443a418bc0e4f0c9e (patch)
treead22c51cf5f65c86bb3ccf06e7e97059491b7090 /zebra/zebra_router.h
parentzebra: move rtadv service from zrouter to zvrf (diff)
downloadfrr-9245fe61933c9ae3092d107443a418bc0e4f0c9e.tar.xz
frr-9245fe61933c9ae3092d107443a418bc0e4f0c9e.zip
zebra: keep rtadv_sock field in zrouter for optimisation
in the case the vrf backend is vrf-lite, there is no need to have separate sockets. use a socket located in zrouter, so that when needing the socket, a common API is used. that API will return the appropriate socket value. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to '')
-rw-r--r--zebra/zebra_router.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h
index 7b61a6051..e50f8a118 100644
--- a/zebra/zebra_router.h
+++ b/zebra/zebra_router.h
@@ -93,6 +93,9 @@ struct zebra_router {
struct hash *iptable_hash;
+ /* used if vrf backend is not network namespace */
+ int rtadv_sock;
+
/* A sequence number used for tracking routes */
_Atomic uint32_t sequence_num;