Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334029
b: refs/heads/master
c: 28194fc
h: refs/heads/master
i:
  334027: 937b30f
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Oct 12, 2012
1 parent 514c885 commit 181e982
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8437e7610c2d3e06f87f71fb82e10ed4b291812a
refs/heads/master: 28194fcdc150e4d5b418d01db3c29058f60ef32c
12 changes: 12 additions & 0 deletions trunk/net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 181e982

Please sign in to comment.