mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
sockstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also show per default. Reviewed by: Peter Lei, Nick Banks MFC after: 3 days Relnotes: yes Differential Revision: https://reviews.freebsd.org/D53230
This commit is contained in:
parent
be93b27483
commit
f48c6390dd
1 changed files with 7 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ static bool show_path_state = false;
|
|||
/*
|
||||
* Default protocols to use if no -P was defined.
|
||||
*/
|
||||
static const char *default_protos[] = {"sctp", "tcp", "udp", "divert" };
|
||||
static const char *default_protos[] = {"sctp", "tcp", "udp", "udplite",
|
||||
"divert" };
|
||||
static size_t default_numprotos = nitems(default_protos);
|
||||
|
||||
static int *protos; /* protocols to use */
|
||||
|
|
@ -626,6 +627,10 @@ gather_inet(int proto)
|
|||
varname = "net.inet.udp.pcblist";
|
||||
protoname = "udp";
|
||||
break;
|
||||
case IPPROTO_UDPLITE:
|
||||
varname = "net.inet.udplite.pcblist";
|
||||
protoname = "udplite";
|
||||
break;
|
||||
case IPPROTO_DIVERT:
|
||||
varname = "net.inet.divert.pcblist";
|
||||
protoname = "div";
|
||||
|
|
@ -674,6 +679,7 @@ gather_inet(int proto)
|
|||
protoname = xtp->t_flags & TF_TOE ? "toe" : "tcp";
|
||||
break;
|
||||
case IPPROTO_UDP:
|
||||
case IPPROTO_UDPLITE:
|
||||
case IPPROTO_DIVERT:
|
||||
xip = (struct xinpcb *)xig;
|
||||
if (!check_ksize(xip->xi_len, struct xinpcb))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue