Ethereal-dev: [Ethereal-dev] a small patch for packet-radius.c

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

From: Adam Sulmicki <adam@xxxxxxxxxxxx>
Date: Wed, 25 Jun 2003 05:23:16 -0400 (EDT)
[not on list, please cc]

Hello,
	This is a trival patch which adds two more message
	types to packet-radius.c It is as per RFC2828, section 4.

	It is attached. It also can be found at:

http://www.eax.com/patches/ETHEREAL/ethereal-radius-rfc2882-diff


-- 
Adam Sulmicki
http://www.eax.com 	The Supreme Headquarters of the 32 bit registers
	A trival patch to add Messages 6 and 10 as per RFC2882

	It is in http://www.faqs.org/rfcs/rfc2882.html, section 4.

        Adam Sulmicki <adam@xxxxxxxxxxxx>
	Wed Jun 25 04:33:43 EDT 2003
        http://www.eax.com/patches/

-------------------------------------------------------------------------------

Index: packet-radius.c
===================================================================
RCS file: /cvsroot/ethereal/packet-radius.c,v
retrieving revision 1.78
diff -u -r1.78 packet-radius.c
--- packet-radius.c	11 Mar 2003 22:51:52 -0000	1.78
+++ packet-radius.c	25 Jun 2003 08:32:10 -0000
@@ -107,12 +107,15 @@
 #define RADIUS_ACCESS_REJECT			3
 #define RADIUS_ACCOUNTING_REQUEST		4
 #define RADIUS_ACCOUNTING_RESPONSE		5
+#define RADIUS_ACCOUNTING_STATUS		6
 #define RADIUS_ACCESS_PASSWORD_REQUEST		7
 #define RADIUS_ACCESS_PASSWORD_ACK		8
 #define RADIUS_ACCESS_PASSWORD_REJECT		9
+#define RADIUS_ACCOUNTING_MESSAGE		10
 #define RADIUS_ACCESS_CHALLENGE			11
 #define RADIUS_STATUS_SERVER			12
 #define RADIUS_STATUS_CLIENT			13
+
 #define RADIUS_VENDOR_SPECIFIC_CODE		26
 #define RADIUS_ASCEND_ACCESS_NEXT_CODE		29
 #define RADIUS_ASCEND_ACCESS_NEW_PIN		30
@@ -230,9 +233,11 @@
   {RADIUS_ACCESS_REJECT,		"Access Reject"},
   {RADIUS_ACCOUNTING_REQUEST,		"Accounting Request"},
   {RADIUS_ACCOUNTING_RESPONSE,		"Accounting Response"},
+  {RADIUS_ACCOUNTING_STATUS,		"Accounting Status"},
   {RADIUS_ACCESS_PASSWORD_REQUEST,	"Access Password Request"},
   {RADIUS_ACCESS_PASSWORD_ACK,		"Access Password Ack"},
   {RADIUS_ACCESS_PASSWORD_REJECT,	"Access Password Reject"},
+  {RADIUS_ACCOUNTING_MESSAGE,		"Accounting Message"},
   {RADIUS_ACCESS_CHALLENGE,		"Access challenge"},
   {RADIUS_STATUS_SERVER,		"StatusServer"},
   {RADIUS_STATUS_CLIENT,		"StatusClient"},