ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] packet-radius.c add netscreen vendor

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

Date: Tue, 15 Mar 2005 12:48:34 +0100
I checked in this one with 13650 and it's included in 0.10.10.

On Tue, 15 Mar 2005 12:28:05 +0100, Florian Lohoff <flo@xxxxxxxxxx> wrote:
> 
> Hi,
> it seems this mail did not get through - Try #2
> 
> Add Netscreen vendor specific attributes.
> 
> Index: epan/sminmpec.c
> ===================================================================
> --- epan/sminmpec.c     (revision 13646)
> +++ epan/sminmpec.c     (working copy)
> @@ -61,6 +61,7 @@
>    {VENDOR_APTIS,               "Aptis"},
>    {VENDOR_CISCO_VPN3000,       "Cisco VPN 3000"},
>    {VENDOR_COSINE,              "CoSine Communications"},
> +  {VENDOR_NETSCREEN,           "Netscreen"},
>    {VENDOR_SHASTA,              "Shasta"},
>    {VENDOR_NOMADIX,             "Nomadix"},
>    {VENDOR_SIEMENS,             "SIEMENS"},
> Index: epan/sminmpec.h
> ===================================================================
> --- epan/sminmpec.h     (revision 13646)
> +++ epan/sminmpec.h     (working copy)
> @@ -55,6 +55,7 @@
>  #define VENDOR_CISCO_VPN3000           3076
>  #define VENDOR_COSINE                  3085
>  #define VENDOR_SHASTA                  3199
> +#define VENDOR_NETSCREEN               3224
>  #define VENDOR_NOMADIX                 3309
>  #define VENDOR_SIEMENS                 4329
>  #define VENDOR_CABLELABS               4491
> Index: epan/dissectors/packet-radius.c
> ===================================================================
> --- epan/dissectors/packet-radius.c     (revision 13646)
> +++ epan/dissectors/packet-radius.c     (working copy)
> @@ -3320,6 +3320,26 @@
>     {0, 0, NULL, NULL, NULL},
>  };
> 
> +static const value_string netscreen_admin_priv_vals[] = {
> +  {1,  "Root Admin"},
> +  {2,  "All VSys Root Admin"},
> +  {3,  "VSys Admin"},
> +  {4,  "Read-Only Admin"},
> +  {5,  "Read-Only VSys Admin"},
> +  {0, NULL}
> +};
> +
> +static const radius_attr_info radius_vendor_netscreen_attrib[] = {
> +   {1,         RADIUS_INTEGER4,                "Admin Privilege", netscreen_admin_priv_vals, NULL},
> +   {2,         RADIUS_STRING,                  "VSys Name", NULL, NULL},
> +   {3,         RADIUS_STRING,                  "User Group", NULL, NULL},
> +   {4,         RADIUS_IP_ADDRESS,              "Primary-DNS", NULL, NULL},
> +   {5,         RADIUS_IP_ADDRESS,              "Secondary-DNS", NULL, NULL},
> +   {6,         RADIUS_IP_ADDRESS,              "Primary-WINS", NULL, NULL},
> +   {7,         RADIUS_IP_ADDRESS,              "Secondary-WINS", NULL, NULL},
> +   {0, 0, NULL, NULL, NULL},
> +};
> +
>  static const radius_attr_info radius_vendor_gemtek_systems_attrib[] =
>  {
>     {21, RADIUS_INTEGER4,       "Acct-Session-Input-Octets", NULL, NULL},
> @@ -3376,7 +3396,8 @@
>    {VENDOR_THE3GPP,             radius_vendor_3gpp_attrib},
>    {VENDOR_GEMTEK_SYSTEMS,      radius_vendor_gemtek_systems_attrib},
>    {VENDOR_WIFI_ALLIANCE,       radius_vendor_wifi_alliance_attrib},
> -  {VENDOR_THE3GPP2,                     radius_vendor_3gpp2_attrib},
> +  {VENDOR_THE3GPP2,            radius_vendor_3gpp2_attrib},
> +  {VENDOR_NETSCREEN,           radius_vendor_netscreen_attrib},
>    {0, NULL},
>  };
> 
> --
> Florian Lohoff                  flo@xxxxxxxxxx             +49-171-2280134
>                         Heisenberg may have been here.
> 
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
> 
> 
> 
> 


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan