Fix typo in dtrace_tcp(4)
Using args[2]->tcps_state as-documented results in error: operator -> cannot be applied to pointer to type "void" This error is accurate as the synopsis for tcp:::state-change is: tcp:::state-change(void *, csinfo_t *, void *, tcpsinfo_t *, void *, tcplsinfo_t *); args[2] refers to the third argument which is always NULL (as- documented). The to-state for the TCP connection state transition is actually in the fourth argument, args[3]->tcps_state.
This commit is contained in:
parent
4b69e622d5
commit
e6c0055599
@ -24,7 +24,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 15, 2016
|
||||
.Dd February 10, 2018
|
||||
.Dt DTRACE_TCP 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -135,7 +135,7 @@ Its first, third and fifth arguments are currently always
|
||||
.Dv NULL .
|
||||
Its last argument describes the from-state in the transition, and the to-state
|
||||
can be obtained from
|
||||
.Dv args[2]->tcps_state .
|
||||
.Dv args[3]->tcps_state .
|
||||
.Sh ARGUMENTS
|
||||
The
|
||||
.Vt pktinfo_t
|
||||
|
Loading…
Reference in New Issue
Block a user