Searched refs:sk_filter (Results 1 – 18 of 18) sorted by relevance
/Linux-v6.1/net/core/ |
D | sock_diag.c | 76 struct sk_filter *filter; in sock_diag_put_filterinfo() 87 filter = rcu_dereference(sk->sk_filter); in sock_diag_put_filterinfo()
|
D | sock.c | 517 err = sk_filter(sk, skb); in sock_queue_rcv_skb_reason() 2119 struct sk_filter *filter; in __sk_destruct() 2124 filter = rcu_dereference_check(sk->sk_filter, in __sk_destruct() 2128 RCU_INIT_POINTER(sk->sk_filter, NULL); in __sk_destruct() 2224 struct sk_filter *filter; in sk_clone_lock() 2273 filter = rcu_dereference(sk->sk_filter); in sk_clone_lock() 2280 RCU_INIT_POINTER(newsk->sk_filter, filter); in sk_clone_lock() 2289 RCU_INIT_POINTER(newsk->sk_filter, NULL); in sk_clone_lock()
|
D | filter.c | 126 struct sk_filter *filter; in sk_filter_trim_cap() 146 filter = rcu_dereference(sk->sk_filter); in sk_filter_trim_cap() 1175 static void __sk_filter_release(struct sk_filter *fp) in __sk_filter_release() 1187 struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); in sk_filter_release_rcu() 1198 static void sk_filter_release(struct sk_filter *fp) in sk_filter_release() 1204 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge() 1215 static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp) in __sk_filter_charge() 1229 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge() 1456 struct sk_filter *fp, *old_fp; in __sk_attach_prog() 1470 old_fp = rcu_dereference_protected(sk->sk_filter, in __sk_attach_prog() [all …]
|
/Linux-v6.1/include/linux/ |
D | bpf_types.h | 5 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCKET_FILTER, sk_filter,
|
D | filter.h | 562 struct sk_filter { struct 868 static inline int sk_filter(struct sock *sk, struct sk_buff *skb) in sk_filter() function 911 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp); 912 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
|
/Linux-v6.1/net/netlink/ |
D | af_netlink.c | 1347 if (sk_filter(sk, skb)) { in netlink_unicast() 1468 if (sk_filter(sk, p->skb2)) { in do_one_broadcast() 2283 if (sk_filter(sk, skb)) in netlink_dump() 2304 if (sk_filter(sk, skb)) in netlink_dump()
|
/Linux-v6.1/include/net/ |
D | sock.h | 248 struct sk_filter; 429 struct sk_filter __rcu *sk_filter; member
|
/Linux-v6.1/net/bluetooth/ |
D | l2cap_sock.c | 1509 err = sk_filter(sk, skb); in l2cap_sock_recv_cb() 1718 return sk_filter(sk, skb); in l2cap_sock_filter()
|
/Linux-v6.1/net/caif/ |
D | caif_socket.c | 136 err = sk_filter(sk, skb); in caif_queue_rcv_skb()
|
/Linux-v6.1/net/iucv/ |
D | af_iucv.c | 1190 if (sk_filter(sk, skb)) { in iucv_process_message() 2006 if (sk_filter(sk, skb)) { in afiucv_hs_callback_rx()
|
/Linux-v6.1/drivers/net/ |
D | tun.c | 1101 if (tfile->socket.sk->sk_filter && in tun_net_xmit() 1102 sk_filter(tfile->socket.sk, skb)) { in tun_net_xmit() 3130 if (!tfile->socket.sk->sk_filter) in __tun_chr_ioctl()
|
/Linux-v6.1/net/sctp/ |
D | input.c | 208 if (sk_filter(sk, skb)) in sctp_rcv()
|
/Linux-v6.1/net/dccp/ |
D | ipv6.c | 596 if (sk_filter(sk, skb)) in dccp_v6_do_rcv()
|
/Linux-v6.1/net/ipv6/ |
D | raw.c | 358 if ((raw6_sk(sk)->checksum || rcu_access_pointer(sk->sk_filter)) && in rawv6_rcv_skb()
|
D | udp.c | 758 if (rcu_access_pointer(sk->sk_filter) && in udpv6_queue_rcv_one_skb()
|
/Linux-v6.1/net/packet/ |
D | af_packet.c | 2082 struct sk_filter *filter; in run_filter() 2085 filter = rcu_dereference(sk->sk_filter); in run_filter()
|
/Linux-v6.1/net/ipv4/ |
D | udp.c | 2204 if (rcu_access_pointer(sk->sk_filter) && in udp_queue_rcv_one_skb()
|
/Linux-v6.1/net/unix/ |
D | af_unix.c | 1977 if (sk_filter(other, skb) < 0) { in unix_dgram_sendmsg()
|