Ethereal-dev: [ethereal-dev] Patch to FTP to make it more friendly

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Wed, 12 Apr 2000 12:02:54 +0900
Hi,

I cannot get to my source tree or CVS access at the moment, which means I
cannot get the latest and greatest things until tomorrow when I get home.

Here is a small patch to FTP to make it easier to interpret.

--- packet-ftp.c.orig	Thu Apr 13 23:45:41 2000
+++ packet-ftp.c	Sat Apr 15 11:29:11 2000
@@ -147,14 +147,15 @@
 
 	if (check_col(fd, COL_INFO)) {
 
-	  col_add_fstr(fd, COL_INFO, "FTP Data ...");
+	  col_add_fstr(fd, COL_INFO, "FTP Data: %u bytes", pi.captured_len - offset);
 
 	}
 
 	if (tree) {
 
 	  ti = proto_tree_add_text(tree, offset, END_OF_FRAME,
-				"File Transfer Protocol Data");
+				   "FTP Data: %s", 
+				   format_text(&pd[offset], pi.captured_len - offset));
 
 	}
 }

Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course