On it. Best regards, Filip Varga
po 31. 10. 2022 o 14:13 lihuawei <lihuawei_...@163.com> napĂsal(a): > Hi community, > > I have added a fix as gerrit review id 37559. > > *gerrit link: https://gerrit.fd.io/r/c/vpp/+/37559 > <https://gerrit.fd.io/r/c/vpp/+/37559>* > > *short description: *Fix byte order error about the struct > snat_address_t's member net. For example configurations: > set interface ip table loop1 1 > set interface ip addr loop1 10.10.10.2/24 > nat44 add address 10.10.10.2 tenant-vrf 1 > The snat address's net should be "as_u8 = {0xa, 0xa, 0xa, 0x0}", but now > it's "as_u8 = {0x0, 0xa, 0xa, 0x2}" because of missing transition of byte > order about the member net of snat_address_t. > (gdb) p/x *snat_main->addresses $3 = {addr = {data = {0xa, 0xa, 0xa, 0x2}, > data_u32 = 0x20a0a0a, as_u8 = {0xa, 0xa, 0xa, 0x2}, as_u16 = {0xa0a, > 0x20a}, as_u32 = 0x20a0a0a}, net = {data = {0x0, 0xa, 0xa, 0x2}, data_u32 = > 0x20a0a00, as_u8 = {0x0, 0xa, 0xa, 0x2}, as_u16 = {0xa00, 0x20a}, as_u32 = > 0x20a0a00}, sw_if_index = 0x3, fib_index = 0x1,addr_len = 0x18} > (gdb). > > Please have a look at my patch and review it. > > Best Regards, > Huawei LI > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22100): https://lists.fd.io/g/vpp-dev/message/22100 Mute This Topic: https://lists.fd.io/mt/94684683/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-