diff options
author | paul <paul> | 2006-01-11 01:59:04 +0000 |
---|---|---|
committer | paul <paul> | 2006-01-11 01:59:04 +0000 |
commit | b75a54ade06738c47ed811e728a6d965311ce4a4 (patch) | |
tree | dea0e2e96a95eb1dde2779df4b3f206db4da33b7 /lib/zclient.c | |
parent | 4675744f1d8d4013387044dd715b21319e17bbd7 (diff) | |
download | quagga-b75a54ade06738c47ed811e728a6d965311ce4a4.tar.bz2 quagga-b75a54ade06738c47ed811e728a6d965311ce4a4.tar.xz |
[zserv] Update interface flags to 8 bytes wide.
2006-01-11 Paul Jakma <paul.jakma@sun.com>
* 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 <paul.jakma@sun.com>
* zserv.c: (zsend_interface_{add,delete,update}) if flags are
8 bytes now, update to write out with stream_putq.
Diffstat (limited to 'lib/zclient.c')
-rw-r--r-- | lib/zclient.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index d0c4c3bd..b09f5586 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -585,6 +585,7 @@ zebra_router_id_update_read (struct stream *s, struct prefix *rid) * | ifindex | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | if_flags | + * | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | metric | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ @@ -615,7 +616,7 @@ zebra_interface_add_read (struct stream *s) /* Read interface's value. */ ifp->status = stream_getc (s); - ifp->flags = stream_getl (s); + ifp->flags = stream_getq (s); ifp->metric = stream_getl (s); ifp->mtu = stream_getl (s); ifp->mtu6 = stream_getl (s); @@ -660,7 +661,7 @@ zebra_interface_state_read (struct stream *s) /* Read interface's value. */ ifp->status = stream_getc (s); - ifp->flags = stream_getl (s); + ifp->flags = stream_getq (s); ifp->metric = stream_getl (s); ifp->mtu = stream_getl (s); ifp->mtu6 = stream_getl (s); @@ -709,7 +710,7 @@ zebra_interface_if_set_value (struct stream *s, struct interface *ifp) ifp->status = stream_getc (s); /* Read interface's value. */ - ifp->flags = stream_getl (s); + ifp->flags = stream_getq (s); ifp->metric = stream_getl (s); ifp->mtu = stream_getl (s); ifp->mtu6 = stream_getl (s); |