mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329115
|
@ -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 a new issue