]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/ip_icmp.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / netinet / ip_icmp.h
index a4ebb9840e748b8293df1c46f557df2d0580b144..3438a1bdb7ac3019ef73b6edaaab43fd426a819c 100644 (file)
@@ -1,31 +1,29 @@
 /*
- * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved.
+ * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
- * @APPLE_LICENSE_OSREFERENCE_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. 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.
  * 
- * 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.  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 
- * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
- * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 
- * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
- * Please see the License for the specific language governing rights and 
+ * 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
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
  * limitations under the License.
- *
- * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
+ * 
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -188,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 */
@@ -204,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 || \
@@ -214,9 +227,9 @@ struct icmp {
        (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
        (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
 
-#ifdef KERNEL_PRIVATE
-void   icmp_error(struct mbuf *, int, int, n_long, struct ifnet *);
+#ifdef BSD_KERNEL_PRIVATE
+void   icmp_error(struct mbuf *, int, int, n_long, u_int32_t);
 void   icmp_input(struct mbuf *, int);
-#endif KERNEL_PRIVATE
-
-#endif
+int     ip_next_mtu(int, int);
+#endif /* BSD_KERNEL_PRIVATE */
+#endif /* _NETINET_IP_ICMP_H_ */