Changeset 16da8f3 for lib/libtrace.h.in


Ignore:
Timestamp:
10/25/06 13:06:05 (15 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:
d5e1796
Parents:
01bc623
Message:

Add ATM support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r5696294 r16da8f3  
    431431} PACKED libtrace_8021q_t;
    432432
    433 /** ATM cell */
     433/** ATM User Network Interface (UNI) Cell. */
    434434typedef struct libtrace_atm_cell
    435435{
    436436  LT_BITFIELD32 gfc:4;          /**< Generic Flow Control */
    437437  LT_BITFIELD32 vpi:8;          /**< Virtual Path Identifier */
    438   LT_BITFIELD32 vci:8;          /**< Virtual Channel Identifier */
     438  LT_BITFIELD32 vci:16;         /**< Virtual Channel Identifier */
    439439  LT_BITFIELD32 pt:3;           /**< Payload Type */
    440440  LT_BITFIELD32 clp:1;          /**< Cell Loss Priority */
    441441  LT_BITFIELD32 hec:8;          /**< Header Error Control */
    442442} PACKED libtrace_atm_cell_t;
     443
     444/** ATM Network Node/Network Interface (NNI) Cell. */
     445typedef struct libtrace_atm_nni_cell
     446{
     447  LT_BITFIELD32 vpi:12;         /**< Virtual Path Identifier */
     448  LT_BITFIELD32 vci:16;         /**< Virtual Channel Identifier */
     449  LT_BITFIELD32 pt:3;           /**< Payload Type */
     450  LT_BITFIELD32 clp:1;          /**< Cell Loss Priority */
     451  LT_BITFIELD32 hec:8;          /**< Header Error Control */
     452} PACKED libtrace_atm_nni_cell_t;
     453
     454/** Captured UNI cell.
     455 *
     456 * Endance don't capture the HEC, presumably to keep alignment.  This
     457 * version of the \ref{libtrace_atm_cell} is used when dealing with dag
     458 * captures of uni cells.
     459 *
     460 */
     461typedef struct libtrace_atm_capture_cell
     462{
     463  LT_BITFIELD32 gfc:4;          /**< Generic Flow Control */
     464  LT_BITFIELD32 vpi:8;          /**< Virtual Path Identifier */
     465  LT_BITFIELD32 vci:16;         /**< Virtual Channel Identifier */
     466  LT_BITFIELD32 pt:3;           /**< Payload Type */
     467  LT_BITFIELD32 clp:1;          /**< Cell Loss Priority */
     468} PACKED libtrace_atm_capture_cell_t;
     469
     470/** Captured NNI cell.
     471 *
     472 * Endance don't capture the HEC, presumably to keep alignment.  This
     473 * version of the \ref{libtrace_atm_nni_cell} is used when dealing with dag
     474 * captures of nni cells.
     475 *
     476 */
     477typedef struct libtrace_atm_nni_capture_cell
     478{
     479  LT_BITFIELD32 vpi:12;         /**< Virtual Path Identifier */
     480  LT_BITFIELD32 vci:16;         /**< Virtual Channel Identifier */
     481  LT_BITFIELD32 pt:3;           /**< Payload Type */
     482  LT_BITFIELD32 clp:1;          /**< Cell Loss Priority */
     483  LT_BITFIELD32 hec:8;          /**< Header Error Control */
     484} PACKED libtrace_atm_nni_capture_cell_t;
    443485
    444486/** POS header */
Note: See TracChangeset for help on using the changeset viewer.