[quagga-dev 12209] [PATCH] zebra: redistribute hw_type to connected daemons

Timo Teräs timo.teras at iki.fi
Thu Apr 30 14:03:11 BST 2015


nhrp module will need it, and it can be useful for others too.

Signed-off-by: Timo Teräs <timo.teras at iki.fi>
---
 lib/zclient.c | 1 +
 zebra/zserv.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/zclient.c b/lib/zclient.c
index 1e05d6d..21cdc94 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -736,6 +736,7 @@ zebra_interface_if_set_value (struct stream *s, struct interface *ifp)
 #ifdef HAVE_STRUCT_SOCKADDR_DL
   stream_get (&ifp->sdl, s, sizeof (ifp->sdl_storage));
 #else
+  ifp->hw_type = stream_getl (s);
   ifp->hw_addr_len = stream_getl (s);
   if (ifp->hw_addr_len)
     stream_get (ifp->hw_addr, s, ifp->hw_addr_len);
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 432c318..868f7d7 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -155,6 +155,7 @@ zserv_encode_interface (struct stream *s, struct interface *ifp)
 #ifdef HAVE_STRUCT_SOCKADDR_DL
   stream_put (s, &ifp->sdl, sizeof (ifp->sdl_storage));
 #else
+  stream_putl (s, ifp->hw_type);
   stream_putl (s, ifp->hw_addr_len);
   if (ifp->hw_addr_len)
     stream_put (s, ifp->hw_addr, ifp->hw_addr_len);
-- 
2.3.6





More information about the Quagga-dev mailing list