From 181e98299421af3385f58b6017644f092d3f08fb Mon Sep 17 00:00:00 2001 From: Amerigo Wang Date: Thu, 11 Oct 2012 21:06:16 +0000 Subject: [PATCH] --- yaml --- r: 334029 b: refs/heads/master c: 28194fcdc150e4d5b418d01db3c29058f60ef32c h: refs/heads/master i: 334027: 937b30fb8868938dfbb6f54c3b1f5a46d225c120 v: v3 --- [refs] | 2 +- trunk/net/core/utils.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8a38fbc86416..41953e3839f7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8437e7610c2d3e06f87f71fb82e10ed4b291812a +refs/heads/master: 28194fcdc150e4d5b418d01db3c29058f60ef32c diff --git a/trunk/net/core/utils.c b/trunk/net/core/utils.c index f5613d569c23..30f3879faecc 100644 --- a/trunk/net/core/utils.c +++ b/trunk/net/core/utils.c @@ -161,6 +161,18 @@ int in4_pton(const char *src, int srclen, } EXPORT_SYMBOL(in4_pton); +/** + * in6_pton - convert an IPv6 address from literal to binary representation + * @src: the start of the IPv6 address string + * @srclen: the length of the string, -1 means strlen(src) + * @dst: the binary (u8[16] array) representation of the IPv6 address + * @delim: the delimiter of the IPv6 address in @src, -1 means no delimiter + * @end: A pointer to the end of the parsed string will be placed here + * + * Return one on success, return zero when any error occurs + * and @end will point to the end of the parsed string. + * + */ int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end)