Searched refs:TOS_OFF (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/samples/bpf/
H A Dtcbpf1_kern.c20 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) macro
24 __u8 old_tos = load_byte(skb, BPF_LL_OFF + TOS_OFF); set_ip_tos()
27 bpf_skb_store_bytes(skb, TOS_OFF, &new_tos, sizeof(new_tos), 0); set_ip_tos()

Completed in 57 milliseconds