Changeset 1b0fb63


Ignore:
Timestamp:
11/27/08 17:33:40 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
1311310
Parents:
f20d66c
Message:

Add IPPROTO and ETHERTYPE enums for libtrace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r9b25f5f r1b0fb63  
    327327} libtrace_rt_types_t;
    328328
     329/** IP Protocol values */
     330typedef enum {
     331        TRACE_IPPROTO_IP        = 0,    /**< IP pseudo protocol number */
     332        TRACE_IPPROTO_ICMP      = 1,    /**< Internet Control Message protocol */
     333        TRACE_IPPROTO_IGMP      = 2,    /**< Internet Group Management Protocol */
     334        TRACE_IPPROTO_IPIP      = 4,    /**< IP encapsulated in IP */
     335        TRACE_IPPROTO_TCP       = 6,    /**< Transmission Controll Protocol */
     336        TRACE_IPPROTO_UDP       = 17,   /**< User Datagram Protocol */
     337        TRACE_IPPROTO_IPV6      = 41,   /**< IPv6 over IPv4 */
     338        TRACE_IPPROTO_ROUTING   = 43,   /**< IPv6 routing header */
     339        TRACE_IPPROTO_FRAGMENT  = 44,   /**< IPv6 Fragmentation header */
     340        TRACE_IPPROTO_RSVP      = 46,   /**< Resource Reservation Protocol */
     341        TRACE_IPPROTO_GRE       = 47,   /**< General Routing Encapsulation */
     342        TRACE_IPPROTO_ESP       = 50,   /**< Encapsulated Security Payload [RFC2406] */
     343        TRACE_IPPROTO_AH        = 51,   /**< Autehtnication Header [RFC2402 */
     344        TRACE_IPPROTO_ICMPV6    = 58,   /**< ICMPv6 */
     345        TRACE_IPPROTO_NONE      = 59,   /**< IPv6 no next header */
     346        TRACE_IPPROTO_DSTOPTS   = 60,   /**< IPv6 destination options */
     347        TRACE_IPPROTO_PIM       = 103,  /**< Protocol Independant Multicast */
     348        TRACE_IPPROTO_SCTP      = 132   /**< Stream Control Transmission Protocol */
     349} libtrace_ipproto_t;
     350
     351/** Ethertypes */
     352typedef enum {
     353        /* Numbers <=1500 are of course, LLC/SNAP */
     354        TRACE_ETHERTYPE_IP      = 0x0800,       /**< IPv4 */
     355        TRACE_ETHERTYPE_ARP     = 0x0806,       /**< Address resolution protocol */
     356        TRACE_ETHERTYPE_RARP    = 0x8035,       /**< Reverse ARP */
     357        TRACE_ETHERTYPE_8021Q   = 0x8100,       /**< 802.1q VLAN Extended Header */
     358        TRACE_ETHERTYPE_IPV6    = 0x86DD,       /**< IPv6 */
     359        TRACE_ETHERTYPE_MPLS    = 0x8847,       /**< MPLS Unicast traffic */
     360        TRACE_ETHERTYPE_MPLS_MC = 0x8848,       /**< MPLS Multicast traffic */
     361        TRACE_ETHERTYPE_PPP_DISC = 0x8863,      /**< PPPoE Service Discovery */
     362        TRACE_ETHERTYPE_PPP_SES = 0x8864        /**< PPPoE Session Messages */
     363} libtrace_ethertype_t;
     364
    329365/** The libtrace packet structure, applications shouldn't be
    330366 * meddling around in here
Note: See TracChangeset for help on using the changeset viewer.