summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki2006-06-25 16:54:55 +0200
committerDavid S. Miller2006-09-23 00:18:01 +0200
commit1aaec67f9335a17856dfacdd3e5cc6f4c18faeec (patch)
tree87801e3cb66fc7103dc2c0008246b055fda39deb /include/linux
parent[IPV6] ROUTE: Routing by FWMARK. (diff)
downloadkernel-qcow2-linux-1aaec67f9335a17856dfacdd3e5cc6f4c18faeec.tar.gz
kernel-qcow2-linux-1aaec67f9335a17856dfacdd3e5cc6f4c18faeec.tar.xz
kernel-qcow2-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')
-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 */