Ethereal-dev: [Ethereal-dev] Issanni Communications RADIUS VSAs
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Jim Sienicki <sienicki@xxxxxxxxxxx>
Date: Thu, 21 Mar 2002 10:25:17 -0500
Platform: RedHat linux 7.0 kernel 2.2.16 (altough the problem should exist on all platforms) Ethereal Version: 0.9.2I've added the Issanni Communications SMI Private Enterprise ID and RADIUS Vendor Specific Attributes using the CoSine Communications VSA code as an example.
Jim Sienicki Senior Software Engineer Issanni Communications
Index: packet-radius.c =================================================================== RCS file: /cvsroot/ethereal/packet-radius.c,v retrieving revision 1.49 diff -u -r1.49 packet-radius.c --- packet-radius.c 2002/02/26 11:55:37 1.49 +++ packet-radius.c 2002/03/21 15:21:17 @@ -263,6 +263,7 @@ #define VENDOR_JUNIPER 2636 #define VENDOR_COSINE 3085 #define VENDOR_UNISPHERE 4874 +#define VENDOR_ISSANNI 5948 static value_string radius_vendor_specific_vendors[]= {{VENDOR_ACC,"ACC"}, @@ -275,6 +276,7 @@ {VENDOR_JUNIPER,"Juniper Networks"}, {VENDOR_COSINE,"CoSine Communications"}, {VENDOR_UNISPHERE,"Unisphere Networks"}, +{VENDOR_ISSANNI,"Issanni Communications"}, {0,NULL}}; #define VENDOR_COSINE_VSA_CONNECION_PROFILE_NAME 1 @@ -297,6 +299,44 @@ {VENDOR_COSINE_VSA_CLI_USER_PERMISSION_ID,"CLI User Permission ID"}, {0,NULL}}; +#define VENDOR_ISSANNI_VSA_SOFTFLOW_TEMPLATE 1 +#define VENDOR_ISSANNI_VSA_NAT_POOL_NAME 2 +#define VENDOR_ISSANNI_VSA_VRD 3 +#define VENDOR_ISSANNI_VSA_TUNNEL_NAME 4 +#define VENDOR_ISSANNI_VSA_IP_POOL_NAME 5 +#define VENDOR_ISSANNI_VSA_PPPOE_URL 6 +#define VENDOR_ISSANNI_VSA_PPPOE_MOTM 7 +#define VENDOR_ISSANNI_VSA_SERVICE 8 +#define VENDOR_ISSANNI_VSA_PRI_DNS 9 +#define VENDOR_ISSANNI_VSA_SEC_DNS 10 +#define VENDOR_ISSANNI_VSA_PRI_NBNS 11 +#define VENDOR_ISSANNI_VSA_SEC_NBNS 12 +#define VENDOR_ISSANNI_VSA_TRAFFIC_CLASS 13 +#define VENDOR_ISSANNI_VSA_TUNNEL_TYPE 14 +#define VENDOR_ISSANNI_VSA_NAT_TYPE 15 +#define VENDOR_ISSANNI_VSA_QOS_CLASS 16 +#define VENDOR_ISSANNI_VSA_IFACE_NAME 17 + +static value_string radius_vendor_issanni_types[]= +{{VENDOR_ISSANNI_VSA_SOFTFLOW_TEMPLATE,"Softflow Template"}, +{VENDOR_ISSANNI_VSA_NAT_POOL_NAME,"NAT Pool"}, +{VENDOR_ISSANNI_VSA_VRD,"Virtual Routing Domain"}, +{VENDOR_ISSANNI_VSA_TUNNEL_NAME,"Tunnel Name"}, +{VENDOR_ISSANNI_VSA_IP_POOL_NAME,"IP Pool Name"}, +{VENDOR_ISSANNI_VSA_PPPOE_URL,"PPPoE URL"}, +{VENDOR_ISSANNI_VSA_PPPOE_MOTM,"PPPoE MOTM"}, +{VENDOR_ISSANNI_VSA_SERVICE,"PPPoE Service"}, +{VENDOR_ISSANNI_VSA_PRI_DNS,"Primary DNS"}, +{VENDOR_ISSANNI_VSA_SEC_DNS,"Secondary DNS"}, +{VENDOR_ISSANNI_VSA_PRI_NBNS,"Primary NBNS"}, +{VENDOR_ISSANNI_VSA_SEC_NBNS,"Secondary NBNS"}, +{VENDOR_ISSANNI_VSA_TRAFFIC_CLASS,"Policing Traffic Class"}, +{VENDOR_ISSANNI_VSA_TUNNEL_TYPE,"Tunnel Type"}, +{VENDOR_ISSANNI_VSA_NAT_TYPE,"NAT Type"}, +{VENDOR_ISSANNI_VSA_QOS_CLASS,"QoS Traffic Class"}, +{VENDOR_ISSANNI_VSA_IFACE_NAME,"Interface Name"}, +{0,NULL}}; + static value_string radius_framed_protocol_vals[]= {{1, "PPP"}, {2, "SLIP"}, @@ -832,6 +872,45 @@ case ( VENDOR_COSINE_VSA_LNS_IP_ADDRESS ): sprintf(cont," Type:%s, Value:", rd_match_strval(vtype, radius_vendor_cosine_types)); + cont=&textbuffer[strlen(textbuffer)]; + ip_to_str_buf(tvb_get_ptr(tvb,offset+8,4),cont); + break; + default: + sprintf(cont," Unknown Value Type"); + break; + } + break; + case ( VENDOR_ISSANNI ): + vtype = tvb_get_guint8(tvb,offset+6); + switch (vtype) { + case ( VENDOR_ISSANNI_VSA_SOFTFLOW_TEMPLATE ): + case ( VENDOR_ISSANNI_VSA_NAT_POOL_NAME ): + case ( VENDOR_ISSANNI_VSA_VRD ): + case ( VENDOR_ISSANNI_VSA_TUNNEL_NAME ): + case ( VENDOR_ISSANNI_VSA_IP_POOL_NAME ): + case ( VENDOR_ISSANNI_VSA_PPPOE_URL ): + case ( VENDOR_ISSANNI_VSA_PPPOE_MOTM ): + case ( VENDOR_ISSANNI_VSA_SERVICE ): + case ( VENDOR_ISSANNI_VSA_TRAFFIC_CLASS ): + case ( VENDOR_ISSANNI_VSA_QOS_CLASS ): + case ( VENDOR_ISSANNI_VSA_IFACE_NAME ): + sprintf(cont," Type:%s, Value:", + rd_match_strval(vtype, radius_vendor_issanni_types)); + cont=&textbuffer[strlen(textbuffer)]; + rdconvertbufftostr(cont,tvb,offset+8,avph->avp_length-8); + break; + case ( VENDOR_ISSANNI_VSA_NAT_TYPE ): + case ( VENDOR_ISSANNI_VSA_TUNNEL_TYPE ): + sprintf(cont," Type:%s, Value:%u", + rd_match_strval(vtype, radius_vendor_issanni_types), + tvb_get_ntohl(tvb,offset+8)); + break; + case ( VENDOR_ISSANNI_VSA_PRI_DNS ): + case ( VENDOR_ISSANNI_VSA_SEC_DNS ): + case ( VENDOR_ISSANNI_VSA_PRI_NBNS ): + case ( VENDOR_ISSANNI_VSA_SEC_NBNS ): + sprintf(cont," Type:%s, Value:", + rd_match_strval(vtype, radius_vendor_issanni_types)); cont=&textbuffer[strlen(textbuffer)]; ip_to_str_buf(tvb_get_ptr(tvb,offset+8,4),cont); break;
- Follow-Ups:
- Re: [Ethereal-dev] Issanni Communications RADIUS VSAs
- From: Guy Harris
- Re: [Ethereal-dev] Issanni Communications RADIUS VSAs
- Prev by Date: Re: [Ethereal-dev] dcerpc and samr patches
- Next by Date: [Ethereal-dev] Building Ethereal for win32
- Previous by thread: Re: [Ethereal-dev] dcerpc and samr patches
- Next by thread: Re: [Ethereal-dev] Issanni Communications RADIUS VSAs
- Index(es):