Home
last modified time | relevance | path

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

/linux-6.6.21/net/core/
Dsock_diag.c79 struct sk_filter *filter; in sock_diag_put_filterinfo()
90 filter = rcu_dereference(sk->sk_filter); in sock_diag_put_filterinfo()
Dsock.c524 err = sk_filter(sk, skb); in sock_queue_rcv_skb_reason()
2190 struct sk_filter *filter; in __sk_destruct()
2195 filter = rcu_dereference_check(sk->sk_filter, in __sk_destruct()
2199 RCU_INIT_POINTER(sk->sk_filter, NULL); in __sk_destruct()
2298 struct sk_filter *filter; in sk_clone_lock()
2355 filter = rcu_dereference(sk->sk_filter); in sk_clone_lock()
2362 RCU_INIT_POINTER(newsk->sk_filter, filter); in sk_clone_lock()
2371 RCU_INIT_POINTER(newsk->sk_filter, NULL); in sk_clone_lock()
Dfilter.c129 struct sk_filter *filter; in sk_filter_trim_cap()
149 filter = rcu_dereference(sk->sk_filter); in sk_filter_trim_cap()
1178 static void __sk_filter_release(struct sk_filter *fp) in __sk_filter_release()
1190 struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); in sk_filter_release_rcu()
1201 static void sk_filter_release(struct sk_filter *fp) in sk_filter_release()
1207 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge()
1218 static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp) in __sk_filter_charge()
1232 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge()
1459 struct sk_filter *fp, *old_fp; in __sk_attach_prog()
1473 old_fp = rcu_dereference_protected(sk->sk_filter, in __sk_attach_prog()
[all …]
/linux-6.6.21/include/linux/
Dbpf_types.h5 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCKET_FILTER, sk_filter,
Dfilter.h572 struct sk_filter { struct
859 static inline int sk_filter(struct sock *sk, struct sk_buff *skb) in sk_filter() function
901 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp);
902 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
/linux-6.6.21/net/netlink/
Daf_netlink.c1370 if (sk_filter(sk, skb)) { in netlink_unicast()
1498 if (sk_filter(sk, p->skb2)) { in do_one_broadcast()
2274 if (sk_filter(sk, skb)) in netlink_dump()
2295 if (sk_filter(sk, skb)) in netlink_dump()
/linux-6.6.21/include/net/
Dsock.h248 struct sk_filter;
434 struct sk_filter __rcu *sk_filter; member
/linux-6.6.21/net/bluetooth/
Dl2cap_sock.c1492 err = sk_filter(sk, skb); in l2cap_sock_recv_cb()
1709 return sk_filter(sk, skb); in l2cap_sock_filter()
/linux-6.6.21/net/caif/
Dcaif_socket.c136 err = sk_filter(sk, skb); in caif_queue_rcv_skb()
/linux-6.6.21/net/iucv/
Daf_iucv.c1190 if (sk_filter(sk, skb)) { in iucv_process_message()
2006 if (sk_filter(sk, skb)) { in afiucv_hs_callback_rx()
/linux-6.6.21/drivers/net/
Dtun.c1102 if (tfile->socket.sk->sk_filter && in tun_net_xmit()
1103 sk_filter(tfile->socket.sk, skb)) { in tun_net_xmit()
3165 if (!tfile->socket.sk->sk_filter) in __tun_chr_ioctl()
/linux-6.6.21/net/sctp/
Dinput.c193 if (sk_filter(sk, skb)) in sctp_rcv()
/linux-6.6.21/net/ipv6/
Draw.c355 if ((raw6_sk(sk)->checksum || rcu_access_pointer(sk->sk_filter)) && in rawv6_rcv_skb()
Dudp.c747 if (rcu_access_pointer(sk->sk_filter) && in udpv6_queue_rcv_one_skb()
/linux-6.6.21/net/dccp/
Dipv6.c595 if (sk_filter(sk, skb)) in dccp_v6_do_rcv()
/linux-6.6.21/net/packet/
Daf_packet.c2083 struct sk_filter *filter; in run_filter()
2086 filter = rcu_dereference(sk->sk_filter); in run_filter()
/linux-6.6.21/net/ipv4/
Dudp.c2159 if (rcu_access_pointer(sk->sk_filter) && in udp_queue_rcv_one_skb()
/linux-6.6.21/net/unix/
Daf_unix.c1983 if (sk_filter(other, skb) < 0) { in unix_dgram_sendmsg()