From 62fc95fd847703423c4902b3205c6d9517f20006 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 11 May 2010 09:36:08 +0000 Subject: Massiv cleanup of the gif(4) mess. Move encapsulation into gif_output() where it is not necessary to guess protocols by looking at the first nibble. in_gif_output() will encapsulate the packet but not send it. Because of etherip support and the way the bridge works a minimal hack is needed in gif_start() to ensure that the bridged packets are encapsulated as well. This actually started with the idea to add MPLS support but that turned out to be not as simple as in the gre(4) case. Tested by myself (IP, IPv6, etherip, MPLS), sthen@ (IP, IPv6), naddy (IPv6) OK sthen@ --- sys/netinet/ip_ipsp.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/netinet/ip_ipsp.h') diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 01eb0282ffe..8d8f14323d0 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.h,v 1.141 2010/05/07 13:33:17 claudio Exp $ */ +/* $OpenBSD: ip_ipsp.h,v 1.142 2010/05/11 09:36:07 claudio Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -534,7 +534,7 @@ extern int ipe4_init(struct tdb *, struct xformsw *, struct ipsecinit *); extern int ipe4_zeroize(struct tdb *); extern int ipip_output(struct mbuf *, struct tdb *, struct mbuf **, int, int); extern void ipe4_input(struct mbuf *, ...); -extern void ipip_input(struct mbuf *, int, struct ifnet *); +extern void ipip_input(struct mbuf *, int, struct ifnet *, int); #ifdef INET extern void ip4_input(struct mbuf *, ...); @@ -544,11 +544,6 @@ extern void ip4_input(struct mbuf *, ...); extern int ip4_input6(struct mbuf **, int *, int); #endif /* INET */ -/* XF_ETHERIP */ -extern int etherip_output(struct mbuf *, struct tdb *, struct mbuf **, - int, int); -extern void etherip_input(struct mbuf *, ...); - /* XF_AH */ extern int ah_attach(void); extern int ah_init(struct tdb *, struct xformsw *, struct ipsecinit *); -- cgit v1.2.3