Changeset 02b7297 for lib/format_duck.c


Ignore:
Timestamp:
05/25/06 15:18:11 (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:
609886c
Parents:
77a38d9
Message:

Add new DUCK link type (for duck packets obviously).
Make get_payload_from_link on a duck packet return "NULL" (no payload)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_duck.c

    rcd7eec7 r02b7297  
    246246static int duck_get_wire_length(const libtrace_packet_t *packet) {
    247247        return 0;
     248}
     249
     250static int duck_get_link_type(const libtrace_packet_t *packet) {
     251        return TRACE_TYPE_DUCK;
    248252}
    249253
     
    273277        NULL,                           /* fin_packet */
    274278        duck_write_packet,              /* write_packet */
    275         NULL,                           /* get_link_type */
     279        duck_get_link_type,             /* get_link_type */
    276280        NULL,                           /* get_direction */
    277281        NULL,                           /* set_direction */
Note: See TracChangeset for help on using the changeset viewer.