From 53d2a96094c69fbe8cc7bb9e0f9ff3be2a68a522 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Thu, 8 Jul 1999 04:23:28 +0000 Subject: Added Johan's RADIUS dissector, finally. I modified it to fit in with the new proto_tree routines. I also removed the check for lex and yacc from wiretap's configure script. The IP dissector now uses proto_register_field_array(). svn path=/trunk/; revision=348 --- packet-udp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'packet-udp.c') diff --git a/packet-udp.c b/packet-udp.c index f020984bbb..1797409ea5 100644 --- a/packet-udp.c +++ b/packet-udp.c @@ -1,7 +1,7 @@ /* packet-udp.c * Routines for UDP packet disassembly * - * $Id: packet-udp.c,v 1.19 1999/07/07 22:51:57 gram Exp $ + * $Id: packet-udp.c,v 1.20 1999/07/08 04:23:04 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -67,6 +67,10 @@ typedef struct _e_udphdr { #define UDP_PORT_ISAKMP 500 #define UDP_PORT_RIP 520 #define UDP_PORT_VINES 573 +#define UDP_PORT_RADIUS 1645 +#define UDP_PORT_RADIUS_NEW 1812 +#define UDP_PORT_RADACCT 1646 +#define UDP_PORT_RADACCT_NEW 1813 struct hash_struct { @@ -232,6 +236,11 @@ dissect_udp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { /* This is the first point of call, but it adds a dynamic call */ udp_hash_add(MAX(uh_sport, uh_dport), dissect_tftp); /* Add to table */ dissect_tftp(pd, offset, fd, tree); + } else if (PORT_IS(UDP_PORT_RADIUS) || + PORT_IS(UDP_PORT_RADACCT) || + PORT_IS(UDP_PORT_RADIUS_NEW) || + PORT_IS(UDP_PORT_RADACCT_NEW) ) { + dissect_radius(pd, offset, fd, tree); } else { /* OK, find a routine in the table, else use the default */ -- cgit v1.2.3