History

net: Introduce ife encapsulation module

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

Yotam Gigi committed 9 years ago

Commit 1ce84601 parent 1d5e7c89 files · +242 −0Browse files

Showing the changes to include/uapi/linux (2 of 9 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/Kbuild +1 −0
  2. include/uapi/linux/ife.h +18 −0
include/uapi/linux/Kbuild+1−0
@@ -195,6 +195,7 @@ header-y += if_tun.h · 194 unmodified lines
195195 header-y += if_tunnel.h
196196 header-y += if_vlan.h
197197 header-y += if_x25.h
198+header-y += ife.h
198199 header-y += igmp.h
199200 header-y += ila.h
200201 header-y += in6.h
include/uapi/linux/ife.h+18−0
@@ -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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t