summaryrefslogtreecommitdiff
path: root/include/linux/inet.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-01-24 21:24:24 +0300
committerJens Axboe <axboe@kernel.dk>2018-03-26 17:53:43 +0300
commita470143fc83924251647143ff042bd2843e296cf (patch)
tree35ac2abc2bd810d95dcabb4797ce4eea5df9c2fb /include/linux/inet.h
parent57678e5a3d5145e5f08aa1d307ba219b27b1765a (diff)
downloadlinux-a470143fc83924251647143ff042bd2843e296cf.tar.xz
net/utils: Introduce inet_addr_is_any
Can be useful to check INET_ANY address for both ipv4/ipv6 addresses. Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Cc: "David S. Miller" <davem@davemloft.net> Cc: netdev@vger.kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/inet.h')
-rw-r--r--include/linux/inet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/inet.h b/include/linux/inet.h
index 636ebe87e6f8..97defc1139e9 100644
--- a/include/linux/inet.h
+++ b/include/linux/inet.h
@@ -59,5 +59,6 @@ extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char
extern int inet_pton_with_scope(struct net *net, unsigned short af,
const char *src, const char *port, struct sockaddr_storage *addr);
+extern bool inet_addr_is_any(struct sockaddr *addr);
#endif /* _LINUX_INET_H */