summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_gre/Makefile
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-11-07 19:13:19 +0000
committerae <ae@FreeBSD.org>2014-11-07 19:13:19 +0000
commit7144dc8bc249ce3b8a458f377cd5f00ce98d91b9 (patch)
tree63c3d4ed6b0c4afb2640b0e3d10ed1b045f2d63f /sys/modules/if_gre/Makefile
parent6306f795601112ca48fd1c75441b82ff98ca8b57 (diff)
downloadFreeBSD-src-7144dc8bc249ce3b8a458f377cd5f00ce98d91b9.zip
FreeBSD-src-7144dc8bc249ce3b8a458f377cd5f00ce98d91b9.tar.gz
Overhaul if_gre(4).
Split it into two modules: if_gre(4) for GRE encapsulation and if_me(4) for minimal encapsulation within IP. gre(4) changes: * convert to if_transmit; * rework locking: protect access to softc with rmlock, protect from concurrent ioctls with sx lock; * correct interface accounting for outgoing datagramms (count only payload size); * implement generic support for using IPv6 as delivery header; * make implementation conform to the RFC 2784 and partially to RFC 2890; * add support for GRE checksums - calculate for outgoing datagramms and check for inconming datagramms; * add support for sending sequence number in GRE header; * remove support of cached routes. This fixes problem, when gre(4) doesn't work at system startup. But this also removes support for having tunnels with the same addresses for inner and outer header. * deprecate support for various GREXXX ioctls, that doesn't used in FreeBSD. Use our standard ioctls for tunnels. me(4): * implementation conform to RFC 2004; * use if_transmit; * use the same locking model as gre(4); PR: 164475 Differential Revision: D1023 No objections from: net@ Relnotes: yes Sponsored by: Yandex LLC
Diffstat (limited to 'sys/modules/if_gre/Makefile')
-rw-r--r--sys/modules/if_gre/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile
index 9c618d3..db8f9f1 100644
--- a/sys/modules/if_gre/Makefile
+++ b/sys/modules/if_gre/Makefile
@@ -1,8 +1,17 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
+.include "${.CURDIR}/../../conf/kern.opts.mk"
KMOD= if_gre
-SRCS= if_gre.c ip_gre.c opt_inet.h opt_inet6.h
+SRCS= if_gre.c opt_inet.h opt_inet6.h
+
+.if ${MK_INET_SUPPORT} != "no"
+SRCS+= ip_gre.c
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+SRCS+= ip6_gre.c
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud