oui.c revision 1.2.6.1 1 1.2 christos /*
2 1.1 christos * Redistribution and use in source and binary forms, with or without
3 1.1 christos * modification, are permitted provided that: (1) source code
4 1.1 christos * distributions retain the above copyright notice and this paragraph
5 1.1 christos * in its entirety, and (2) distributions including binary code include
6 1.1 christos * the above copyright notice and this paragraph in its entirety in
7 1.1 christos * the documentation or other materials provided with the distribution.
8 1.1 christos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
9 1.1 christos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
10 1.1 christos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11 1.1 christos * FOR A PARTICULAR PURPOSE.
12 1.1 christos *
13 1.1 christos * Original code by Hannes Gredler (hannes (at) juniper.net)
14 1.1 christos */
15 1.1 christos
16 1.2 christos #include <sys/cdefs.h>
17 1.1 christos #ifndef lint
18 1.2 christos #if 0
19 1.1 christos static const char rcsid[] _U_ =
20 1.2.6.1 yamt "@(#) Header: /tcpdump/master/tcpdump/oui.c,v 1.9 2008-01-09 09:40:47 hannes Exp (LBL)";
21 1.2 christos #else
22 1.2.6.1 yamt __RCSID("$NetBSD: oui.c,v 1.2.6.1 2014/05/22 15:51:20 yamt Exp $");
23 1.2 christos #endif
24 1.1 christos #endif
25 1.1 christos
26 1.1 christos #ifdef HAVE_CONFIG_H
27 1.1 christos #include "config.h"
28 1.1 christos #endif
29 1.1 christos
30 1.1 christos #include <tcpdump-stdinc.h>
31 1.1 christos #include "interface.h"
32 1.1 christos #include "oui.h"
33 1.1 christos
34 1.1 christos /* FIXME complete OUI list using a script */
35 1.1 christos
36 1.1 christos const struct tok oui_values[] = {
37 1.1 christos { OUI_ENCAP_ETHER, "Ethernet" },
38 1.1 christos { OUI_CISCO, "Cisco" },
39 1.1 christos { OUI_NORTEL, "Nortel Networks SONMP" },
40 1.1 christos { OUI_CISCO_90, "Cisco bridged" },
41 1.1 christos { OUI_RFC2684, "Ethernet bridged" },
42 1.1 christos { OUI_ATM_FORUM, "ATM Forum" },
43 1.1 christos { OUI_CABLE_BPDU, "DOCSIS Spanning Tree" },
44 1.1 christos { OUI_APPLETALK, "Appletalk" },
45 1.1 christos { OUI_JUNIPER, "Juniper" },
46 1.1 christos { OUI_HP, "Hewlett-Packard" },
47 1.1 christos { OUI_IEEE_8021_PRIVATE, "IEEE 802.1 Private"},
48 1.1 christos { OUI_IEEE_8023_PRIVATE, "IEEE 802.3 Private"},
49 1.1 christos { OUI_TIA, "ANSI/TIA"},
50 1.2.6.1 yamt { OUI_DCBX, "DCBX"},
51 1.1 christos { 0, NULL }
52 1.1 christos };
53 1.1 christos
54 1.1 christos /*
55 1.1 christos * SMI Network Management Private Enterprise Codes for organizations.
56 1.1 christos *
57 1.1 christos * XXX - these also appear in FreeRadius dictionary files, with items such
58 1.1 christos * as
59 1.1 christos *
60 1.1 christos * VENDOR Cisco 9
61 1.1 christos *
62 1.1 christos * List taken from Ethereal's epan/sminmpec.c.
63 1.1 christos */
64 1.1 christos const struct tok smi_values[] = {
65 1.1 christos { SMI_IETF, "IETF (reserved)"},
66 1.1 christos { SMI_ACC, "ACC"},
67 1.1 christos { SMI_CISCO, "Cisco"},
68 1.1 christos { SMI_HEWLETT_PACKARD, "Hewlett Packard"},
69 1.1 christos { SMI_SUN_MICROSYSTEMS, "Sun Microsystems"},
70 1.1 christos { SMI_MERIT, "Merit"},
71 1.1 christos { SMI_SHIVA, "Shiva"},
72 1.1 christos { SMI_ERICSSON, "Ericsson AB"},
73 1.1 christos { SMI_CISCO_VPN5000, "Cisco VPN 5000"},
74 1.1 christos { SMI_LIVINGSTON, "Livingston"},
75 1.1 christos { SMI_MICROSOFT, "Microsoft"},
76 1.1 christos { SMI_3COM, "3Com"},
77 1.1 christos { SMI_ASCEND, "Ascend"},
78 1.1 christos { SMI_BAY, "Bay Networks"},
79 1.1 christos { SMI_FOUNDRY, "Foundry"},
80 1.1 christos { SMI_VERSANET, "Versanet"},
81 1.1 christos { SMI_REDBACK, "Redback"},
82 1.1 christos { SMI_JUNIPER, "Juniper Networks"},
83 1.1 christos { SMI_APTIS, "Aptis"},
84 1.1 christos { SMI_CISCO_VPN3000, "Cisco VPN 3000"},
85 1.1 christos { SMI_COSINE, "CoSine Communications"},
86 1.1 christos { SMI_NETSCREEN, "Netscreen"},
87 1.1 christos { SMI_SHASTA, "Shasta"},
88 1.1 christos { SMI_NOMADIX, "Nomadix"},
89 1.1 christos { SMI_SIEMENS, "Siemens"},
90 1.1 christos { SMI_CABLELABS, "CableLabs"},
91 1.1 christos { SMI_UNISPHERE, "Unisphere Networks"},
92 1.1 christos { SMI_CISCO_BBSM, "Cisco BBSM"},
93 1.1 christos { SMI_THE3GPP2, "3rd Generation Partnership Project 2 (3GPP2)"},
94 1.1 christos { SMI_IP_UNPLUGGED, "ipUnplugged"},
95 1.1 christos { SMI_ISSANNI, "Issanni Communications"},
96 1.1 christos { SMI_QUINTUM, "Quintum"},
97 1.1 christos { SMI_INTERLINK, "Interlink"},
98 1.1 christos { SMI_COLUBRIS, "Colubris"},
99 1.1 christos { SMI_COLUMBIA_UNIVERSITY, "Columbia University"},
100 1.1 christos { SMI_THE3GPP, "3GPP"},
101 1.1 christos { SMI_GEMTEK_SYSTEMS, "Gemtek-Systems"},
102 1.1 christos { SMI_WIFI_ALLIANCE, "Wi-Fi Alliance"},
103 1.1 christos { 0, NULL}
104 1.1 christos };
105