From 130ee544d393979b487e7e6685d55519f6c2ca18 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Mon, 9 Dec 2019 16:56:47 +0000 Subject: [HICN-441] Fixed udp punting. Ip version of the punting (6 or 4) was set in the wrong way. Before enabling punting we were checking for the wrong table type (ip4 when it was 6 and vice versa) Signed-off-by: Alberto Compagno Change-Id: I1d144010b5f26fdbc98517a647bc218692813f09 --- hicn-plugin/src/punt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hicn-plugin') diff --git a/hicn-plugin/src/punt.c b/hicn-plugin/src/punt.c index bb0c076f7..74d4c1056 100644 --- a/hicn-plugin/src/punt.c +++ b/hicn-plugin/src/punt.c @@ -67,7 +67,7 @@ ip_version_t udp4_src_ipv6 = { .addr_len_bits = IPV6_ADDR_LEN_BITS, .protocol_field = &udp4_protocol, .udp_sport = &udp4_sport, - .ip_version = 0x60, + .ip_version = 0x40, }; ip_version_t udp4_dst_ipv4 = { @@ -83,7 +83,7 @@ ip_version_t udp4_dst_ipv6 = { .addr_len_bits = IPV6_ADDR_LEN_BITS, .protocol_field = &udp4_protocol, .udp_dport = &udp4_dport, - .ip_version = 0x60, + .ip_version = 0x40, }; ip_version_t udp6_src_ipv4 = { @@ -91,7 +91,7 @@ ip_version_t udp6_src_ipv4 = { .addr_len_bits = IPV4_ADDR_LEN_BITS, .protocol_field = &udp6_protocol, .udp_sport = &udp6_sport, - .ip_version = 0x40, + .ip_version = 0x60, }; ip_version_t udp6_src_ipv6 = { @@ -107,7 +107,7 @@ ip_version_t udp6_dst_ipv4 = { .addr_len_bits = IPV4_ADDR_LEN_BITS, .protocol_field = &udp6_protocol, .udp_dport = &udp6_dport, - .ip_version = 0x40, + .ip_version = 0x60, }; ip_version_t udp6_dst_ipv6 = { -- cgit 1.2.3-korg