Home | History | Annotate | Line # | Download | only in dist
      1  1.1.1.3  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.1.6  christos  * Original code by Hannes Gredler (hannes (at) gredler.at)
     14      1.1  christos  */
     15      1.1  christos 
     16      1.1  christos extern const struct tok oui_values[];
     17      1.1  christos extern const struct tok smi_values[];
     18      1.1  christos 
     19  1.1.1.5       spz #define OUI_ENCAP_ETHER       0x000000  /* encapsulated Ethernet */
     20  1.1.1.5       spz #define OUI_CISCO             0x00000c  /* Cisco protocols */
     21  1.1.1.5       spz #define OUI_IANA              0x00005E  /* IANA */
     22  1.1.1.5       spz #define OUI_NORTEL            0x000081  /* Nortel SONMP */
     23  1.1.1.5       spz #define OUI_CISCO_90          0x0000f8  /* Cisco bridging */
     24  1.1.1.5       spz #define OUI_RFC2684           0x0080c2  /* RFC 2427/2684 bridged Ethernet */
     25  1.1.1.5       spz #define OUI_ATM_FORUM         0x00A03E  /* ATM Forum */
     26  1.1.1.5       spz #define OUI_CABLE_BPDU        0x00E02F  /* DOCSIS spanning tree BPDU */
     27  1.1.1.5       spz #define OUI_APPLETALK         0x080007  /* Appletalk */
     28  1.1.1.5       spz #define OUI_JUNIPER           0x009069  /* Juniper */
     29  1.1.1.5       spz #define OUI_HP                0x080009  /* Hewlett-Packard */
     30  1.1.1.5       spz #define OUI_IEEE_8021_PRIVATE 0x0080c2  /* IEEE 802.1 Organisation Specific - Annex F */
     31  1.1.1.5       spz #define OUI_IEEE_8023_PRIVATE 0x00120f  /* IEEE 802.3 Organisation Specific - Annex G */
     32  1.1.1.5       spz #define OUI_TIA               0x0012bb  /* TIA - Telecommunications Industry Association - ANSI/TIA-1057- 2006 */
     33  1.1.1.5       spz #define OUI_DCBX              0x001B21  /* DCBX */
     34  1.1.1.5       spz #define OUI_NICIRA            0x002320  /* Nicira Networks */
     35  1.1.1.5       spz #define OUI_BSN               0x5c16c7  /* Big Switch Networks */
     36  1.1.1.5       spz #define OUI_VELLO             0xb0d2f5  /* Vello Systems */
     37  1.1.1.5       spz #define OUI_HP2               0x002481  /* HP too */
     38  1.1.1.5       spz #define OUI_HPLABS            0x0004ea  /* HP-Labs */
     39  1.1.1.5       spz #define OUI_INFOBLOX          0x748771  /* Infoblox Inc */
     40  1.1.1.5       spz #define OUI_ONLAB             0xa42305  /* Open Networking Lab */
     41  1.1.1.5       spz #define OUI_FREESCALE         0x00049f  /* Freescale */
     42  1.1.1.5       spz #define OUI_NETRONOME         0x0015ad  /* Netronome */
     43  1.1.1.7  christos #define OUI_BROADCOM          0x001018  /* Broadcom */
     44  1.1.1.7  christos #define OUI_PMC_SIERRA        0x00e004  /* PMC-Sierra */
     45  1.1.1.7  christos #define OUI_ERICSSON          0xd0f0db  /* Ericsson */
     46      1.1  christos 
     47      1.1  christos /*
     48      1.1  christos  * These are SMI Network Management Private Enterprise Codes for
     49      1.1  christos  * organizations; see
     50      1.1  christos  *
     51  1.1.1.7  christos  *	https://www.iana.org/assignments/enterprise-numbers
     52      1.1  christos  *
     53      1.1  christos  * for a list.
     54      1.1  christos  *
     55      1.1  christos  * List taken from Ethereal's epan/sminmpec.h.
     56      1.1  christos  */
     57      1.1  christos #define SMI_IETF                     0 /* reserved - used by the IETF in L2TP? */
     58      1.1  christos #define SMI_ACC                      5
     59      1.1  christos #define SMI_CISCO                    9
     60      1.1  christos #define SMI_HEWLETT_PACKARD          11
     61      1.1  christos #define SMI_SUN_MICROSYSTEMS         42
     62      1.1  christos #define SMI_MERIT                    61
     63  1.1.1.7  christos #define SMI_AT_AND_T                 74
     64  1.1.1.7  christos #define SMI_MOTOROLA                 161
     65      1.1  christos #define SMI_SHIVA                    166
     66      1.1  christos #define SMI_ERICSSON                 193
     67      1.1  christos #define SMI_CISCO_VPN5000            255
     68      1.1  christos #define SMI_LIVINGSTON               307
     69      1.1  christos #define SMI_MICROSOFT                311
     70      1.1  christos #define SMI_3COM                     429
     71      1.1  christos #define SMI_ASCEND                   529
     72      1.1  christos #define SMI_BAY                      1584
     73      1.1  christos #define SMI_FOUNDRY                  1991
     74      1.1  christos #define SMI_VERSANET                 2180
     75      1.1  christos #define SMI_REDBACK                  2352
     76      1.1  christos #define SMI_JUNIPER                  2636
     77      1.1  christos #define SMI_APTIS                    2637
     78  1.1.1.7  christos #define SMI_DT_AG                    2937
     79  1.1.1.7  christos #define SMI_IXIA                     3054
     80      1.1  christos #define SMI_CISCO_VPN3000            3076
     81      1.1  christos #define SMI_COSINE                   3085
     82      1.1  christos #define SMI_SHASTA                   3199
     83      1.1  christos #define SMI_NETSCREEN                3224
     84      1.1  christos #define SMI_NOMADIX                  3309
     85  1.1.1.7  christos #define SMI_T_MOBILE                 3414
     86  1.1.1.7  christos #define SMI_BROADBAND_FORUM          3561
     87  1.1.1.7  christos #define SMI_ZTE                      3902
     88      1.1  christos #define SMI_SIEMENS                  4329
     89      1.1  christos #define SMI_CABLELABS                4491
     90      1.1  christos #define SMI_UNISPHERE                4874
     91      1.1  christos #define SMI_CISCO_BBSM               5263
     92      1.1  christos #define SMI_THE3GPP2                 5535
     93  1.1.1.7  christos #define SMI_SKT_TELECOM              5806
     94      1.1  christos #define SMI_IP_UNPLUGGED             5925
     95      1.1  christos #define SMI_ISSANNI                  5948
     96  1.1.1.7  christos #define SMI_NETSCALER                5951
     97  1.1.1.7  christos #define SMI_DE_TE_MOBIL              6490
     98      1.1  christos #define SMI_QUINTUM                  6618
     99      1.1  christos #define SMI_INTERLINK                6728
    100  1.1.1.7  christos #define SMI_CNCTC                    7951
    101  1.1.1.7  christos #define SMI_STARENT_NETWORKS         8164
    102      1.1  christos #define SMI_COLUBRIS                 8744
    103      1.1  christos #define SMI_THE3GPP                  10415
    104      1.1  christos #define SMI_GEMTEK_SYSTEMS           10529
    105  1.1.1.7  christos #define SMI_BARRACUDA                10704
    106  1.1.1.7  christos #define SMI_ERICSSON_PKT_CORE        10923
    107  1.1.1.7  christos #define SMI_DACOM                    11665
    108  1.1.1.7  christos #define SMI_COLUMBIA_UNIVERSITY      11862
    109  1.1.1.7  christos #define SMI_FORTINET                 12356
    110  1.1.1.7  christos #define SMI_VERIZON                  12951
    111  1.1.1.7  christos #define SMI_PLIXER                   13745
    112      1.1  christos #define SMI_WIFI_ALLIANCE            14122
    113  1.1.1.7  christos #define SMI_T_SYSTEMS_NOVA           16787
    114  1.1.1.7  christos #define SMI_CHINATELECOM_GUANZHOU    20942
    115  1.1.1.7  christos #define SMI_GIGAMON                  26866
    116  1.1.1.7  christos #define SMI_CACE                     32622
    117  1.1.1.7  christos /* Greater than 32,767 need to be tagged unsigned. */
    118  1.1.1.7  christos #define SMI_NTOP                     35632u
    119  1.1.1.7  christos #define SMI_ERICSSON_CANADA_INC      46098u
    120