Lines Matching refs:skb

26 static uint64_t (*bpf_get_socket_cookie)(struct __sk_buff* skb) = (void*)BPF_FUNC_get_socket_cookie;
28 static uint32_t (*bpf_get_socket_uid)(struct __sk_buff* skb) = (void*)BPF_FUNC_get_socket_uid;
30 static int (*bpf_skb_pull_data)(struct __sk_buff* skb, __u32 len) = (void*)BPF_FUNC_skb_pull_data;
32 static int (*bpf_skb_load_bytes)(struct __sk_buff* skb, int off, void* to,
35 static int (*bpf_skb_store_bytes)(struct __sk_buff* skb, __u32 offset, const void* from, __u32 len,
41 static int64_t (*bpf_csum_update)(struct __sk_buff* skb, __wsum csum) = (void*)BPF_FUNC_csum_update;
43 static int (*bpf_skb_change_proto)(struct __sk_buff* skb, __be16 proto,
45 static int (*bpf_l3_csum_replace)(struct __sk_buff* skb, __u32 offset, __u64 from, __u64 to,
47 static int (*bpf_l4_csum_replace)(struct __sk_buff* skb, __u32 offset, __u64 from, __u64 to,
53 static int (*bpf_skb_change_head)(struct __sk_buff* skb, __u32 head_room,
55 static int (*bpf_skb_adjust_room)(struct __sk_buff* skb, __s32 len_diff, __u32 mode,
64 static inline __always_inline __unused bool is_received_skb(struct __sk_buff* skb) { in is_received_skb() argument
65 return skb->pkt_type == PACKET_HOST || skb->pkt_type == PACKET_BROADCAST || in is_received_skb()
66 skb->pkt_type == PACKET_MULTICAST; in is_received_skb()
70 static inline __always_inline void try_make_readable(struct __sk_buff* skb, int len) { in try_make_readable() argument
71 if (len > skb->len) len = skb->len; in try_make_readable()
72 if (skb->data_end - skb->data < len) bpf_skb_pull_data(skb, len); in try_make_readable()