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

/linux-4.1.27/samples/bpf/
H A Dtcbpf1_kern.c31 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) macro
37 __u32 old_ip = _htonl(load_word(skb, BPF_LL_OFF + IP_SRC_OFF)); set_tcp_ip_src()
41 bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); set_tcp_ip_src()

Completed in 67 milliseconds