Date: Sun, 8 Mar 2015 04:33:54 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279769 - head/share/dtrace Message-ID: <201503080433.t284Xs83080799@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gnn Date: Sun Mar 8 04:33:53 2015 New Revision: 279769 URL: https://svnweb.freebsd.org/changeset/base/279769 Log: Summary: Update the ports to read from the packet rather than the socket structure Modified: head/share/dtrace/udptrack Modified: head/share/dtrace/udptrack ============================================================================== --- head/share/dtrace/udptrack Sun Mar 8 04:29:41 2015 (r279768) +++ head/share/dtrace/udptrack Sun Mar 8 04:33:53 2015 (r279769) @@ -37,10 +37,9 @@ udp:kernel::receive { printf("Received %d bytes of data from %s:%d\n", args[4]->udp_length, - args[2]->ip_daddr, - args[3]->udps_rport); + args[2]->ip_saddr, + args[4]->udp_sport); tracemem(args[4]->udp_hdr, 64); - } udp:kernel::send @@ -48,7 +47,7 @@ udp:kernel::send printf("Sent %d bytes of data to %s:%d\n", args[4]->udp_length, args[2]->ip_daddr, - args[3]->udps_rport); + args[4]->udp_dport); tracemem(args[4]->udp_hdr, 64); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503080433.t284Xs83080799>