update copyright for distribution
[unix-history] / usr / src / sys / netinet / ip_icmp.h
index cd7158e..986fad6 100644 (file)
@@ -1,9 +1,15 @@
 /*
 /*
- * Copyright (c) 1982 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.
  *
  *
- *     @(#)ip_icmp.h   6.4 (Berkeley) %G%
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of California at Berkeley. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
+ *
+ *     @(#)ip_icmp.h   7.3 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -98,3 +104,9 @@ struct icmp {
 #define        ICMP_MASKREPLY          18              /* address mask reply */
 
 #define        ICMP_MAXTYPE            18
 #define        ICMP_MASKREPLY          18              /* address mask reply */
 
 #define        ICMP_MAXTYPE            18
+
+#define        ICMP_INFOTYPE(type) \
+       ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
+       (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
+       (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
+       (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)