History

fou: Support for foo-over-udp RX path

This patch provides a receive path for foo-over-udp. This allows direct encapsulation of IP protocols over UDP. The bound destination port is used to map to an IP protocol, and the XFRM framework (udp_encap_rcv) is used to receive encapsulated packets. Upon reception, the encapsulation header is logically removed (pointer to transport header is advanced) and the packet is reinjected into the receive path with the IP protocol indicated by the mapping. Netlink is used to configure FOU ports. The configuration information includes the port number to bind to and the IP protocol corresponding to that port. This should support GRE/UDP (http://tools.ietf.org/html/draft-yong-tsvwg-gre-in-udp-encap-02), as will as the other IP tunneling protocols (IPIP, SIT).

Tom Herbert committed 12 years ago

Commit 23461551 parent ce3e0284 files · +322 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/fou.h+32−0
@@ -0,0 +1,32 @@
1+/* fou.h - FOU Interface */
2+
3+#ifndef _UAPI_LINUX_FOU_H
4+#define _UAPI_LINUX_FOU_H
5+
6+/* NETLINK_GENERIC related info
7+ */
8+#define FOU_GENL_NAME "fou"
9+#define FOU_GENL_VERSION 0x1
10+
11+enum {
12+ FOU_ATTR_UNSPEC,
13+ FOU_ATTR_PORT, /* u16 */
14+ FOU_ATTR_AF, /* u8 */
15+ FOU_ATTR_IPPROTO, /* u8 */
16+
17+ __FOU_ATTR_MAX,
18+};
19+
20+#define FOU_ATTR_MAX (__FOU_ATTR_MAX - 1)
21+
22+enum {
23+ FOU_CMD_UNSPEC,
24+ FOU_CMD_ADD,
25+ FOU_CMD_DEL,
26+
27+ __FOU_CMD_MAX,
28+};
29+
30+#define FOU_CMD_MAX (__FOU_CMD_MAX - 1)
31+
32+#endif /* _UAPI_LINUX_FOU_H */

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