回复:RE: [vpp-dev] Why not break the check flow when the first error occurs of ip4_inout()?

2020-07-21 Thread
Hi Dave, Thanks for your reply. --  -- ??: "Dave Barach (dbarach)"

[vpp-dev] Why not break the check flow when the first error occurs of ip4_inout()?

2020-07-20 Thread
Hi all, When I'm reading the ip4_input.c code, I'm confused about the following code. vnet/vnet/ip/ip4_input.c:ip4_input_inline() {              ...             error0 = error1 = IP4_ERROR_NONE;             /* Punt packets with options. */             error0 = (ip0->ip_version_and_header_len

Re: [EXTERNAL] [vpp-dev] why define an unused var

2020-07-12 Thread
@Chris,@Dave, Thanks for the explanation, and thanks for the suggestion. ---Original--- From: "Chris Luke"-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16939): https://lists.fd.io/g/vpp-dev/message/16939 Mute This Topic: https://lists.fd.io/mt

[vpp-dev] why define an unused var

2020-07-11 Thread
hi there,  i'm reading vpp code,  and confused with this code: int rv __attribute__ ((unused)) = write (2, "Main heap allocation failure!\r\n", 31); why it define a var named rv, but never used, what dose this var mean to? git:stable/1609 vpp/vnet/main.c:264-=-=-=-=-=-=-=-=-=-=-=- Links: You