]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-02-19 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Sat, 19 Feb 2005 02:00:26 +0000 (02:00 +0000)
committerpaul <paul>
Sat, 19 Feb 2005 02:00:26 +0000 (02:00 +0000)
* zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
  STREAM_READABLE.

zebra/ChangeLog
zebra/zserv.c

index 4f142c160520e887b7704969993cec9639c99f8c..95d072cbff8eb1ba3a1d4a26dc5c65a9b8ee2726 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-19 Paul Jakma <paul@dishone.st>
+
+       * zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
+         STREAM_READABLE.
+
 2005-02-14 Paul Jakma <paul@dishone.st>
 
        * Not all Linux netlink systems have IFLA_WIRELESS
index dfaa90e7b0a6a0741bc6004732bbeabdd94f6eab..e74248b19afcf23c1f64c4aa21e5d3ec5c0c1ece 100644 (file)
@@ -1110,18 +1110,13 @@ zebra_read_ipv6 (int command, struct zserv *client, u_short length)
   u_char type;
   u_char flags;
   struct in6_addr nexthop, *gate;
-  u_char *lim;
-  u_char *pnt;
   unsigned int ifindex;
 
-  pnt = stream_pnt (client->ibuf);
-  lim = pnt + length;
-
   type = stream_getc (client->ibuf);
   flags = stream_getc (client->ibuf);
   stream_get (&nexthop, client->ibuf, sizeof (struct in6_addr));
   
-  while (stream_pnt (client->ibuf) < lim)
+  while (STREAM_READABLE (client->ibuf))
     {
       int size;
       struct prefix_ipv6 p;