procstat: fix printing divert(4) sockets
This commit is contained in:
parent
4627bc1e90
commit
1f3d8c09be
@ -414,10 +414,6 @@ The following network protocols may be displayed (grouped by address family):
|
||||
.Dv IPPROTO_ICMP ;
|
||||
see
|
||||
.Xr icmp 4 .
|
||||
.It IPD
|
||||
.Dv IPPROTO_DIVERT ;
|
||||
see
|
||||
.Xr divert 4 .
|
||||
.It IP?
|
||||
unknown protocol.
|
||||
.It RAW
|
||||
@ -453,6 +449,14 @@ see
|
||||
unknown protocol.
|
||||
.El
|
||||
.Pp
|
||||
.Dv AF_DIVERT
|
||||
.Pp
|
||||
.Bl -tag -width indent -compact
|
||||
.It IPD
|
||||
.Dv Divert socket; see
|
||||
.Xr divert 4 .
|
||||
.El
|
||||
.Pp
|
||||
.Bl -tag -width indent -compact
|
||||
.It ?
|
||||
unknown address family.
|
||||
|
@ -68,8 +68,6 @@ protocol_to_string(int domain, int type, int protocol)
|
||||
return ("RAW");
|
||||
case IPPROTO_SCTP:
|
||||
return ("SCT");
|
||||
case IPPROTO_DIVERT:
|
||||
return ("IPD");
|
||||
default:
|
||||
return ("IP?");
|
||||
}
|
||||
@ -83,6 +81,9 @@ protocol_to_string(int domain, int type, int protocol)
|
||||
default:
|
||||
return ("UD?");
|
||||
}
|
||||
case AF_DIVERT:
|
||||
return ("IPD");
|
||||
break;
|
||||
default:
|
||||
return ("?");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user