This module is responsible for the ife encapsulation protocol encode/decode logics. That module can: - ife_encode: encode skb and reserve space for the ife meta header - ife_decode: decode skb and extract the meta header size - ife_tlv_meta_encode - encodes one tlv entry into the reserved ife header space. - ife_tlv_meta_decode - decodes one tlv entry from the packet - ife_tlv_meta_next - advance to the next tlv
Showing the changes to include/uapi/linux (2 of 9 files). Show all
Unified · Split
| @@ -195,6 +195,7 @@ header-y += if_tun.h · 194 unmodified lines | ||
| 195 | 195 | header-y += if_tunnel.h |
| 196 | 196 | header-y += if_vlan.h |
| 197 | 197 | header-y += if_x25.h |
| 198 | +header-y += ife.h | |
| 198 | 199 | header-y += igmp.h |
| 199 | 200 | header-y += ila.h |
| 200 | 201 | header-y += in6.h |
| @@ -0,0 +1,18 @@ | ||
| 1 | +#ifndef __UAPI_IFE_H | |
| 2 | +#define __UAPI_IFE_H | |
| 3 | + | |
| 4 | +#define IFE_METAHDRLEN 2 | |
| 5 | + | |
| 6 | +enum { | |
| 7 | + IFE_META_SKBMARK = 1, | |
| 8 | + IFE_META_HASHID, | |
| 9 | + IFE_META_PRIO, | |
| 10 | + IFE_META_QMAP, | |
| 11 | + IFE_META_TCINDEX, | |
| 12 | + __IFE_META_MAX | |
| 13 | +}; | |
| 14 | + | |
| 15 | +/*Can be overridden at runtime by module option*/ | |
| 16 | +#define IFE_META_MAX (__IFE_META_MAX - 1) | |
| 17 | + | |
| 18 | +#endif | |