api: fix [un]formatting in vpp/api/types.c 34/40634/4
authorKlement Sekera <klement.sekera@gmail.com>
Tue, 2 Apr 2024 10:51:10 +0000 (12:51 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 5 Apr 2024 14:03:40 +0000 (14:03 +0000)
commite8fb3cfe892ca1c562d63eb8854386180a297d80
treed98966ff14eaf33cbc4166a303ff40121597700a
parent37d8c185b8902d9c69859160aee6e34ec72062fd
api: fix [un]formatting in vpp/api/types.c

vl_api_prefix_t.len is 1 byte only, but unformat %d writes 4 bytes
add helper functions unformat_u(8|16) which don't write more than
appropriate amount of bytes
fix other similar errors in vpp/api/types.c

Type: fix
Change-Id: I74a61a377147c373f8c25ed083052b2287763c39
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
src/vpp/api/types.c
src/vppinfra/format.h
src/vppinfra/unformat.c