From cf3c377193654f2d8eda8a42d51a9c9363e9bd9e Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Tue, 12 Feb 2019 17:38:51 +0100 Subject: [HICN-54] Fixed udp face visualization Change-Id: Id6bb058bfb54e76ab08afae89db8cf489629f306 Signed-off-by: Alberto Compagno --- hicn-plugin/src/faces/udp/face_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-plugin') diff --git a/hicn-plugin/src/faces/udp/face_udp.c b/hicn-plugin/src/faces/udp/face_udp.c index 92335273a..9d3eedd83 100644 --- a/hicn-plugin/src/faces/udp/face_udp.c +++ b/hicn-plugin/src/faces/udp/face_udp.c @@ -33,7 +33,7 @@ mhash_t hicn_face_udp_hashtb; dpo_type_t hicn_face_udp_type; ip4_header_t ip4_header_skl = { - .ip_version_and_header_length = 0x45, + .ip_version_and_header_length = IP4_VERSION_AND_HEADER_LENGTH_NO_OPTIONS, .tos = 0x00, .length = (u16) 0, .fragment_id = (u16) 0, @@ -262,7 +262,7 @@ format_hicn_face_udp (u8 * s, va_list * args) hicn_face_t *face; hicn_face_udp_t *udp_face; ip_adjacency_t *adj; - u8 ipv = 0x40; + u8 ipv = IP4_VERSION_AND_HEADER_LENGTH_NO_OPTIONS; vnet_main_t *vnm = vnet_get_main (); -- cgit 1.2.3-korg