]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/net/netfilter/nf_socket.h
1 /* SPDX-License-Identifier: GPL-2.0 */
10 static inline bool nf_sk_is_transparent(struct sock
*sk
)
12 switch (sk
->sk_state
) {
14 return inet_twsk(sk
)->tw_transparent
;
15 case TCP_NEW_SYN_RECV
:
16 return inet_rsk(inet_reqsk(sk
))->no_srccheck
;
18 return inet_sk(sk
)->transparent
;
22 struct sock
*nf_sk_lookup_slow_v4(struct net
*net
, const struct sk_buff
*skb
,
23 const struct net_device
*indev
);
25 struct sock
*nf_sk_lookup_slow_v6(struct net
*net
, const struct sk_buff
*skb
,
26 const struct net_device
*indev
);