diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-10-07 15:54:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2022-10-07 15:54:49 +0000 |
commit | 0b65acf82a4a1199220d4473d426a9da221e9629 (patch) | |
tree | 650f6fe445c636a923bf07b4b8d48c90c2b1a915 /lib/src/util/ip_address.c | |
parent | 03fb1444ad41d254469b4749382d1bf2b7cc48da (diff) | |
parent | a61398ad90acdfa4ea0ac03f3d2b9bcbfd7a6dd3 (diff) |
Merge "refactor(hicn-light): cleanup and optimizations to UDP socket face"
Diffstat (limited to 'lib/src/util/ip_address.c')
-rw-r--r-- | lib/src/util/ip_address.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/src/util/ip_address.c b/lib/src/util/ip_address.c index 3624a6fca..b50864c96 100644 --- a/lib/src/util/ip_address.c +++ b/lib/src/util/ip_address.c @@ -241,6 +241,12 @@ hicn_ip_address_empty (const hicn_ip_address_t *ip) return (memcmp (ip, &IP_ADDRESS_EMPTY, sizeof (hicn_ip_address_t)) == 0); } +void +hicn_ip_address_clear (hicn_ip_address_t *address) +{ + memset (address, 0, sizeof (hicn_ip_address_t)); +} + /* Prefix */ /* Parse IP Prefixes in presentation format (in bits, separated by a slash) */ |