inet: consolidate INET_TW_MATCH
authorEric Dumazet <edumazet@google.com>
Wed, 2 Oct 2013 11:29:50 +0000 (04:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Oct 2013 19:33:35 +0000 (15:33 -0400)
commit5080546682bae3d32734b18e281091684f0ebbe4
treed83649361f75e4d053acfc1ac986dec5f273b4e4
parent7b4371ea48f03d3ac56df44f573e314f5b06939e
inet: consolidate INET_TW_MATCH

TCP listener refactoring, part 2 :

We can use a generic lookup, sockets being in whatever state, if
we are sure all relevant fields are at the same place in all socket
types (ESTABLISH, TIME_WAIT, SYN_RECV)

This patch removes these macros :

 inet_addrpair, inet_addrpair, tw_addrpair, tw_portpair

And adds :

 sk_portpair, sk_addrpair, sk_daddr, sk_rcv_saddr

Then, INET_TW_MATCH() is really the same than INET_MATCH()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/inet_hashtables.h
include/net/inet_sock.h
include/net/inet_timewait_sock.h
include/net/sock.h
net/ipv4/inet_connection_sock.c
net/ipv6/udp.c