]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/ip_encap.c
xnu-7195.81.3.tar.gz
[apple/xnu.git] / bsd / netinet / ip_encap.c
index 02c4e8141d7b5b24056ab440c3ca777186749e93..294b9875220edbc29c44cd345019c02cb9e84928 100644 (file)
@@ -76,7 +76,7 @@
  * 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>
 
@@ -288,7 +285,6 @@ encap4_input(struct mbuf *m, int off)
 }
 #endif
 
-#if INET6
 int
 encap6_input(struct mbuf **mp, int *offp, int proto)
 {
@@ -362,7 +358,6 @@ 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)