svn commit: r329115 - head/share/man/man4
Devin Teske
dteske at FreeBSD.org
Sun Feb 11 03:02:30 UTC 2018
Author: dteske
Date: Sun Feb 11 03:02:29 2018
New Revision: 329115
URL: https://svnweb.freebsd.org/changeset/base/329115
Log:
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.
Modified:
head/share/man/man4/dtrace_tcp.4
Modified: head/share/man/man4/dtrace_tcp.4
==============================================================================
--- head/share/man/man4/dtrace_tcp.4 Sun Feb 11 02:27:50 2018 (r329114)
+++ head/share/man/man4/dtrace_tcp.4 Sun Feb 11 03:02:29 2018 (r329115)
@@ -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 alw
.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
More information about the svn-src-all
mailing list