ipip: populate mode in tunnel details 39/39239/1
authorMatthew Smith <mgsmith@netgate.com>
Fri, 14 Jul 2023 16:05:39 +0000 (16:05 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 14 Jul 2023 17:42:26 +0000 (17:42 +0000)
commite870d5b6ac3171355aa61e576a178734f97fafda
treecf48069f7af94dec8aca0c82ed58b8ab6709e4aa
parent54641342887558b2b92813c6ccd9d93797b9f5a1
ipip: populate mode in tunnel details

Type: improvement

There is a mode field in ipip_tunnel_details. The handler for the dump
API does not do anything to populate it so it always contains 0
(TUNNEL_API_MODE_P2P). This is correct for p2p tunnels but is wrong for
multipoint tunnels.

Populate the field with the correct mode.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I6c1288a0d3929db0f67100748b5760c36b594f97
src/vnet/ipip/ipip_api.c