Skip to content

Commit 1181412

Browse files
Saurabhdavem330
authored andcommitted
net/ipv4: VTI support new module for ip_vti.
New VTI tunnel kernel module, Kconfig and Makefile changes. Signed-off-by: Saurabh Mohan <saurabh.mohan@vyatta.com> Reviewed-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent eb8637c commit 1181412

File tree

4 files changed

+982
-0
lines changed

4 files changed

+982
-0
lines changed

include/linux/if_tunnel.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,18 @@ enum {
8080

8181
#define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1)
8282

83+
/* VTI-mode i_flags */
84+
#define VTI_ISVTI 0x0001
85+
86+
enum {
87+
IFLA_VTI_UNSPEC,
88+
IFLA_VTI_LINK,
89+
IFLA_VTI_IKEY,
90+
IFLA_VTI_OKEY,
91+
IFLA_VTI_LOCAL,
92+
IFLA_VTI_REMOTE,
93+
__IFLA_VTI_MAX,
94+
};
95+
96+
#define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1)
8397
#endif /* _IF_TUNNEL_H_ */

net/ipv4/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,17 @@ config SYN_COOKIES
310310

311311
If unsure, say N.
312312

313+
config NET_IPVTI
314+
tristate "Virtual (secure) IP: tunneling"
315+
select INET_TUNNEL
316+
depends on INET_XFRM_MODE_TUNNEL
317+
---help---
318+
Tunneling means encapsulating data of one protocol type within
319+
another protocol and sending it over a channel that understands the
320+
encapsulating protocol. This can be used with xfrm mode tunnel to give
321+
the notion of a secure tunnel for IPSEC and then use routing protocol
322+
on top.
323+
313324
config INET_AH
314325
tristate "IP: AH transformation"
315326
select XFRM_ALGO

net/ipv4/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_IP_MROUTE) += ipmr.o
2020
obj-$(CONFIG_NET_IPIP) += ipip.o
2121
obj-$(CONFIG_NET_IPGRE_DEMUX) += gre.o
2222
obj-$(CONFIG_NET_IPGRE) += ip_gre.o
23+
obj-$(CONFIG_NET_IPVTI) += ip_vti.o
2324
obj-$(CONFIG_SYN_COOKIES) += syncookies.o
2425
obj-$(CONFIG_INET_AH) += ah4.o
2526
obj-$(CONFIG_INET_ESP) += esp4.o

0 commit comments

Comments
 (0)