Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
/* Type, flags, message. */
api.type = stream_getc (s);
/* Type, flags, message. */
api.type = stream_getc (s);
- api.flags = stream_getc (s);
+ api.instance = stream_getw (s);
+ api.flags = stream_getl (s);
api.message = stream_getc (s);
/* IPv6 prefix. */
api.message = stream_getc (s);
/* IPv6 prefix. */
- if (command == ZEBRA_IPV6_ROUTE_ADD)
+ if (command == ZEBRA_REDISTRIBUTE_IPV6_ADD)
babel_ipv6_route_add(&api, &prefix, ifindex, &nexthop);
else
babel_ipv6_route_delete(&api, &prefix, ifindex);
babel_ipv6_route_add(&api, &prefix, ifindex, &nexthop);
else
babel_ipv6_route_delete(&api, &prefix, ifindex);
/* Type, flags, message. */
api.type = stream_getc (s);
/* Type, flags, message. */
api.type = stream_getc (s);
- api.flags = stream_getc (s);
+ api.instance = stream_getw (s);
+ api.flags = stream_getl (s);
api.message = stream_getc (s);
/* IPv6 prefix. */
api.message = stream_getc (s);
/* IPv6 prefix. */
- if (command == ZEBRA_IPV4_ROUTE_ADD) {
+ if (command == ZEBRA_REDISTRIBUTE_IPV4_ADD) {
babel_ipv4_route_add(&api, &prefix, ifindex, &nexthop);
} else {
babel_ipv4_route_delete(&api, &prefix, ifindex);
babel_ipv4_route_add(&api, &prefix, ifindex, &nexthop);
} else {
babel_ipv4_route_delete(&api, &prefix, ifindex);