summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorpaul <paul>2006-01-17 18:49:53 +0100
committerpaul <paul>2006-01-17 18:49:53 +0100
commitc6371718f39dedd2a03010a9dc26a18d96abbe7f (patch)
treed2b17403d11b3d162275bfa28711f5ee3daa6a94 /ospfd/ospf_zebra.c
parent[lib/zclient] Export zclient_create_header (diff)
downloadfrr-c6371718f39dedd2a03010a9dc26a18d96abbe7f.tar.xz
frr-c6371718f39dedd2a03010a9dc26a18d96abbe7f.zip
[ospfd/zserv] adjust to new format
2006-01-17 Paul Jakma <paul.jakma@sun.com> * ospf_packet.c: (ospf_verify_header) print out the types involved if there's a mismatch. * ospf_zebra.c: (ospf_zebra_add) Adjust to new zserv format.
Diffstat (limited to '')
-rw-r--r--ospfd/ospf_zebra.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 544a0d614..494f63cef 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -342,11 +342,8 @@ ospf_zebra_add (struct prefix_ipv4 *p, struct ospf_route *or)
s = zclient->obuf;
stream_reset (s);
- /* Length place holder. */
- stream_putw (s, 0);
-
/* Put command, type, flags, message. */
- stream_putc (s, ZEBRA_IPV4_ROUTE_ADD);
+ zclient_create_header (s, ZEBRA_IPV4_ROUTE_ADD);
stream_putc (s, ZEBRA_ROUTE_OSPF);
stream_putc (s, flags);
stream_putc (s, message);