diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-07-02 02:13:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-03 02:22:51 -0700 |
commit | 0daf4349406074fc03e4889ba5e97e6fb5311bab (patch) | |
tree | 9e0dae4b6a5c254804136df0ee6827c3ba0f3b26 /tools | |
parent | a68491f895a937778bb25b0795830797239de31f (diff) |
bpf, net: add skb_mac_header_len helper
Add a small skb_mac_header_len() helper similarly as the
skb_network_header_len() we have and replace open coded
places in BPF's bpf_skb_change_proto() helper. Will also
be used in upcoming work.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions