summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/utils.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-07-20 13:20:35 +0200
committerMauro Sardara <msardara@cisco.com>2021-07-20 13:29:03 +0200
commitb4353c871463c06ed47db1ed9c3106f9dd201838 (patch)
treedd8e670e597a4e10bf214adf926ade5f135ce52c /hicn-plugin/src/utils.h
parentf62e74657d802555db61345eaa46362b09b12e88 (diff)
HICN-716 Upgrade to VPP 21.06
Also: - Format hicn-plugin code Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I0f4626fdeaf0fc5ae1f43904ca006b092e3e9d5f
Diffstat (limited to 'hicn-plugin/src/utils.h')
-rw-r--r--hicn-plugin/src/utils.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/hicn-plugin/src/utils.h b/hicn-plugin/src/utils.h
index 689942ab6..847f2f388 100644
--- a/hicn-plugin/src/utils.h
+++ b/hicn-plugin/src/utils.h
@@ -30,7 +30,7 @@
* @param name hicn name to print
*/
always_inline void
-hicn_print_name6 (hicn_name_t * name)
+hicn_print_name6 (hicn_name_t *name)
{
u8 *s0;
s0 = format (0, "Source addr %U, seq_number %u", format_ip6_address,
@@ -46,14 +46,13 @@ hicn_print_name6 (hicn_name_t * name)
* @param hicn0 hICN header to print
*/
always_inline void
-hicn_print6 (hicn_header_t * hicn0)
+hicn_print6 (hicn_header_t *hicn0)
{
vlib_main_t *vm = vlib_get_main ();
u8 *s0;
s0 = format (0, "Source addr %U:%u, dest addr %U:%u", format_ip6_address,
- &(hicn0->v6.ip.saddr),
- clib_net_to_host_u32 (hicn0->v6.tcp.seq), format_ip6_address,
- &(hicn0->v6.ip.daddr),
+ &(hicn0->v6.ip.saddr), clib_net_to_host_u32 (hicn0->v6.tcp.seq),
+ format_ip6_address, &(hicn0->v6.ip.daddr),
clib_net_to_host_u32 (hicn0->v6.tcp.seq));
vlib_cli_output (vm, "%s\n", s0);
@@ -65,13 +64,12 @@ hicn_print6 (hicn_header_t * hicn0)
* @param hicn0 hICN header to print
*/
always_inline void
-hicn_print4 (hicn_header_t * hicn0)
+hicn_print4 (hicn_header_t *hicn0)
{
u8 *s0;
s0 = format (0, "Source addr %U:%u, dest addr %U:%u", format_ip4_address,
- &(hicn0->v4.ip.saddr),
- clib_net_to_host_u32 (hicn0->v4.tcp.seq), format_ip4_address,
- &(hicn0->v4.ip.daddr),
+ &(hicn0->v4.ip.saddr), clib_net_to_host_u32 (hicn0->v4.tcp.seq),
+ format_ip4_address, &(hicn0->v4.ip.daddr),
clib_net_to_host_u32 (hicn0->v4.tcp.seq));
printf ("%s\n", s0);
@@ -79,7 +77,6 @@ hicn_print4 (hicn_header_t * hicn0)
#endif /* // __HICN_UTILS_H__ */
-
/*
* fd.io coding-style-patch-verification: ON
*