summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-01-07 09:20:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-01-07 09:20:18 +0000
commit97ddd277f74838ca724b0aa42b6a9d57e4d11324 (patch)
tree165ebc3bf07205378c9c2b4c46b7b05570a00fb5 /sys/netinet
parentcb2240810fa7c600c54da41153ae242a16195080 (diff)
add ipv6 transition related ICMP errors
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_icmp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.h b/sys/netinet/ip_icmp.h
index a8cc793302c..74e11928258 100644
--- a/sys/netinet/ip_icmp.h
+++ b/sys/netinet/ip_icmp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_icmp.h,v 1.8 1997/08/26 20:02:31 deraadt Exp $ */
+/* $OpenBSD: ip_icmp.h,v 1.9 1999/01/07 09:20:17 deraadt Exp $ */
/* $NetBSD: ip_icmp.h,v 1.10 1996/02/13 23:42:28 christos Exp $ */
/*
@@ -109,6 +109,12 @@ struct icmp {
};
/*
+ * For IPv6 transition related ICMP errors.
+ */
+#define ICMP_V6ADVLENMIN (8 + sizeof(struct ip) + 40)
+#define ICMP_V6ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 40)
+
+/*
* Lower bounds on packet lengths for various types.
* For the error advice packets must first insure that the
* packet is large enought to contain the returned ip header.