summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-11-26 01:43:20 +0000
committerfenner <fenner@FreeBSD.org>1996-11-26 01:43:20 +0000
commitc7563a7f0b1d981d63f0649ad099436adc0b2b6c (patch)
tree5cd64f137713efe4e55c6ce78425cdc320a50227 /contrib/tcpdump
parenta91708716dc246689fca7f0012fa368596e7e488 (diff)
downloadFreeBSD-src-c7563a7f0b1d981d63f0649ad099436adc0b2b6c.zip
FreeBSD-src-c7563a7f0b1d981d63f0649ad099436adc0b2b6c.tar.gz
LBL chose to use IPPROTO_ENCAP to represent IP proto 4 encapsulation
as performed by the multicast kernel modifications. However, BSD already had IPPROTO_ENCAP defined as 98 (RFC 1241 encapsulation). This changes the use of IPPROTO_ENCAP to IPPROTO_IPIP, which is the BSD name for IP proto 4.
Diffstat (limited to 'contrib/tcpdump')
-rw-r--r--contrib/tcpdump/print-ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tcpdump/print-ip.c b/contrib/tcpdump/print-ip.c
index 7f9e44b..2f49352 100644
--- a/contrib/tcpdump/print-ip.c
+++ b/contrib/tcpdump/print-ip.c
@@ -445,10 +445,10 @@ ip_print(register const u_char *bp, register u_int length)
igmp_print(cp, len, (const u_char *)ip);
break;
-#ifndef IPPROTO_ENCAP
-#define IPPROTO_ENCAP 4
+#ifndef IPPROTO_IPIP
+#define IPPROTO_IPIP 4
#endif
- case IPPROTO_ENCAP:
+ case IPPROTO_IPIP:
/* ip-in-ip encapsulation */
if (vflag)
(void)printf("%s > %s: ",
OpenPOWER on IntegriCloud