diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-09-14 15:23:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2022-09-14 15:23:25 +0000 |
commit | f7567c8987065582d4ffde710ec54b7abdb619a2 (patch) | |
tree | e3a192ef3fa8f690cfec50e172c6a8e8fe82bea6 /lib/src | |
parent | 34e32b751d8060f93646d3fa542ddea73de901c4 (diff) | |
parent | ab38321508d886f0acd535f0f5f07a3d44e29591 (diff) |
Merge "feat(hicn-ping): allow usage of random prefixes/suffixes in hicn-ping"
Diffstat (limited to 'lib/src')
-rw-r--r-- | lib/src/name.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/src/name.c b/lib/src/name.c index 04c48cb4d..1c933d466 100644 --- a/lib/src/name.c +++ b/lib/src/name.c @@ -242,6 +242,12 @@ hicn_name_snprintf (char *s, size_t size, const hicn_name_t *name) } int +hicn_name_no_suffix_snprintf (char *s, size_t size, const hicn_name_t *name) +{ + return hicn_ip_address_snprintf (s, size, &name->prefix); +} + +int hicn_prefix_create_from_ip_prefix (const hicn_ip_prefix_t *hicn_ip_prefix, hicn_prefix_t *prefix) { |