aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-11-23 18:28:42 +0100
committerMauro Sardara <msardara@cisco.com>2020-11-23 18:28:42 +0100
commit190b3218c0443e9c60b62823f415f2b5462e4079 (patch)
tree4560f2dc5a7f6394989b0fe20e50c62bf821bc80 /libtransport
parentfce46803b69bc8d881f1438cb8bd38514e5e42e3 (diff)
[HICN-659] Fix udp-encap inconsistencies
Independently of the type of tunnel, encapsulated packet can be either v6 or v4, so we need to create 2 faces for each version of the tunnel. Currently we are wrongly associating v4 tunnels with v4 packets and v6 tunnel with v6 packets. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I81e6e4b8b71ae7949d27065cc61b1b5b23db6a8d
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/core/forwarder_interface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtransport/src/core/forwarder_interface.h b/libtransport/src/core/forwarder_interface.h
index 772cfbb52..a94414d38 100644
--- a/libtransport/src/core/forwarder_interface.h
+++ b/libtransport/src/core/forwarder_interface.h
@@ -49,7 +49,10 @@ class ForwarderInterface {
inet6_address_({}),
mtu_(1500),
output_interface_(""),
- content_store_reserved_(standard_cs_reserved) {}
+ content_store_reserved_(standard_cs_reserved) {
+ inet_address_.v4.as_u32 = htonl(0x7f00001);
+ inet6_address_.v6.as_u8[15] = 0x01;
+ }
public:
virtual ~ForwarderInterface() {}