* Well, what can I say. They impose different en/decapsulation mechanism
* from each other, so they need separate protocol handler. The only one
* we can easily determine by protocol # is IPsec, which always has
- * AH/ESP/IPComp header right after outer IP header.
+ * AH/ESP header right after outer IP header.
*
* So, clearly good old protosw does not work for protocol #4 and #41.
* The code will let you match protocol via src/dst address pair.
#include <netinet/ip_var.h>
#include <netinet/ip_encap.h>
-#if INET6
#include <netinet/ip6.h>
#include <netinet6/ip6_var.h>
#include <netinet6/ip6protosw.h>
-#endif
-
#include <net/net_osdep.h>
}
#endif
-#if INET6
int
encap6_input(struct mbuf **mp, int *offp, int proto)
{
/* last resort: inject to raw socket */
return rip6_input(mp, offp, proto);
}
-#endif
static void
encap_add_locked(struct encaptab *ep)