154359Sroberto/* 254359Sroberto * Redistribution and use in source and binary forms, with or without 354359Sroberto * modification, are permitted provided that: (1) source code 454359Sroberto * distributions retain the above copyright notice and this paragraph 554359Sroberto * in its entirety, and (2) distributions including binary code include 654359Sroberto * the above copyright notice and this paragraph in its entirety in 754359Sroberto * the documentation or other materials provided with the distribution. 854359Sroberto * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 954359Sroberto * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 1054359Sroberto * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1154359Sroberto * FOR A PARTICULAR PURPOSE. 1254359Sroberto * 1354359Sroberto * Original code by Hannes Gredler (hannes@juniper.net) 1454359Sroberto */ 1554359Sroberto 1654359Sroberto#ifndef lint 1754359Srobertostatic const char rcsid[] _U_ = 1854359Sroberto "@(#) $Header: /tcpdump/master/tcpdump/oui.c,v 1.9 2008-01-09 09:40:47 hannes Exp $ (LBL)"; 1954359Sroberto#endif 2054359Sroberto 2154359Sroberto#ifdef HAVE_CONFIG_H 2254359Sroberto#include "config.h" 2354359Sroberto#endif 2454359Sroberto 2554359Sroberto#include <tcpdump-stdinc.h> 2654359Sroberto#include "interface.h" 2754359Sroberto#include "oui.h" 2854359Sroberto 2954359Sroberto/* FIXME complete OUI list using a script */ 3054359Sroberto 3154359Srobertoconst struct tok oui_values[] = { 3254359Sroberto { OUI_ENCAP_ETHER, "Ethernet" }, 3354359Sroberto { OUI_CISCO, "Cisco" }, 3454359Sroberto { OUI_NORTEL, "Nortel Networks SONMP" }, 3554359Sroberto { OUI_CISCO_90, "Cisco bridged" }, 3654359Sroberto { OUI_RFC2684, "Ethernet bridged" }, 3754359Sroberto { OUI_ATM_FORUM, "ATM Forum" }, 3854359Sroberto { OUI_CABLE_BPDU, "DOCSIS Spanning Tree" }, 3954359Sroberto { OUI_APPLETALK, "Appletalk" }, 4054359Sroberto { OUI_JUNIPER, "Juniper" }, 4154359Sroberto { OUI_HP, "Hewlett-Packard" }, 4254359Sroberto { OUI_IEEE_8021_PRIVATE, "IEEE 802.1 Private"}, 4354359Sroberto { OUI_IEEE_8023_PRIVATE, "IEEE 802.3 Private"}, 4454359Sroberto { OUI_TIA, "ANSI/TIA"}, 4554359Sroberto { OUI_DCBX, "DCBX"}, 4654359Sroberto { 0, NULL } 4754359Sroberto}; 4854359Sroberto 4954359Sroberto/* 5054359Sroberto * SMI Network Management Private Enterprise Codes for organizations. 5154359Sroberto * 5254359Sroberto * XXX - these also appear in FreeRadius dictionary files, with items such 5354359Sroberto * as 5454359Sroberto * 5554359Sroberto * VENDOR Cisco 9 5654359Sroberto * 5754359Sroberto * List taken from Ethereal's epan/sminmpec.c. 5854359Sroberto */ 5954359Srobertoconst struct tok smi_values[] = { 6054359Sroberto { SMI_IETF, "IETF (reserved)"}, 6154359Sroberto { SMI_ACC, "ACC"}, 6254359Sroberto { SMI_CISCO, "Cisco"}, 6354359Sroberto { SMI_HEWLETT_PACKARD, "Hewlett Packard"}, 6454359Sroberto { SMI_SUN_MICROSYSTEMS, "Sun Microsystems"}, 6554359Sroberto { SMI_MERIT, "Merit"}, 6654359Sroberto { SMI_SHIVA, "Shiva"}, 6754359Sroberto { SMI_ERICSSON, "Ericsson AB"}, 6854359Sroberto { SMI_CISCO_VPN5000, "Cisco VPN 5000"}, 6954359Sroberto { SMI_LIVINGSTON, "Livingston"}, 7054359Sroberto { SMI_MICROSOFT, "Microsoft"}, 7154359Sroberto { SMI_3COM, "3Com"}, 7254359Sroberto { SMI_ASCEND, "Ascend"}, 7354359Sroberto { SMI_BAY, "Bay Networks"}, 7454359Sroberto { SMI_FOUNDRY, "Foundry"}, 7554359Sroberto { SMI_VERSANET, "Versanet"}, 7654359Sroberto { SMI_REDBACK, "Redback"}, 7754359Sroberto { SMI_JUNIPER, "Juniper Networks"}, 7854359Sroberto { SMI_APTIS, "Aptis"}, 7954359Sroberto { SMI_CISCO_VPN3000, "Cisco VPN 3000"}, 8054359Sroberto { SMI_COSINE, "CoSine Communications"}, 8154359Sroberto { SMI_NETSCREEN, "Netscreen"}, 8254359Sroberto { SMI_SHASTA, "Shasta"}, 8354359Sroberto { SMI_NOMADIX, "Nomadix"}, 8454359Sroberto { SMI_SIEMENS, "Siemens"}, 8554359Sroberto { SMI_CABLELABS, "CableLabs"}, 8654359Sroberto { SMI_UNISPHERE, "Unisphere Networks"}, 8754359Sroberto { SMI_CISCO_BBSM, "Cisco BBSM"}, 8854359Sroberto { SMI_THE3GPP2, "3rd Generation Partnership Project 2 (3GPP2)"}, 8954359Sroberto { SMI_IP_UNPLUGGED, "ipUnplugged"}, 9054359Sroberto { SMI_ISSANNI, "Issanni Communications"}, 9154359Sroberto { SMI_QUINTUM, "Quintum"}, 9254359Sroberto { SMI_INTERLINK, "Interlink"}, 9354359Sroberto { SMI_COLUBRIS, "Colubris"}, 9454359Sroberto { SMI_COLUMBIA_UNIVERSITY, "Columbia University"}, 9554359Sroberto { SMI_THE3GPP, "3GPP"}, 9654359Sroberto { SMI_GEMTEK_SYSTEMS, "Gemtek-Systems"}, 9754359Sroberto { SMI_WIFI_ALLIANCE, "Wi-Fi Alliance"}, 9854359Sroberto { 0, NULL} 9954359Sroberto}; 10054359Sroberto