2015-01-06 19:03:11 +00:00
|
|
|
/*
|
2004-03-31 09:17:26 +00:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that: (1) source code
|
|
|
|
* distributions retain the above copyright notice and this paragraph
|
|
|
|
* in its entirety, and (2) distributions including binary code include
|
|
|
|
* the above copyright notice and this paragraph in its entirety in
|
|
|
|
* the documentation or other materials provided with the distribution.
|
|
|
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND
|
|
|
|
* WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
|
|
|
|
* LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
* Original code by Hannes Gredler (hannes@juniper.net)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2017-01-31 19:17:06 +00:00
|
|
|
#include <netdissect-stdinc.h>
|
|
|
|
#include "netdissect.h"
|
2004-03-31 09:17:26 +00:00
|
|
|
#include "oui.h"
|
|
|
|
|
|
|
|
/* FIXME complete OUI list using a script */
|
|
|
|
|
2010-10-28 16:23:25 +00:00
|
|
|
const struct tok oui_values[] = {
|
2005-05-29 18:17:16 +00:00
|
|
|
{ OUI_ENCAP_ETHER, "Ethernet" },
|
|
|
|
{ OUI_CISCO, "Cisco" },
|
2017-01-31 19:17:06 +00:00
|
|
|
{ OUI_IANA, "IANA" },
|
2005-07-11 03:54:22 +00:00
|
|
|
{ OUI_NORTEL, "Nortel Networks SONMP" },
|
2005-05-29 18:17:16 +00:00
|
|
|
{ OUI_CISCO_90, "Cisco bridged" },
|
|
|
|
{ OUI_RFC2684, "Ethernet bridged" },
|
2005-07-11 03:54:22 +00:00
|
|
|
{ OUI_ATM_FORUM, "ATM Forum" },
|
|
|
|
{ OUI_CABLE_BPDU, "DOCSIS Spanning Tree" },
|
2005-05-29 18:17:16 +00:00
|
|
|
{ OUI_APPLETALK, "Appletalk" },
|
2005-07-11 03:54:22 +00:00
|
|
|
{ OUI_JUNIPER, "Juniper" },
|
|
|
|
{ OUI_HP, "Hewlett-Packard" },
|
2009-03-21 16:23:46 +00:00
|
|
|
{ OUI_IEEE_8021_PRIVATE, "IEEE 802.1 Private"},
|
|
|
|
{ OUI_IEEE_8023_PRIVATE, "IEEE 802.3 Private"},
|
|
|
|
{ OUI_TIA, "ANSI/TIA"},
|
2012-05-14 08:01:48 +00:00
|
|
|
{ OUI_DCBX, "DCBX"},
|
2015-07-06 02:16:08 +00:00
|
|
|
{ OUI_NICIRA, "Nicira Networks" },
|
|
|
|
{ OUI_BSN, "Big Switch Networks" },
|
|
|
|
{ OUI_VELLO, "Vello Systems" },
|
|
|
|
{ OUI_HP2, "HP" },
|
|
|
|
{ OUI_HPLABS, "HP-Labs" },
|
|
|
|
{ OUI_INFOBLOX, "Infoblox Inc" },
|
|
|
|
{ OUI_ONLAB, "Open Networking Lab" },
|
|
|
|
{ OUI_FREESCALE, "Freescale" },
|
|
|
|
{ OUI_NETRONOME, "Netronome" },
|
2005-07-11 03:54:22 +00:00
|
|
|
{ 0, NULL }
|
2004-03-31 09:17:26 +00:00
|
|
|
};
|
|
|
|
|
2005-07-11 03:54:22 +00:00
|
|
|
/*
|
|
|
|
* SMI Network Management Private Enterprise Codes for organizations.
|
|
|
|
*
|
|
|
|
* XXX - these also appear in FreeRadius dictionary files, with items such
|
|
|
|
* as
|
|
|
|
*
|
|
|
|
* VENDOR Cisco 9
|
|
|
|
*
|
|
|
|
* List taken from Ethereal's epan/sminmpec.c.
|
|
|
|
*/
|
2010-10-28 16:23:25 +00:00
|
|
|
const struct tok smi_values[] = {
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_IETF, "IETF (reserved)"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_ACC, "ACC"},
|
|
|
|
{ SMI_CISCO, "Cisco"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_HEWLETT_PACKARD, "Hewlett Packard"},
|
|
|
|
{ SMI_SUN_MICROSYSTEMS, "Sun Microsystems"},
|
|
|
|
{ SMI_MERIT, "Merit"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_SHIVA, "Shiva"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_ERICSSON, "Ericsson AB"},
|
|
|
|
{ SMI_CISCO_VPN5000, "Cisco VPN 5000"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_LIVINGSTON, "Livingston"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_MICROSOFT, "Microsoft"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_3COM, "3Com"},
|
|
|
|
{ SMI_ASCEND, "Ascend"},
|
|
|
|
{ SMI_BAY, "Bay Networks"},
|
|
|
|
{ SMI_FOUNDRY, "Foundry"},
|
|
|
|
{ SMI_VERSANET, "Versanet"},
|
|
|
|
{ SMI_REDBACK, "Redback"},
|
|
|
|
{ SMI_JUNIPER, "Juniper Networks"},
|
|
|
|
{ SMI_APTIS, "Aptis"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_CISCO_VPN3000, "Cisco VPN 3000"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_COSINE, "CoSine Communications"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_NETSCREEN, "Netscreen"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_SHASTA, "Shasta"},
|
|
|
|
{ SMI_NOMADIX, "Nomadix"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_SIEMENS, "Siemens"},
|
|
|
|
{ SMI_CABLELABS, "CableLabs"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_UNISPHERE, "Unisphere Networks"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_CISCO_BBSM, "Cisco BBSM"},
|
|
|
|
{ SMI_THE3GPP2, "3rd Generation Partnership Project 2 (3GPP2)"},
|
|
|
|
{ SMI_IP_UNPLUGGED, "ipUnplugged"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_ISSANNI, "Issanni Communications"},
|
|
|
|
{ SMI_QUINTUM, "Quintum"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_INTERLINK, "Interlink"},
|
2004-03-31 09:17:26 +00:00
|
|
|
{ SMI_COLUBRIS, "Colubris"},
|
|
|
|
{ SMI_COLUMBIA_UNIVERSITY, "Columbia University"},
|
|
|
|
{ SMI_THE3GPP, "3GPP"},
|
2005-07-11 03:54:22 +00:00
|
|
|
{ SMI_GEMTEK_SYSTEMS, "Gemtek-Systems"},
|
|
|
|
{ SMI_WIFI_ALLIANCE, "Wi-Fi Alliance"},
|
|
|
|
{ 0, NULL}
|
2004-03-31 09:17:26 +00:00
|
|
|
};
|