diff options
author | Susant Sahani <susant@redhat.com> | 2017-02-23 18:58:12 +0100 |
---|---|---|
committer | Susant Sahani <susant@redhat.com> | 2017-02-24 11:12:59 +0100 |
commit | 85257f48bedfec3c0fa6907c87caceee18ed1c94 (patch) | |
tree | 262a8f7dc46c8c7e79fad7cab3310969786fbcd5 /src/basic/in-addr-util.h | |
parent | Merge pull request #4670 from htejun/systemd-controller-on-unified-v2 (diff) | |
download | systemd-85257f48bedfec3c0fa6907c87caceee18ed1c94.tar.xz systemd-85257f48bedfec3c0fa6907c87caceee18ed1c94.zip |
socket-util: introduce in_addr_is_multicast
This patch add support to test whether a internet
address is multicast or not.
Diffstat (limited to 'src/basic/in-addr-util.h')
-rw-r--r-- | src/basic/in-addr-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/in-addr-util.h b/src/basic/in-addr-util.h index 64a812c322..51a5aa67e4 100644 --- a/src/basic/in-addr-util.h +++ b/src/basic/in-addr-util.h @@ -39,6 +39,8 @@ struct in_addr_data { bool in4_addr_is_null(const struct in_addr *a); int in_addr_is_null(int family, const union in_addr_union *u); +int in_addr_is_multicast(int family, const union in_addr_union *u); + bool in4_addr_is_link_local(const struct in_addr *a); int in_addr_is_link_local(int family, const union in_addr_union *u); |