diff options
| author | Christian Franke <nobody@nowhere.ws> | 2016-09-16 21:55:37 +0200 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 12:12:43 -0400 | 
| commit | 0fc452dc57467bd1ab1dabe119be979d996af3f9 (patch) | |
| tree | 2c19dc4152b9e7e7238002e6ad488a8074233b1e /isisd | |
| parent | d91788284ed910bcf945c01ceb18334423cc352d (diff) | |
Make route flags a 32bit field
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_zebra.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index a75e293f96..646c5fa88e 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -257,7 +257,8 @@ static void  isis_zebra_route_add_ipv4 (struct prefix *prefix,  			   struct isis_route_info *route_info)  { -  u_char message, flags; +  u_char message; +  u_int32_t flags;    int psize;    struct stream *stream;    struct isis_nexthop *nexthop; @@ -285,7 +286,7 @@ isis_zebra_route_add_ipv4 (struct prefix *prefix,        /* instance */        stream_putw (stream, 0);        /* flags */ -      stream_putc (stream, flags); +      stream_putl (stream, flags);        /* message */        stream_putc (stream, message);        /* SAFI */ @@ -566,7 +567,7 @@ isis_zebra_read_ipv4 (int command, struct zclient *zclient,    api.type = stream_getc (stream);    api.instance = stream_getw (stream); -  api.flags = stream_getc (stream); +  api.flags = stream_getl (stream);    api.message = stream_getc (stream);    p.family = AF_INET; @@ -623,7 +624,7 @@ isis_zebra_read_ipv6 (int command, struct zclient *zclient,    ifindex = 0;    api.type = stream_getc(stream); -  api.flags = stream_getc(stream); +  api.flags = stream_getl(stream);    api.message = stream_getc(stream);    p.family = AF_INET6;  | 
