diff options
author | paul <paul> | 2005-02-19 02:00:26 +0000 |
---|---|---|
committer | paul <paul> | 2005-02-19 02:00:26 +0000 |
commit | e31f22999430d37acbb7706d8fb5dd613ee51150 (patch) | |
tree | 00abec1a505874a93ade18847a48f3bd9e9c1847 /zebra | |
parent | fa81b713e785d4884d5f45f3acd21dc460110862 (diff) |
2005-02-19 Paul Jakma <paul@dishone.st>
* zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
STREAM_READABLE.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/ChangeLog | 5 | ||||
-rw-r--r-- | zebra/zserv.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 4f142c16..95d072cb 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -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 diff --git a/zebra/zserv.c b/zebra/zserv.c index dfaa90e7..e74248b1 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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; |