source: rtems-libbsd/freebsd/contrib/tcpdump/oui.c @ 084d4db

4.11
Last change on this file since 084d4db was 8440506, checked in by Chris Johns <chrisj@…>, on 06/15/15 at 07:42:23

Add tcpdump and libpcap.

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