diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-14 15:04:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-03-14 15:04:59 +0000 |
commit | bb563a76bd1b258534ee19be98dfee735908ea22 (patch) | |
tree | 9f76f22a85692789bb2684f90a7f55425988444c /hicn-plugin/src/faces/udp/dpo_udp.h | |
parent | 1266a593b683ee2dd3d777d943f48862475e89a7 (diff) | |
parent | 3ae22de77996e7138107be9716545867210468db (diff) |
Merge "[HICN-112] Fixed bug on dymanic udp face creation. Fixed visualization of udp faces with "hicn show" command"
Diffstat (limited to 'hicn-plugin/src/faces/udp/dpo_udp.h')
-rw-r--r-- | hicn-plugin/src/faces/udp/dpo_udp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hicn-plugin/src/faces/udp/dpo_udp.h b/hicn-plugin/src/faces/udp/dpo_udp.h index cc71a8d44..3d74a1884 100644 --- a/hicn-plugin/src/faces/udp/dpo_udp.h +++ b/hicn-plugin/src/faces/udp/dpo_udp.h @@ -115,7 +115,7 @@ hicn_dpo_udp4_add_and_lock (dpo_id_t * dpo, const ip4_address_t * local_addr, const ip4_address_t * remote_addr, u16 local_port, u16 remote_port, - u32 node_index, u8 * hicnb_flags) + u32 node_index, u8 * hicnb_flags, u32 sw_if) { dpo->dpoi_type = DPO_FIRST; dpo->dpoi_proto = DPO_PROTO_NONE; @@ -146,6 +146,7 @@ hicn_dpo_udp4_add_and_lock (dpo_id_t * dpo, face->shared.face_type = hicn_face_udp_type; face->shared.flags = HICN_FACE_FLAGS_IFACE; face->shared.locks = 0; + face->shared.sw_if = sw_if; hicn_face_udp_key_t key; hicn_face_udp4_get_key (local_addr, remote_addr, local_port, @@ -153,7 +154,6 @@ hicn_dpo_udp4_add_and_lock (dpo_id_t * dpo, hicn_face_id_t dpoi_index = hicn_dpoi_get_index (face); mhash_set_mem (&hicn_face_udp_hashtb, &key, (uword *) & dpoi_index, 0); - face = face; *hicnb_flags = HICN_BUFFER_FLAGS_DEFAULT; dpo_set (dpo, hicn_face_udp_type, DPO_PROTO_IP4, dpoi_index); @@ -257,7 +257,7 @@ hicn_dpo_udp6_add_and_lock (dpo_id_t * dpo, const ip6_address_t * local_addr, const ip6_address_t * remote_addr, u16 local_port, u16 remote_port, - u32 node_index, u8 * hicnb_flags) + u32 node_index, u8 * hicnb_flags, u32 sw_if) { dpo->dpoi_type = DPO_FIRST; dpo->dpoi_proto = DPO_PROTO_NONE; @@ -288,6 +288,7 @@ hicn_dpo_udp6_add_and_lock (dpo_id_t * dpo, face->shared.face_type = hicn_face_udp_type; face->shared.flags = HICN_FACE_FLAGS_IFACE; face->shared.locks = 0; + face->shared.sw_if = sw_if; hicn_face_udp_key_t key; hicn_face_udp6_get_key (local_addr, remote_addr, local_port, |