Changeset 226c08b


Ignore:
Timestamp:
01/26/10 11:57:44 (11 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:
9dc77f3
Parents:
7fa118f
Message:

Create a new "NonData?" link type for things that aren't data at all

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    r8bc167a r226c08b  
    664664}
    665665
     666static libtrace_linktype_t rt_get_link_type(UNUSED const libtrace_packet_t *packet)
     667{
     668        return TRACE_TYPE_NONDATA;
     669}
     670
    666671static int rt_get_fd(const libtrace_t *trace) {
    667672        return ((struct rt_format_data_t *)trace->format_data)->input_fd;
     
    739744        NULL,                           /* fin_packet */
    740745        NULL,                           /* write_packet */
    741         NULL,                           /* get_link_type */
     746        rt_get_link_type,               /* get_link_type */
    742747        NULL,                           /* get_direction */
    743748        NULL,                           /* set_direction */
  • lib/libtrace.h.in

    r042f345 r226c08b  
    266266       TRACE_TYPE_LLCSNAP = 16,      /**< Raw LLC/SNAP */
    267267       TRACE_TYPE_PPP = 17,          /**< PPP frames */
    268        TRACE_TYPE_METADATA = 18         /**< WDCAP-style meta-data */
    269        
     268       TRACE_TYPE_METADATA = 18,        /**< WDCAP-style meta-data */
     269       TRACE_TYPE_NONDATA = 19          /**< Not a data packet */
    270270} libtrace_linktype_t;
    271271
Note: See TracChangeset for help on using the changeset viewer.