mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
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:
parent
7b9a6072fe
commit
eb1accc762
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19961
@ -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: ",
|
||||
|
Loading…
Reference in New Issue
Block a user