Nothing wrong here AFAICT.
vnet_buffer(b)->sw_if_index[VLIB_RX] = 2, which is plausible. “show int” to
confirm.
vnet_buffer(b)->sw_if_index[VLIB_TX] = 0xFFFFFFFF == ~0 == 4294967295 => use
the interface’s FIB index in ip[46]_lookup.
sw_if_index = {2, 4294967295},
From: [email protected] [mailto:[email protected]] On
Behalf Of ???
Sent: Thursday, January 4, 2018 1:51 AM
To: vpp-dev <[email protected]>
Subject: [vpp-dev] 'vlib_buffer_alloc' alloc an uninitialized memory
Hi guys,
I'm testing ikev2. In the function 'ikev2_rekey_child_sa_internal',:
bi0 = ikev2_get_new_ike_header_buff (vm, &ike0);
//The following is the debug code
vlib_buffer_t *b0;
b0 = vlib_get_buffer (vm, bi0);
(gdb) p *(vnet_buffer_opaque_t *)(b0->opaque)
$1 = {
sw_if_index = {2, 4294967295}, //The rest of the value is correct
l2_hdr_offset = 0,
l3_hdr_offset = 0,
l4_hdr_offset = 0,
The wrong may cause an error in 'ip4_lookup_inline '.
BTW, the problem doesn't happen every time.
Thanks,
Xyxue
________________________________
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev