commit | ff659aaeb083d0a25727f0c0e37441df57873142 | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <ast@plumgrid.com> | Sat Apr 11 16:35:42 2015 -0700 |
committer | Alexei Starovoitov <ast@plumgrid.com> | Sat Apr 11 18:08:59 2015 -0700 |
tree | 26f101adcf0f70e03efcd70448d8acebd4c71699 | |
parent | 7f536f90f884307ba7934d1ddfda725c9171a575 [diff] |
bpf: add bpf_skb_copy_bytes() helper Since ingress and egress programs see different skb->data, add bpf_skb_copy_bytes() helper which is skb->mac_header relative as a substitute for LD_ABS/LD_IND instructions which are skb->data relative Fix all other helpers to be skb->mac_header relative Ensure that mac_header is set before calling into programs Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>