Searched refs:bpf_skb_store_bytes (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/samples/bpf/ |
D | test_lwt_bpf.c | 135 ret = bpf_skb_store_bytes(skb, IP_DST_OFF, &new_ip, sizeof(new_ip), 0); in rewrite() 137 ret = bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in rewrite() 183 ret = bpf_skb_store_bytes(skb, 0, &ehdr, sizeof(ehdr), 0); in __do_push_ll_and_redirect() 214 bpf_skb_store_bytes(skb, 0, &f, sizeof(f), 0); in __fill_garbage() 215 bpf_skb_store_bytes(skb, 8, &f, sizeof(f), 0); in __fill_garbage() 216 bpf_skb_store_bytes(skb, 16, &f, sizeof(f), 0); in __fill_garbage() 217 bpf_skb_store_bytes(skb, 24, &f, sizeof(f), 0); in __fill_garbage() 218 bpf_skb_store_bytes(skb, 32, &f, sizeof(f), 0); in __fill_garbage() 219 bpf_skb_store_bytes(skb, 40, &f, sizeof(f), 0); in __fill_garbage() 220 bpf_skb_store_bytes(skb, 48, &f, sizeof(f), 0); in __fill_garbage() [all …]
|
D | tcbpf1_kern.c | 17 bpf_skb_store_bytes(skb, 0, mac, ETH_ALEN, 1); in set_dst_mac() 28 bpf_skb_store_bytes(skb, TOS_OFF, &new_tos, sizeof(new_tos), 0); in set_ip_tos() 42 bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in set_tcp_ip_src() 51 bpf_skb_store_bytes(skb, TCP_DPORT_OFF, &new_port, sizeof(new_port), 0); in set_tcp_dest_port()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | bpf_helpers.h | 184 static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) = variable
|
/Linux-v4.19/net/core/ |
D | filter.c | 1662 BPF_CALL_5(bpf_skb_store_bytes, struct sk_buff *, skb, u32, offset, in BPF_CALL_5() argument 1689 .func = bpf_skb_store_bytes, 4794 func == bpf_skb_store_bytes || in bpf_helper_changes_pkt_data()
|