ipsec: fix unformat types 99/29799/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 6 Nov 2020 09:51:47 +0000 (10:51 +0100)
committerNeale Ranns <nranns@cisco.com>
Mon, 9 Nov 2020 09:01:52 +0000 (09:01 +0000)
commitf6422ffbc82c55f50d06c8c7a2e230db7001ee35
treef582914978c10324ea26f4cea794cd1aa203f7c9
parent27632cae3dbed6afbaaf12d8da7798d7ecaa2ddb
ipsec: fix unformat types

ipsec_{crypto,integ}_alg_t are packed and smaller than u32. Callers are
using those enums so unformat functions should too instead of u32 to
not overflow the stack.

Type: fix

Change-Id: Ifc86366f1928ca6352f06f390a88ac64668289d5
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/ipsec/ipsec_format.c