diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-03-02 17:17:32 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-03-04 15:45:07 +0100 |
commit | d9143dac3eb0536a95742b1354c0989270e17a8f (patch) | |
tree | a9018a7bee7f27bab8d2f181385a592861d1d348 /src/basic/in-addr-util.h | |
parent | util: use _cleanup_ attributes (diff) | |
download | systemd-d9143dac3eb0536a95742b1354c0989270e17a8f.tar.xz systemd-d9143dac3eb0536a95742b1354c0989270e17a8f.zip |
util: introduce in_addr_prefix_to_string()
Diffstat (limited to 'src/basic/in-addr-util.h')
-rw-r--r-- | src/basic/in-addr-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/in-addr-util.h b/src/basic/in-addr-util.h index 3517fe1ea3..a6a685b918 100644 --- a/src/basic/in-addr-util.h +++ b/src/basic/in-addr-util.h @@ -37,6 +37,7 @@ int in_addr_prefix_intersect(int family, const union in_addr_union *a, unsigned int in_addr_prefix_next(int family, union in_addr_union *u, unsigned prefixlen); int in_addr_random_prefix(int family, union in_addr_union *u, unsigned prefixlen_fixed_part, unsigned prefixlen); int in_addr_to_string(int family, const union in_addr_union *u, char **ret); +int in_addr_prefix_to_string(int family, const union in_addr_union *u, unsigned prefixlen, char **ret); int in_addr_ifindex_to_string(int family, const union in_addr_union *u, int ifindex, char **ret); int in_addr_from_string(int family, const char *s, union in_addr_union *ret); int in_addr_from_string_auto(const char *s, int *ret_family, union in_addr_union *ret); |