...@zte.com.cn
Subject: [vpp-dev] some issue about using unformat %u
hi all:
we found some common using issues about the use of CLI unformat, as follow:
u16 out_port = 0;
u32 vrf_id = 0, protocol;
else if (unformat (line_input, "%U %u", unformat_i
Hi Hui,
Yup, that’s a ‘known’ unformat trap. When unformatting integers, use u32.
Florin
> On Sep 19, 2017, at 8:33 PM,
> wrote:
>
> hi all:
>
> we found some common using issues about the use of CLI unformat, as follow:
>
>
>
> u16 out_port = 0;
>
> u32 vrf_id = 0, protocol;
>
> els
hi all:
we found some common using issues about the use of CLI unformat, as follow:
u16 out_port = 0
u32 vrf_id = 0, protocol
else if (unformat (line_input, "%U %u", unformat_ip4_address,
&out_addr, &out_port))
when inputing u16 or u8 type param(not u32), the l