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

/linux-4.1.27/samples/bpf/
H A Dtcbpf1_kern.c22 static inline void set_ip_tos(struct __sk_buff *skb, __u8 new_tos) set_ip_tos() argument
26 bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); set_ip_tos()
27 bpf_skb_store_bytes(skb, TOS_OFF, &new_tos, sizeof(new_tos), 0); set_ip_tos()

Completed in 79 milliseconds