]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/ip_icmp.h
xnu-3789.31.2.tar.gz
[apple/xnu.git] / bsd / netinet / ip_icmp.h
index fec3d5d96c5255c0bec157c77efc570ce3bcb41d..3438a1bdb7ac3019ef73b6edaaab43fd426a819c 100644 (file)
@@ -1,16 +1,19 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
  *
- * @APPLE_LICENSE_HEADER_START@
- * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
- * compliance with the License. Please obtain a copy of the License at
- * http://www.opensource.apple.com/apsl/ and read it before using this
- * file.
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ * 
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
  * 
  * The Original Code and all software distributed under the License are
  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
@@ -20,7 +23,7 @@
  * Please see the License for the specific language governing rights and
  * limitations under the License.
  * 
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -183,8 +186,11 @@ struct icmp {
 #define                ICMP_REDIRECT_HOST      1               /* for host */
 #define                ICMP_REDIRECT_TOSNET    2               /* for tos and net */
 #define                ICMP_REDIRECT_TOSHOST   3               /* for tos and host */
+#define        ICMP_ALTHOSTADDR        6               /* alternate host address */
 #define        ICMP_ECHO               8               /* echo service */
 #define        ICMP_ROUTERADVERT       9               /* router advertisement */
+#define                ICMP_ROUTERADVERT_NORMAL         0  /* normal advertisement */
+#define                ICMP_ROUTERADVERT_NOROUTE_COMMON 16 /* selective routing */
 #define        ICMP_ROUTERSOLICIT      10              /* router solicitation */
 #define        ICMP_TIMXCEED           11              /* time exceeded, code: */
 #define                ICMP_TIMXCEED_INTRANS   0               /* ttl==0 in transit */
@@ -199,8 +205,20 @@ struct icmp {
 #define        ICMP_IREQREPLY          16              /* information reply */
 #define        ICMP_MASKREQ            17              /* address mask request */
 #define        ICMP_MASKREPLY          18              /* address mask reply */
+#define        ICMP_TRACEROUTE         30              /* traceroute */
+#define        ICMP_DATACONVERR        31              /* data conversion error */
+#define        ICMP_MOBILE_REDIRECT    32              /* mobile host redirect */
+#define        ICMP_IPV6_WHEREAREYOU   33              /* IPv6 where-are-you */
+#define        ICMP_IPV6_IAMHERE       34              /* IPv6 i-am-here */
+#define        ICMP_MOBILE_REGREQUEST  35              /* mobile registration req */
+#define        ICMP_MOBILE_REGREPLY    36              /* mobile registration reply */
+#define        ICMP_SKIP               39              /* SKIP */
+#define        ICMP_PHOTURIS           40              /* Photuris */
+#define                ICMP_PHOTURIS_UNKNOWN_INDEX     1       /* unknown sec index */
+#define                ICMP_PHOTURIS_AUTH_FAILED       2       /* auth failed */
+#define                ICMP_PHOTURIS_DECRYPT_FAILED    3       /* decrypt failed */
 
-#define        ICMP_MAXTYPE            18
+#define        ICMP_MAXTYPE            40
 
 #define        ICMP_INFOTYPE(type) \
        ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
@@ -209,11 +227,9 @@ struct icmp {
        (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
        (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
 
-#ifdef KERNEL
-#ifdef __APPLE_API_PRIVATE
-void   icmp_error __P((struct mbuf *, int, int, n_long, struct ifnet *));
-void   icmp_input __P((struct mbuf *, int));
-#endif /* __APPLE_API_PRIVATE */
-#endif
-
-#endif
+#ifdef BSD_KERNEL_PRIVATE
+void   icmp_error(struct mbuf *, int, int, n_long, u_int32_t);
+void   icmp_input(struct mbuf *, int);
+int     ip_next_mtu(int, int);
+#endif /* BSD_KERNEL_PRIVATE */
+#endif /* _NETINET_IP_ICMP_H_ */