]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: netfilter operations notif sent back to daemon 9915/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 2 Nov 2021 09:05:20 +0000 (10:05 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 3 Nov 2021 16:17:08 +0000 (17:17 +0100)
It appears that without that change, there were no notifications
sent to bgp daemon, after flowspec operations have been sent to
zebra.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zapi_msg.c

index 61bd1417d158423f529b28828658563b157cbb5d..166c50ac0e2344e2ac744c8d7ac772d150b59752 100644 (file)
@@ -893,7 +893,7 @@ void zsend_iptable_notify_owner(const struct zebra_dplane_ctx *ctx,
        s = stream_new(ZEBRA_MAX_PACKET_SIZ);
 
        zclient_create_header(s, cmd, VRF_DEFAULT);
-       stream_put(s, &note, sizeof(note));
+       stream_putw(s, note);
        stream_putl(s, ipt.unique);
        stream_put(s, ipt.ipset_name, ZEBRA_IPSET_NAME_SIZE);
        stream_putw_at(s, 0, stream_get_endp(s));
@@ -928,7 +928,7 @@ void zsend_ipset_notify_owner(const struct zebra_dplane_ctx *ctx,
        s = stream_new(ZEBRA_MAX_PACKET_SIZ);
 
        zclient_create_header(s, cmd, VRF_DEFAULT);
-       stream_put(s, &note, sizeof(note));
+       stream_putw(s, note);
        stream_putl(s, ipset.unique);
        stream_put(s, ipset.ipset_name, ZEBRA_IPSET_NAME_SIZE);
        stream_putw_at(s, 0, stream_get_endp(s));
@@ -966,7 +966,7 @@ void zsend_ipset_entry_notify_owner(const struct zebra_dplane_ctx *ctx,
        s = stream_new(ZEBRA_MAX_PACKET_SIZ);
 
        zclient_create_header(s, cmd, VRF_DEFAULT);
-       stream_put(s, &note, sizeof(note));
+       stream_putw(s, note);
        stream_putl(s, ipent.unique);
        stream_put(s, ipset.ipset_name, ZEBRA_IPSET_NAME_SIZE);
        stream_putw_at(s, 0, stream_get_endp(s));