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.
This commit is contained in:
fenner 1996-11-26 01:43:20 +00:00
parent a91708716d
commit c7563a7f0b

View File

@ -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: ",