Home
last modified time | relevance | path

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

/Linux-v5.4/net/core/
Dsock_diag.c74 struct sk_filter *filter; in sock_diag_put_filterinfo()
85 filter = rcu_dereference(sk->sk_filter); in sock_diag_put_filterinfo()
Dsock.c490 err = sk_filter(sk, skb); in sock_queue_rcv_skb()
1694 struct sk_filter *filter; in __sk_destruct()
1699 filter = rcu_dereference_check(sk->sk_filter, in __sk_destruct()
1703 RCU_INIT_POINTER(sk->sk_filter, NULL); in __sk_destruct()
1802 struct sk_filter *filter; in sk_clone_lock()
1839 filter = rcu_dereference(sk->sk_filter); in sk_clone_lock()
1846 RCU_INIT_POINTER(newsk->sk_filter, filter); in sk_clone_lock()
1855 RCU_INIT_POINTER(newsk->sk_filter, NULL); in sk_clone_lock()
Dfilter.c93 struct sk_filter *filter; in sk_filter_trim_cap()
113 filter = rcu_dereference(sk->sk_filter); in sk_filter_trim_cap()
1153 static void __sk_filter_release(struct sk_filter *fp) in __sk_filter_release()
1165 struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); in sk_filter_release_rcu()
1176 static void sk_filter_release(struct sk_filter *fp) in sk_filter_release()
1182 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge()
1193 static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp) in __sk_filter_charge()
1206 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge()
1434 struct sk_filter *fp, *old_fp; in __sk_attach_prog()
1448 old_fp = rcu_dereference_protected(sk->sk_filter, in __sk_attach_prog()
[all …]
/Linux-v5.4/include/linux/
Dbpf_types.h5 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCKET_FILTER, sk_filter)
Dfilter.h548 struct sk_filter { struct
794 static inline int sk_filter(struct sock *sk, struct sk_buff *skb) in sk_filter() function
839 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp);
840 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
/Linux-v5.4/net/netlink/
Daf_netlink.c1330 if (sk_filter(sk, skb)) { in netlink_unicast()
1458 if (sk_filter(sk, p->skb2)) { in do_one_broadcast()
2252 if (sk_filter(sk, skb)) in netlink_dump()
2276 if (sk_filter(sk, skb)) in netlink_dump()
/Linux-v5.4/net/decnet/
Ddn_nsp_in.c591 err = sk_filter(sk, skb); in dn_queue_skb()
/Linux-v5.4/include/net/
Dsock.h394 struct sk_filter __rcu *sk_filter; member
/Linux-v5.4/net/sctp/
Dinput.c206 if (sk_filter(sk, skb)) in sctp_rcv()
/Linux-v5.4/net/caif/
Dcaif_socket.c141 err = sk_filter(sk, skb); in caif_queue_rcv_skb()
/Linux-v5.4/drivers/net/
Dtun.c1089 if (tfile->socket.sk->sk_filter && in tun_net_xmit()
1090 sk_filter(tfile->socket.sk, skb)) in tun_net_xmit()
3112 if (!tfile->socket.sk->sk_filter) in __tun_chr_ioctl()
/Linux-v5.4/net/dccp/
Dipv6.c581 if (sk_filter(sk, skb)) in dccp_v6_do_rcv()
/Linux-v5.4/net/iucv/
Daf_iucv.c1348 if (sk_filter(sk, skb)) { in iucv_process_message()
2146 if (sk_filter(sk, skb)) { in afiucv_hs_callback_rx()
/Linux-v5.4/net/ipv6/
Draw.c392 if ((raw6_sk(sk)->checksum || rcu_access_pointer(sk->sk_filter)) && in rawv6_rcv_skb()
Dudp.c661 if (rcu_access_pointer(sk->sk_filter) && in udpv6_queue_rcv_one_skb()
/Linux-v5.4/net/bluetooth/
Dl2cap_sock.c1282 err = sk_filter(sk, skb); in l2cap_sock_recv_cb()
Dl2cap_core.c6702 chan->mode == L2CAP_MODE_STREAMING) && sk_filter(chan->data, skb)) in l2cap_data_rcv()
/Linux-v5.4/net/packet/
Daf_packet.c1999 struct sk_filter *filter; in run_filter()
2002 filter = rcu_dereference(sk->sk_filter); in run_filter()
/Linux-v5.4/net/unix/
Daf_unix.c1656 if (sk_filter(other, skb) < 0) { in unix_dgram_sendmsg()
/Linux-v5.4/net/ipv4/
Dudp.c2075 if (rcu_access_pointer(sk->sk_filter) && in udp_queue_rcv_one_skb()