aboutsummaryrefslogtreecommitdiffstats
path: root/net/econet
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2012-04-18 23:39:36 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-21 15:52:25 -0400
commit4a17fd5229c1b6066aa478f6b690f8293ce811a1 (patch)
treef6acd00935d2d7a990befb4c77f57fdf39f46689 /net/econet
parent59c55bdde856c4000bbeb33ba212c3df6f1997a4 (diff)
sock: Introduce named constants for sk_reuse
Name them in a "backward compatible" manner, i.e. reuse or not are still 1 and 0 respectively. The reuse value of 2 means that the socket with it will forcibly reuse everyone else's port. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/econet')
-rw-r--r--net/econet/af_econet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index 71b5edcee401..fa14ca76b77b 100644
--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -617,7 +617,7 @@ static int econet_create(struct net *net, struct socket *sock, int protocol,
617 if (sk == NULL) 617 if (sk == NULL)
618 goto out; 618 goto out;
619 619
620 sk->sk_reuse = 1; 620 sk->sk_reuse = SK_CAN_REUSE;
621 sock->ops = &econet_ops; 621 sock->ops = &econet_ops;
622 sock_init_data(sock, sk); 622 sock_init_data(sock, sk);
623 623
@@ -1012,7 +1012,7 @@ static int __init aun_udp_initialise(void)
1012 return error; 1012 return error;
1013 } 1013 }
1014 1014
1015 udpsock->sk->sk_reuse = 1; 1015 udpsock->sk->sk_reuse = SK_CAN_REUSE;
1016 udpsock->sk->sk_allocation = GFP_ATOMIC; /* we're going to call it 1016 udpsock->sk->sk_allocation = GFP_ATOMIC; /* we're going to call it
1017 from interrupts */ 1017 from interrupts */
1018 1018