diff options
author | Luca Muscariello <muscariello@ieee.org> | 2020-05-13 21:25:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-05-13 21:25:17 +0000 |
commit | 76c0e9a9ac88ffc3df287cfb936d23cccad79a6e (patch) | |
tree | 9d04a10a857936e7e2884799a456eea718f4cdcf /hicn-plugin/src/utils.h | |
parent | 7415aeaa213e63caa0bc3e625219996d9c2dc93a (diff) | |
parent | 485474ec0bcd5fd73743a040cbad326a458e6390 (diff) |
Merge "[HICN-606] Added doxygen documentation"
Diffstat (limited to 'hicn-plugin/src/utils.h')
-rw-r--r-- | hicn-plugin/src/utils.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hicn-plugin/src/utils.h b/hicn-plugin/src/utils.h index ecad47e9b..689942ab6 100644 --- a/hicn-plugin/src/utils.h +++ b/hicn-plugin/src/utils.h @@ -18,6 +18,17 @@ #include "hicn.h" +/** + * @file + * + * Helpers to print hicn headers + */ + +/** + * @Brief Print the hicn name + * + * @param name hicn name to print + */ always_inline void hicn_print_name6 (hicn_name_t * name) { @@ -29,6 +40,11 @@ hicn_print_name6 (hicn_name_t * name) printf ("%s\n", s0); } +/** + * @Brief Print the ipv6 hicn header (src and dst address and port) + * + * @param hicn0 hICN header to print + */ always_inline void hicn_print6 (hicn_header_t * hicn0) { @@ -43,6 +59,11 @@ hicn_print6 (hicn_header_t * hicn0) vlib_cli_output (vm, "%s\n", s0); } +/** + * @Brief Print the ipv4 hicn header (src and dst address and port) + * + * @param hicn0 hICN header to print + */ always_inline void hicn_print4 (hicn_header_t * hicn0) { |