From a7b633f4c8b4d7245c4411cdf249f6e0809fb60b Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Thu, 21 Feb 2019 11:40:21 +0100 Subject: [HICN-75] fixed forwarding issue in udp face and improved packet tracing to show the hicn name Change-Id: I74426c541324d66c2d1b0353afcca17c5aedceba Signed-off-by: Alberto Compagno --- hicn-plugin/src/faces/ip/face_ip_node.c | 8 ++++---- hicn-plugin/src/faces/ip/iface_ip_node.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'hicn-plugin/src/faces/ip') diff --git a/hicn-plugin/src/faces/ip/face_ip_node.c b/hicn-plugin/src/faces/ip/face_ip_node.c index f0408860e..7b32f7355 100644 --- a/hicn-plugin/src/faces/ip/face_ip_node.c +++ b/hicn-plugin/src/faces/ip/face_ip_node.c @@ -56,7 +56,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_face_ip4_input_trace_t; @@ -74,7 +74,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_face_ip6_input_trace_t; @@ -483,7 +483,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_face_ip4_output_trace_t; @@ -493,7 +493,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_face_ip6_output_trace_t; diff --git a/hicn-plugin/src/faces/ip/iface_ip_node.c b/hicn-plugin/src/faces/ip/iface_ip_node.c index a0baa7d8c..fcf43ebd7 100644 --- a/hicn-plugin/src/faces/ip/iface_ip_node.c +++ b/hicn-plugin/src/faces/ip/iface_ip_node.c @@ -77,7 +77,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_iface_ip4_input_trace_t; typedef enum @@ -94,7 +94,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_iface_ip6_input_trace_t; typedef enum @@ -530,7 +530,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_iface_ip4_output_trace_t; typedef enum @@ -546,7 +546,7 @@ typedef struct u32 next_index; u32 sw_if_index; u8 pkt_type; - u8 packet_data[128 - 1 * sizeof (u32)]; + u8 packet_data[60]; } hicn_iface_ip6_output_trace_t; typedef enum -- cgit 1.2.3-korg