diff options
author | Florin Coras <fcoras@cisco.com> | 2017-03-07 01:20:52 -0800 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-03-07 21:40:24 +0000 |
commit | a0b34a74a916eff88f9a8354c78a2cf9798c8578 (patch) | |
tree | 5ef5596d68570a5fa7691071ddd39f2f3275e52b /src/vnet/ip/ip4_forward.c | |
parent | f7f2a9feaa2cad8313afba53b53c32f1928f664c (diff) |
Register TCP with IP only if session is enabled
Change-Id: I73154179e78aeae5f879125237bce593d0978fae
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4_forward.c')
-rw-r--r-- | src/vnet/ip/ip4_forward.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index 31b687d7..5472428f 100644 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -1706,10 +1706,11 @@ ip4_local_inline (vlib_main_t * vm, ip1->dst_address.as_u32 != 0xFFFFFFFF) ? IP4_ERROR_SRC_LOOKUP_MISS : error1); + skip_checks: + next0 = lm->local_next_by_ip_protocol[proto0]; next1 = lm->local_next_by_ip_protocol[proto1]; - skip_checks: next0 = error0 != IP4_ERROR_UNKNOWN_PROTOCOL ? IP_LOCAL_NEXT_DROP : next0; next1 = |