nhrp module will need it, and it can be useful for others too.
Signed-off-by: Timo Teräs <[email protected]>
---
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.4.1
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev