aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-02-12 17:38:51 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-02-12 17:38:51 +0100
commitcf3c377193654f2d8eda8a42d51a9c9363e9bd9e (patch)
treed2c773acee362be663d9e03f8d0fe4612aa97eba /hicn-plugin
parent45ae2768f2842cc55f153a71fa66b1d3e25e9ab7 (diff)
[HICN-54] Fixed udp face visualization
Change-Id: Id6bb058bfb54e76ab08afae89db8cf489629f306 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/src/faces/udp/face_udp.c4
1 files changed, 2 insertions, 2 deletions
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 ();