svn commit: r279769 - head/share/dtrace

George V. Neville-Neil gnn at FreeBSD.org
Sun Mar 8 04:33:54 UTC 2015


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);
 }
 


More information about the svn-src-head mailing list