Home
last modified time | relevance | path

Searched refs:IP4_OFFSET (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/bpf_progs/
DdscpPolicy.c37 #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()
Dbpf_net_helpers.h33 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro
Dnetd.c263 (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()
Doffload@btf.c69 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro
79 #define ETH_IP4_OFFSET(field) (ETH_HLEN + IP4_OFFSET(field))
Doffload.c69 #define IP4_OFFSET(field) offsetof(struct iphdr, field) macro
79 #define ETH_IP4_OFFSET(field) (ETH_HLEN + IP4_OFFSET(field))