Home
last modified time | relevance | path

Searched refs:sk_filter (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/net/core/
Dsock_diag.c75 struct sk_filter *filter; in sock_diag_put_filterinfo()
86 filter = rcu_dereference(sk->sk_filter); in sock_diag_put_filterinfo()
Dsock.c477 err = sk_filter(sk, skb); in sock_queue_rcv_skb()
1781 struct sk_filter *filter; in __sk_destruct()
1786 filter = rcu_dereference_check(sk->sk_filter, in __sk_destruct()
1790 RCU_INIT_POINTER(sk->sk_filter, NULL); in __sk_destruct()
1886 struct sk_filter *filter; in sk_clone_lock()
1934 filter = rcu_dereference(sk->sk_filter); in sk_clone_lock()
1941 RCU_INIT_POINTER(newsk->sk_filter, filter); in sk_clone_lock()
1950 RCU_INIT_POINTER(newsk->sk_filter, NULL); in sk_clone_lock()
Dfilter.c123 struct sk_filter *filter; in sk_filter_trim_cap()
143 filter = rcu_dereference(sk->sk_filter); in sk_filter_trim_cap()
1172 static void __sk_filter_release(struct sk_filter *fp) in __sk_filter_release()
1184 struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); in sk_filter_release_rcu()
1195 static void sk_filter_release(struct sk_filter *fp) in sk_filter_release()
1201 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge()
1212 static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp) in __sk_filter_charge()
1226 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge()
1454 struct sk_filter *fp, *old_fp; in __sk_attach_prog()
1468 old_fp = rcu_dereference_protected(sk->sk_filter, in __sk_attach_prog()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbpf_types.h5 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCKET_FILTER, sk_filter,
Dfilter.h567 struct sk_filter { struct
853 static inline int sk_filter(struct sock *sk, struct sk_buff *skb) in sk_filter() function
898 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp);
899 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
/kernel/linux/linux-5.10/net/netlink/
Daf_netlink.c1341 if (sk_filter(sk, skb)) { in netlink_unicast()
1469 if (sk_filter(sk, p->skb2)) { in do_one_broadcast()
2297 if (sk_filter(sk, skb)) in netlink_dump()
2318 if (sk_filter(sk, skb)) in netlink_dump()
/kernel/linux/linux-5.10/net/decnet/
Ddn_nsp_in.c591 err = sk_filter(sk, skb); in dn_queue_skb()
/kernel/linux/linux-5.10/net/bluetooth/
Dl2cap_sock.c1508 err = sk_filter(sk, skb); in l2cap_sock_recv_cb()
1717 return sk_filter(sk, skb); in l2cap_sock_filter()
/kernel/linux/linux-5.10/net/sctp/
Dinput.c208 if (sk_filter(sk, skb)) in sctp_rcv()
/kernel/linux/linux-5.10/net/caif/
Dcaif_socket.c141 err = sk_filter(sk, skb); in caif_queue_rcv_skb()
/kernel/linux/linux-5.10/include/net/
Dsock.h422 struct sk_filter __rcu *sk_filter; member
/kernel/linux/linux-5.10/net/dccp/
Dipv6.c586 if (sk_filter(sk, skb)) in dccp_v6_do_rcv()
/kernel/linux/linux-5.10/net/iucv/
Daf_iucv.c1208 if (sk_filter(sk, skb)) { in iucv_process_message()
2007 if (sk_filter(sk, skb)) { in afiucv_hs_callback_rx()
/kernel/linux/linux-5.10/drivers/net/
Dtun.c1108 if (tfile->socket.sk->sk_filter && in tun_net_xmit()
1109 sk_filter(tfile->socket.sk, skb)) in tun_net_xmit()
3147 if (!tfile->socket.sk->sk_filter) in __tun_chr_ioctl()
/kernel/linux/linux-5.10/net/ipv6/
Draw.c392 if ((raw6_sk(sk)->checksum || rcu_access_pointer(sk->sk_filter)) && in rawv6_rcv_skb()
Dudp.c717 if (rcu_access_pointer(sk->sk_filter) && in udpv6_queue_rcv_one_skb()
/kernel/linux/linux-5.10/net/packet/
Daf_packet.c2043 struct sk_filter *filter; in run_filter()
2046 filter = rcu_dereference(sk->sk_filter); in run_filter()
/kernel/linux/linux-5.10/net/unix/
Daf_unix.c1771 if (sk_filter(other, skb) < 0) { in unix_dgram_sendmsg()
/kernel/linux/linux-5.10/net/ipv4/
Dudp.c2147 if (rcu_access_pointer(sk->sk_filter) && in udp_queue_rcv_one_skb()