Ethereal-dev: [Ethereal-dev] PATCH: netbios address type for kerberos

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

From: "Jim McDonough" <jmcd@xxxxxxxxxx>
Date: Sun, 28 Jul 2002 20:50:41 -0400
This patch adds recognition of the netbios address type (0x14) in kerberos
packets:

--- packet-kerberos.c   Tue Apr 30 20:01:57 2002
+++ ../ethereal-0.9.5/packet-kerberos.c   Sun Jul 28 20:34:44 2002
@@ -122,6 +122,7 @@
 #define KRB5_ADDR_ISO        0x07
 #define KRB5_ADDR_DECNET     0x0c
 #define KRB5_ADDR_APPLETALK  0x10
+#define KRB5_ADDR_NETBIOS    0x14

 /* encryption type constants */
 #define KRB5_ENCTYPE_NULL                0
@@ -322,6 +323,7 @@
     { KRB5_ADDR_ISO,         "ISO"},
     { KRB5_ADDR_DECNET,            "DECNET"},
     { KRB5_ADDR_APPLETALK,   "APPLETALK"},
+    { KRB5_ADDR_NETBIOS,     "NETBIOS"},
     { 0,                        NULL },
 };

@@ -1166,6 +1168,10 @@
                                         str[0], str[1], str[2], str[3]);
                     break;

+             case KRB5_ADDR_NETBIOS:
+               proto_tree_add_text(address_tree, asn1p->tvb, tmp_pos2,
+                             str_len, "Value: %s", str);
+               break;
                 default:
                     proto_tree_add_text(address_tree, asn1p->tvb,
tmp_pos2,
                                         str_len, "Value: %s",

----------------------------
Jim McDonough
IBM Linux Technology Center
Samba Team
6 Minuteman Drive
Scarborough, ME 04074
USA

jmcd@xxxxxxxxxx
jmcd@xxxxxxxxx

Phone: (207) 885-5565
IBM tie-line: 776-9984