summaryrefslogtreecommitdiffstats
path: root/include/linux/inet.h
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-06-25 23:54:55 +0900
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:18:01 -0700
commit1aaec67f9335a17856dfacdd3e5cc6f4c18faeec (patch)
tree87801e3cb66fc7103dc2c0008246b055fda39deb /include/linux/inet.h
parent75bff8f023e02b045a8f68f36fa7da98dca124b8 (diff)
downloadtalos-obmc-linux-1aaec67f9335a17856dfacdd3e5cc6f4c18faeec.tar.gz
talos-obmc-linux-1aaec67f9335a17856dfacdd3e5cc6f4c18faeec.zip
[NET]: Add common helper functions to convert IPv6/IPv4 address string to network address structure.
These helpers can be used in netfilter, cifs etc. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/linux/inet.h')
-rw-r--r--include/linux/inet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/inet.h b/include/linux/inet.h
index 6c5587af118d..b7c6da7d6d32 100644
--- a/include/linux/inet.h
+++ b/include/linux/inet.h
@@ -46,5 +46,7 @@
#include <linux/types.h>
extern __be32 in_aton(const char *str);
+extern int in4_pton(const char *src, int srclen, u8 *dst, char delim, const char **end);
+extern int in6_pton(const char *src, int srclen, u8 *dst, char delim, const char **end);
#endif
#endif /* _LINUX_INET_H */
OpenPOWER on IntegriCloud