diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-23 15:32:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-03-23 15:32:22 +0000 |
commit | 43562f9f02d35e5d540ab4028a0326c0c7cd4898 (patch) | |
tree | a015156872de191b209ca90da4bee8224e41b3f8 /hicn-plugin/src/faces/ip/face_ip.c | |
parent | dfc988a222a38da36999395e393e3b1ed1ccdfde (diff) | |
parent | 2ba7f1f0bef4ecb20af57283d456e66e31fa667a (diff) |
Merge "[HICN-138] Added number of received/transmitted bytes and packets on each face"
Diffstat (limited to 'hicn-plugin/src/faces/ip/face_ip.c')
-rw-r--r-- | hicn-plugin/src/faces/ip/face_ip.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/hicn-plugin/src/faces/ip/face_ip.c b/hicn-plugin/src/faces/ip/face_ip.c index a7ec95417..e4eb8b665 100644 --- a/hicn-plugin/src/faces/ip/face_ip.c +++ b/hicn-plugin/src/faces/ip/face_ip.c @@ -233,13 +233,20 @@ hicn_face_ip_add (const ip46_address_t * local_addr, hicn_mapme_eventmgr_process_node.index, HICN_MAPME_EVENT_FACE_ADD, 1, sizeof (retx_t)); + + /* *INDENT-OFF* */ *retx = (retx_t) { - .prefix = 0,.dpo = (dpo_id_t) + .prefix = 0, + .dpo = (dpo_id_t) { - .dpoi_type = hicn_face_ip_type,.dpoi_proto = dpo_proto,.dpoi_next_node = - 0,.dpoi_index = *pfaceid,} + .dpoi_type = hicn_face_ip_type, + .dpoi_proto = dpo_proto, + .dpoi_next_node = 0, + .dpoi_index = *pfaceid, + } }; + /* *INDENT-ON* */ return HICN_ERROR_NONE; } |