Searched refs:IP4_OFFSET (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/bpf_progs/ |
D | dscpPolicy.c | 37 #define IP4_OFFSET(field, header) ((header) + offsetof(struct iphdr, field)) macro 134 bpf_l3_csum_replace(skb, IP4_OFFSET(check, l2_header_size), htons(tos), htons(newTos), in DEFINE_BPF_MAP_GRW() 136 bpf_skb_store_bytes(skb, IP4_OFFSET(tos, l2_header_size), &newTos, sizeof(newTos), 0); in DEFINE_BPF_MAP_GRW() 214 bpf_l3_csum_replace(skb, IP4_OFFSET(check, l2_header_size), htons(tos), htons(new_tos), 2); in DEFINE_BPF_MAP_GRW() 215 bpf_skb_store_bytes(skb, IP4_OFFSET(tos, l2_header_size), &new_tos, sizeof(new_tos), 0); in DEFINE_BPF_MAP_GRW()
|
D | bpf_net_helpers.h | 33 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro
|
D | netd.c | 263 (void)bpf_skb_load_bytes_net(skb, IP4_OFFSET(protocol), &proto, sizeof(proto), kver); in do_packet_tracing() 307 (void)bpf_skb_load_bytes_net(skb, IP4_OFFSET(protocol), &proto, sizeof(proto), kver); in skip_owner_match()
|
D | offload@btf.c | 69 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro 79 #define ETH_IP4_OFFSET(field) (ETH_HLEN + IP4_OFFSET(field))
|
D | offload.c | 69 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro 79 #define ETH_IP4_OFFSET(field) (ETH_HLEN + IP4_OFFSET(field))
|