diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/filter.h | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 5c1cee11f777..a9ebdf5701e8 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -177,7 +177,7 @@ enum bpf_func_id { | |||
| 177 | /** | 177 | /** |
| 178 | * skb_store_bytes(skb, offset, from, len, flags) - store bytes into packet | 178 | * skb_store_bytes(skb, offset, from, len, flags) - store bytes into packet |
| 179 | * @skb: pointer to skb | 179 | * @skb: pointer to skb |
| 180 | * @offset: offset within packet from skb->data | 180 | * @offset: offset within packet from skb->mac_header |
| 181 | * @from: pointer where to copy bytes from | 181 | * @from: pointer where to copy bytes from |
| 182 | * @len: number of bytes to store into packet | 182 | * @len: number of bytes to store into packet |
| 183 | * @flags: bit 0 - if true, recompute skb->csum | 183 | * @flags: bit 0 - if true, recompute skb->csum |
diff --git a/include/uapi/linux/filter.h b/include/uapi/linux/filter.h index 34c7936ca114..c97340e43dd6 100644 --- a/include/uapi/linux/filter.h +++ b/include/uapi/linux/filter.h | |||
| @@ -79,8 +79,11 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ | |||
| 79 | #define SKF_AD_RANDOM 56 | 79 | #define SKF_AD_RANDOM 56 |
| 80 | #define SKF_AD_VLAN_TPID 60 | 80 | #define SKF_AD_VLAN_TPID 60 |
| 81 | #define SKF_AD_MAX 64 | 81 | #define SKF_AD_MAX 64 |
| 82 | #define SKF_NET_OFF (-0x100000) | ||
| 83 | #define SKF_LL_OFF (-0x200000) | ||
| 84 | 82 | ||
| 83 | #define SKF_NET_OFF (-0x100000) | ||
| 84 | #define SKF_LL_OFF (-0x200000) | ||
| 85 | |||
| 86 | #define BPF_NET_OFF SKF_NET_OFF | ||
| 87 | #define BPF_LL_OFF SKF_LL_OFF | ||
| 85 | 88 | ||
| 86 | #endif /* _UAPI__LINUX_FILTER_H__ */ | 89 | #endif /* _UAPI__LINUX_FILTER_H__ */ |
