From c77d4546619f9d3e0ccfac5acbc0ebb42658a61f Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 11 Jan 2006 01:59:04 +0000 Subject: [zserv] Update interface flags to 8 bytes wide. 2006-01-11 Paul Jakma * if.h: (struct interface) expand flags to 8 bytes. * zclient.c: (zebra_interface_{add,state}_read) stream read of interface flags now need to use stream_getq. (zebra_interface_if_set_value) ditto 2006-01-11 Paul Jakma * zserv.c: (zsend_interface_{add,delete,update}) if flags are 8 bytes now, update to write out with stream_putq. --- zebra/ChangeLog | 5 +++++ zebra/zserv.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'zebra') diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 89e5fca3..91cf5488 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,8 @@ +2006-01-11 Paul Jakma + + * zserv.c: (zsend_interface_{add,delete,update}) if flags are + 8 bytes now, update to write out with stream_putq. + 2005-12-29 Greg Troxel * kernel_socket.c: remove dead code (from David Young). diff --git a/zebra/zserv.c b/zebra/zserv.c index abd99cdc..35dd306e 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -183,7 +183,7 @@ zsend_interface_add (struct zserv *client, struct interface *ifp) stream_put (s, ifp->name, INTERFACE_NAMSIZ); stream_putl (s, ifp->ifindex); stream_putc (s, ifp->status); - stream_putl (s, ifp->flags); + stream_putq (s, ifp->flags); stream_putl (s, ifp->metric); stream_putl (s, ifp->mtu); stream_putl (s, ifp->mtu6); @@ -223,7 +223,7 @@ zsend_interface_delete (struct zserv *client, struct interface *ifp) stream_put (s, ifp->name, INTERFACE_NAMSIZ); stream_putl (s, ifp->ifindex); stream_putc (s, ifp->status); - stream_putl (s, ifp->flags); + stream_putq (s, ifp->flags); stream_putl (s, ifp->metric); stream_putl (s, ifp->mtu); stream_putl (s, ifp->mtu6); @@ -355,7 +355,7 @@ zsend_interface_update (int cmd, struct zserv *client, struct interface *ifp) stream_put (s, ifp->name, INTERFACE_NAMSIZ); stream_putl (s, ifp->ifindex); stream_putc (s, ifp->status); - stream_putl (s, ifp->flags); + stream_putq (s, ifp->flags); stream_putl (s, ifp->metric); stream_putl (s, ifp->mtu); stream_putl (s, ifp->mtu6); -- cgit v1.2.1