Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294412
b: refs/heads/master
c: 8b147f7
h: refs/heads/master
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and Trond Myklebust committed Feb 1, 2012
1 parent b2999d4 commit 60a1183
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3065f1e29aa2716c8903cfeff368df4b5314040a
refs/heads/master: 8b147f74738d9ab7e76085e5535e0fe8dc8b29f4
8 changes: 4 additions & 4 deletions trunk/net/sunrpc/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static int rpc_parse_scope_id(struct net *net, const char *buf,
return 0;
}

static size_t rpc_pton6(const char *buf, const size_t buflen,
static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen,
struct sockaddr *sap, const size_t salen)
{
struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
Expand All @@ -214,14 +214,14 @@ static size_t rpc_pton6(const char *buf, const size_t buflen,
if (in6_pton(buf, buflen, addr, IPV6_SCOPE_DELIMITER, &delim) == 0)
return 0;

if (!rpc_parse_scope_id(&init_net, buf, buflen, delim, sin6))
if (!rpc_parse_scope_id(net, buf, buflen, delim, sin6))
return 0;

sin6->sin6_family = AF_INET6;
return sizeof(struct sockaddr_in6);
}
#else
static size_t rpc_pton6(const char *buf, const size_t buflen,
static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen,
struct sockaddr *sap, const size_t salen)
{
return 0;
Expand Down Expand Up @@ -249,7 +249,7 @@ size_t rpc_pton(const char *buf, const size_t buflen,

for (i = 0; i < buflen; i++)
if (buf[i] == ':')
return rpc_pton6(buf, buflen, sap, salen);
return rpc_pton6(&init_net, buf, buflen, sap, salen);
return rpc_pton4(buf, buflen, sap, salen);
}
EXPORT_SYMBOL_GPL(rpc_pton);
Expand Down

0 comments on commit 60a1183

Please sign in to comment.