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

/linux-4.1.27/samples/bpf/
H A Dtcbpf1_kern.c44 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) set_tcp_dest_port() macro
47 __u16 old_port = htons(load_half(skb, BPF_LL_OFF + TCP_DPORT_OFF)); set_tcp_dest_port()
50 bpf_skb_store_bytes(skb, TCP_DPORT_OFF, &new_port, sizeof(new_port), 0); set_tcp_dest_port()

Completed in 95 milliseconds