From c6371718f39dedd2a03010a9dc26a18d96abbe7f Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 17 Jan 2006 17:49:53 +0000 Subject: [ospfd/zserv] adjust to new format 2006-01-17 Paul Jakma * 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. --- ospfd/ospf_zebra.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ospfd/ospf_zebra.c') diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 544a0d61..494f63ce 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); -- cgit v1.2.1