summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-09-16 21:55:37 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:12:43 +0200
commit0fc452dc57467bd1ab1dabe119be979d996af3f9 (patch)
tree2c19dc4152b9e7e7238002e6ad488a8074233b1e /ospfd/ospf_zebra.c
parentlib: Check prefix length from zebra is sensible (diff)
downloadfrr-0fc452dc57467bd1ab1dabe119be979d996af3f9.tar.xz
frr-0fc452dc57467bd1ab1dabe119be979d996af3f9.zip
Make route flags a 32bit field
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 0938ce8d1..4458e95ba 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -355,7 +355,7 @@ ospf_zebra_add (struct prefix_ipv4 *p, struct ospf_route *or)
{
u_char message;
u_char distance;
- u_char flags;
+ u_int32_t flags;
int psize;
struct stream *s;
struct ospf_path *path;
@@ -393,7 +393,7 @@ ospf_zebra_add (struct prefix_ipv4 *p, struct ospf_route *or)
zclient_create_header (s, ZEBRA_IPV4_ROUTE_ADD, VRF_DEFAULT);
stream_putc (s, ZEBRA_ROUTE_OSPF);
stream_putw (s, ospf->instance);
- stream_putc (s, flags);
+ stream_putl (s, flags);
stream_putc (s, message);
stream_putw (s, SAFI_UNICAST);
@@ -492,7 +492,7 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
{
u_char message;
u_char distance;
- u_char flags;
+ u_int32_t flags;
int psize;
struct stream *s;
struct ospf_path *path;
@@ -516,7 +516,7 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
zclient_create_header (s, ZEBRA_IPV4_ROUTE_DELETE, VRF_DEFAULT);
stream_putc (s, ZEBRA_ROUTE_OSPF);
stream_putw (s, ospf->instance);
- stream_putc (s, flags);
+ stream_putl (s, flags);
stream_putc (s, message);
stream_putw (s, SAFI_UNICAST);
@@ -1064,7 +1064,7 @@ ospf_zebra_read_ipv4 (int command, struct zclient *zclient,
/* Type, flags, message. */
api.type = stream_getc (s);
api.instance = stream_getw (s);
- api.flags = stream_getc (s);
+ api.flags = stream_getl (s);
api.message = stream_getc (s);
/* IPv4 prefix. */