diff options
author | 1999-10-28 03:21:51 +0000 | |
---|---|---|
committer | 1999-10-28 03:21:51 +0000 | |
commit | 3e4de1416be4fa6657c52e0926b386634922de13 (patch) | |
tree | 253732a4f6f0e1234270915193be4a9a4146ffb7 | |
parent | Add Ethernet-IP encapsulation handling. (diff) | |
download | wireguard-openbsd-3e4de1416be4fa6657c52e0926b386634922de13.tar.xz wireguard-openbsd-3e4de1416be4fa6657c52e0926b386634922de13.zip |
Add IPPROTO_ETHERIP in the protocol switch; comment out INET6 IPv4-IPv4
handling that was re-using ipv4_input() instead of using ip4_input()
from netinet/ip_ip4.c
-rw-r--r-- | sys/netinet/in_proto.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index ac544657bc8..ed387d1efb3 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_proto.c,v 1.14 1999/04/20 20:06:11 niklas Exp $ */ +/* $OpenBSD: in_proto.c,v 1.15 1999/10/28 03:21:51 angelos Exp $ */ /* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */ /* @@ -115,6 +115,7 @@ void iplinit __P((void)); #include <netinet/ip_ah.h> #include <netinet/ip_esp.h> #include <netinet/ip_ip4.h> +#include <netinet/ip_ether.h> #endif extern struct domain inetdomain; @@ -197,6 +198,11 @@ struct protosw inetsw[] = { rip_usrreq, 0, 0, 0, 0, esp_sysctl }, +{ SOCK_RAW, &inetdomain, IPPROTO_ETHERIP, PR_ATOMIC|PR_ADDR, + etherip_input, rip_output, 0, rip_ctloutput, + rip_usrreq, + 0, 0, 0, 0, etherip_sysctl +}, #endif #ifdef INET6 /* IPv6 in IPv4 tunneled packets... */ @@ -205,12 +211,14 @@ struct protosw inetsw[] = { rip_usrreq, 0, 0, 0, 0 }, +#if 0 /* IPv4 in IPv4 tunneled packets... */ { SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR, ipv4_input, 0, 0, 0, 0, 0, 0, 0, 0 }, +#endif /* 0 */ #endif /* defined(INET6) */ /* raw wildcard */ { SOCK_RAW, &inetdomain, 0, PR_ATOMIC|PR_ADDR, |