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>
This commit is contained in:
committed by
David S. Miller
parent
7b4371ea48
commit
5080546682
@ -300,6 +300,10 @@ struct sock {
|
||||
#define sk_dontcopy_begin __sk_common.skc_dontcopy_begin
|
||||
#define sk_dontcopy_end __sk_common.skc_dontcopy_end
|
||||
#define sk_hash __sk_common.skc_hash
|
||||
#define sk_portpair __sk_common.skc_portpair
|
||||
#define sk_addrpair __sk_common.skc_addrpair
|
||||
#define sk_daddr __sk_common.skc_daddr
|
||||
#define sk_rcv_saddr __sk_common.skc_rcv_saddr
|
||||
#define sk_family __sk_common.skc_family
|
||||
#define sk_state __sk_common.skc_state
|
||||
#define sk_reuse __sk_common.skc_reuse
|
||||
|
Reference in New Issue
Block a user