aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-12-09 16:56:47 +0000
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-12-09 16:56:47 +0000
commit130ee544d393979b487e7e6685d55519f6c2ca18 (patch)
tree0385c31b53c9d16009066c4f0a44f178271dc76e /hicn-plugin/src
parente8eda2c819b36555d9d6b080eaf8b4b1109d7646 (diff)
[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 <acompagn+fdio@cisco.com> Change-Id: I1d144010b5f26fdbc98517a647bc218692813f09
Diffstat (limited to 'hicn-plugin/src')
-rw-r--r--hicn-plugin/src/punt.c8
1 files changed, 4 insertions, 4 deletions
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 = {