]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[zserv] Update interface flags to 8 bytes wide.
authorpaul <paul>
Wed, 11 Jan 2006 01:59:04 +0000 (01:59 +0000)
committerpaul <paul>
Wed, 11 Jan 2006 01:59:04 +0000 (01:59 +0000)
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.

lib/ChangeLog
lib/if.h
lib/zclient.c
zebra/ChangeLog
zebra/zserv.c

index da0bc4ad9d6f181c062c87d12226e9b0bbb0677d..0e98b924c0f78b7bba852789d25a7759cbcf8c12 100644 (file)
@@ -1,3 +1,10 @@
+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-10 Paul Jakma <paul.jakma@sun.com>
 
        * stream.c: (stream_new) Allocate stream data as seperate object.
index 8126ea9ca7d265731ddb53b2f2d4b4f7e2569ea6..e62990601e7730d126be7d7d6af3cbaba5412cc4 100644 (file)
--- a/lib/if.h
+++ b/lib/if.h
@@ -92,7 +92,7 @@ struct interface
 #define ZEBRA_INTERFACE_LINKDETECTION (1 << 2)
   
   /* Interface flags. */
-  unsigned long flags;
+  uint64_t flags;
 
   /* Interface metric */
   int metric;
index d0c4c3bd33ecb5bcb920e3a283cb4cf2c056b6ba..b09f55864a6889f11aec1039f0d3c95989e6665b 100644 (file)
@@ -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);
index 89e5fca3cd61a3a9104cc2aec49eaa5521ecc156..91cf54889ec7644802eb54483f90fe97a2454f5b 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-12-29  Greg Troxel  <gdt@fnord.ir.bbn.com>
 
        * kernel_socket.c: remove dead code (from David Young).
index abd99cdc381f0c61508135b37853352f431ed3c0..35dd306ee1fea9670e3c1492c29d198f877a7e50 100644 (file)
@@ -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);