OSDN Git Service

sock: Introduce named constants for sk_reuse
authorPavel Emelyanov <xemul@parallels.com>
Thu, 19 Apr 2012 03:39:36 +0000 (03:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:52:25 +0000 (15:52 -0400)
commit4a17fd5229c1b6066aa478f6b690f8293ce811a1
treef6acd00935d2d7a990befb4c77f57fdf39f46689
parent59c55bdde856c4000bbeb33ba212c3df6f1997a4
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>
13 files changed:
drivers/block/drbd/drbd_receiver.c
drivers/scsi/iscsi_tcp.c
drivers/staging/ramster/cluster/tcp.c
fs/ocfs2/cluster/tcp.c
include/net/sock.h
net/core/sock.c
net/econet/af_econet.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
net/ipv6/af_inet6.c
net/netfilter/ipvs/ip_vs_sync.c
net/rds/tcp_listen.c
net/sunrpc/svcsock.c