Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217282
b: refs/heads/master
c: 4232e86
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Oct 21, 2010
1 parent 457d4b2 commit cc3a1e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: a25e758c5fa1137e1bbc440194e55f7c59177145
refs/heads/master: 4232e8634ad82c5a53389e4016de15a8b15c09c3
10 changes: 7 additions & 3 deletions trunk/net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ static int xs_bind(struct sock_xprt *transport, struct socket *sock)
nloop++;
} while (err == -EADDRINUSE && nloop != 2);

if (myaddr.ss_family == PF_INET)
if (myaddr.ss_family == AF_INET)
dprintk("RPC: %s %pI4:%u: %s (%d)\n", __func__,
&((struct sockaddr_in *)&myaddr)->sin_addr,
port, err ? "failed" : "ok", err);
Expand Down Expand Up @@ -1594,10 +1594,14 @@ static inline void xs_reclassify_socket6(struct socket *sock)

static inline void xs_reclassify_socket(int family, struct socket *sock)
{
if (family == PF_INET)
switch (family) {
case AF_INET:
xs_reclassify_socket4(sock);
else
break;
case AF_INET6:
xs_reclassify_socket6(sock);
break;
}
}
#else
static inline void xs_reclassify_socket4(struct socket *sock)
Expand Down

0 comments on commit cc3a1e7

Please sign in to comment.