Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-radius dissector update

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

From: Kestutis Kupciunas <kesha@xxxxxxxxxxxxx>
Date: Thu, 30 Sep 2004 20:44:49 +0300
Hello,

I have access to several Gemtek-Systems access points and they are using
Gemtek-Systems and Wi-Fi Alliance vendor specific attributes for Radius
protocol. I'm appending the patch (against svn) of those attributes -
however, I beg your pardon, I didn't have a chance to verify whether it
compiles. The patch is relatively small, and only defines structures - 
I just hope it compiles.. if it does - i'll have to order some magnifying
glasses ;)
Thanks in advance.

regards,
Kestutis Kupciunas
Index: epan/dissectors/packet-radius.c
===================================================================
--- epan/dissectors/packet-radius.c	(revision 12148)
+++ epan/dissectors/packet-radius.c	(working copy)
@@ -268,6 +268,8 @@
 #define VENDOR_COLUBRIS			8744
 #define VENDOR_COLUMBIA_UNIVERSITY	11862
 #define VENDOR_THE3GPP			10415
+#define VENDOR_GEMTEK_SYSTEMS          10529
+#define VENDOR_WIFI_ALLIANCE           14122
 
 static const value_string radius_vendor_specific_vendors[] =
 {
@@ -299,6 +301,8 @@
   {VENDOR_COLUBRIS,		"Colubris"},
   {VENDOR_COLUMBIA_UNIVERSITY,	"Columbia University"},
   {VENDOR_THE3GPP,		"3GPP"},
+  {VENDOR_GEMTEK_SYSTEMS,	"Gemtek-Systems"},
+  {VENDOR_WIFI_ALLIANCE,	"Wi-Fi Alliance"},
   {0, NULL}
 };
 
@@ -2769,6 +2773,33 @@
    {0, 0, NULL, NULL, NULL},
 };
 
+static const radius_attr_info radius_vendor_gemtek_systems_attrib[] =
+{
+   {21, RADIUS_INTEGER4,	"Acct-Session-Input-Octets", NULL},
+   {22, RADIUS_INTEGER4,	"Acct-Session-Input-Gigawords", NULL},
+   {23, RADIUS_INTEGER4,	"Acct-Session-Output-Octets", NULL},
+   {24, RADIUS_INTEGER4,	"Acct-Session-Output-Gigawords", NULL},
+   {25, RADIUS_INTEGER4,	"Acct-Session-Octets", NULL},
+   {26, RADIUS_INTEGER4,	"Acct-Session-Gigawords", NULL},
+   {0, 0, NULL, NULL},
+};
+
+static const radius_attr_info radius_vendor_wifi_alliance_attrib[] =
+{
+   {1,  RADIUS_STRING,		"Location-ID", NULL},
+   {2,  RADIUS_STRING,		"Location-Name", NULL},
+   {3,  RADIUS_STRING,		"Logoff-URL", NULL},
+   {4,  RADIUS_STRING,		"Redirection-URL", NULL},
+   {5,  RADIUS_INTEGER4,	"Bandwidth-Min-Up", NULL},
+   {6,  RADIUS_INTEGER4,	"Bandwidth-Min-Down", NULL},
+   {7,  RADIUS_INTEGER4,	"Bandwidth-Max-Up", NULL},
+   {8,  RADIUS_INTEGER4,	"Bandwidth-Max-Down", NULL},
+   {9,  RADIUS_STRING,		"Session-Terminate-Time", NULL},
+   {10, RADIUS_INTEGER4,	"Session-Terminate-End-Of-Day", NULL},
+   {11, RADIUS_STRING,		"Billing-Class-Of-Service", NULL},
+   {0, 0, NULL, NULL},
+};
+
 static rd_vsa_table radius_vsa_table[] =
 {
   {VENDOR_ACC,			radius_vendor_acc_attrib},
@@ -2795,6 +2826,8 @@
   {VENDOR_COLUBRIS,		radius_vendor_colubris_attrib},
   {VENDOR_COLUMBIA_UNIVERSITY,	radius_vendor_columbia_university_attrib},
   {VENDOR_THE3GPP,		radius_vendor_3gpp_attrib},
+  {VENDOR_GEMTEK_SYSTEMS,	radius_vendor_gemtek_systems_attrib},
+  {VENDOR_WIFI_ALLIANCE,	radius_vendor_wifi_alliance_attrib},
   {0, NULL},
 };