gre: fix returning the flags in the API 91/36591/2
authorIvan Shvedunov <ivan.shvedunov@travelping.com>
Tue, 5 Jul 2022 11:13:35 +0000 (15:13 +0400)
committerNeale Ranns <neale@graphiant.com>
Wed, 6 Jul 2022 01:46:35 +0000 (01:46 +0000)
Type: fix

Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com>
Change-Id: I5ecfb242e5905c9bd8ce19cd9ab6efd657ee14d4

src/vnet/gre/gre_api.c

index 3b42c76..59a1d3d 100644 (file)
@@ -143,6 +143,7 @@ static void send_gre_tunnel_details
 
     rmp->tunnel.type = gre_tunnel_type_encode (t->type);
     rmp->tunnel.mode = tunnel_mode_encode (t->mode);
+    rmp->tunnel.flags = tunnel_encap_decap_flags_encode (t->flags);
     rmp->tunnel.instance = htonl (t->user_instance);
     rmp->tunnel.sw_if_index = htonl (t->sw_if_index);
     rmp->tunnel.session_id = htons (t->session_id);