Ethereal-dev: [ethereal-dev] Patch: quiet down SAP

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

From: Heikki Vatiainen <hessu@xxxxxxxxx>
Date: Mon, 22 Nov 1999 22:50:21 +0200
This little patch makes the SAP info column look more like what 
other dissectors look.

Also, I found the spec for cisco's Auto-RP protocol. I will start 
hacking together a dissector now. Auto-RP only has one packet 
format, so creating a dissector should not take too long. Would it 
be possible to hold the next release until I get it finished?

// Heikki

--- ../../current/ethereal/packet-sap.c	Wed Nov 17 08:52:19 1999
+++ packet-sap.c	Mon Nov 22 22:28:48 1999
@@ -146,9 +146,8 @@
                 col_add_str(fd, COL_PROTOCOL, "SAP");
         
         if (check_col(fd, COL_INFO)) {
-                col_add_fstr(fd, COL_INFO, "V%d session %s, originating source %s", sap_version,
-                             (is_del) ? "deletion" : "announcement",
-                             (is_ipv6) ? ip6_to_str((struct e_in6_addr*)(pd+offset+4)) : ip_to_str(pd+offset+4));
+                col_add_fstr(fd, COL_INFO, "%s (v%u)",
+                             (is_del) ? "Deletion" : "Announcement", sap_version);
         }
 
 	if (tree) {