diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-03-27 15:05:58 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-06-04 18:33:57 +0200 |
commit | 9245fe61933c9ae3092d107443a418bc0e4f0c9e (patch) | |
tree | ad22c51cf5f65c86bb3ccf06e7e97059491b7090 /zebra/zebra_router.h | |
parent | zebra: move rtadv service from zrouter to zvrf (diff) | |
download | frr-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.h | 3 |
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; |