Changeset f440dc0


Ignore:
Timestamp:
03/14/12 14:59:44 (9 years ago)
Author:
Shane Alcock <salcock@…>
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:
bd37451
Parents:
1d4db58
Message:
  • Moved SLL header definitions from libtrace_int.h into libtrace.h
Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    re90d5a8 rf440dc0  
    946946} libtrace_ospf_ls_types_t;
    947947
     948/** A local definition of an SLL header */
     949typedef struct libtrace_sll_header_t {
     950        uint16_t pkttype;               /**< Packet type */
     951        uint16_t hatype;                /**< Link-layer address type */
     952        uint16_t halen;                 /**< Link-layer address length */
     953        unsigned char addr[8];          /**< Link-layer address */
     954        uint16_t protocol;              /**< Protocol */
     955} libtrace_sll_header_t;
     956
     957
     958/* SLL packet types */
     959
     960/** Packet was addressed for the local host */
     961#define TRACE_SLL_HOST          0
     962/** Packet was addressed for a broadcast address */
     963#define TRACE_SLL_BROADCAST     1
     964/** Packet was addressed for a multicast address */
     965#define TRACE_SLL_MULTICAST     2
     966/** Packet was addressed for another host but was captured by a promiscuous
     967 * device */
     968#define TRACE_SLL_OTHERHOST     3
     969/** Packet originated from the local host */
     970#define TRACE_SLL_OUTGOING      4
     971
    948972
    949973#ifdef WIN32
  • lib/libtrace_int.h

    rc0506ea rf440dc0  
    277277};
    278278
    279 /** A local definition of an SLL header */
    280 typedef struct libtrace_sll_header_t {
    281         uint16_t pkttype;               /**< Packet type */
    282         uint16_t hatype;                /**< Link-layer address type */
    283         uint16_t halen;                 /**< Link-layer address length */
    284         unsigned char addr[8];          /**< Link-layer address */
    285         uint16_t protocol;              /**< Protocol */
    286 } libtrace_sll_header_t;
    287 
    288 
    289 /* SLL packet types */
    290 
    291 /** Packet was addressed for the local host */
    292 #define TRACE_SLL_HOST          0
    293 /** Packet was addressed for a broadcast address */
    294 #define TRACE_SLL_BROADCAST     1
    295 /** Packet was addressed for a multicast address */
    296 #define TRACE_SLL_MULTICAST     2
    297 /** Packet was addressed for another host but was captured by a promiscuous
    298  * device */
    299 #define TRACE_SLL_OTHERHOST     3
    300 /** Packet originated from the local host */
    301 #define TRACE_SLL_OUTGOING      4
    302279
    303280#ifndef PF_RULESET_NAME_SIZE
Note: See TracChangeset for help on using the changeset viewer.