]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/ip_icmp.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / netinet / ip_icmp.h
index 3438a1bdb7ac3019ef73b6edaaab43fd426a819c..2de986d94e22d161d2f604d2301d3332ee93bfc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
+ * Copyright (c) 2008-2018 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -227,6 +227,11 @@ struct icmp {
        (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
        (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
 
+#define ICMP_ERRORTYPE(type) \
+       ((type) == ICMP_UNREACH || (type) == ICMP_SOURCEQUENCH || \
+       (type) == ICMP_REDIRECT || (type) == ICMP_TIMXCEED || \
+       (type) == ICMP_PARAMPROB)
+
 #ifdef BSD_KERNEL_PRIVATE
 void   icmp_error(struct mbuf *, int, int, n_long, u_int32_t);
 void   icmp_input(struct mbuf *, int);