Changeset da34e20 for lib/format_rt.c


Ignore:
Timestamp:
05/12/06 17:07:59 (16 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:
cd7eec7
Parents:
83445f0
Message:

dag_read_packet now returns a DUCK packet occasionally in place of a regular packet - changing the DUCK frequency will *soon* be a config option
wag_start and wag_pause will now turn the radio on and off, respectively
Added DUCK structures to rt_protocol.h for use with RT_DUCK_* packets
Updated format_rt to deal with RT_DUCK properly
Removed erroneous free(packet->buffer) when packet is not under our control in format_pcap.
Added check for DAG 2.4 in configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    re6d963c rda34e20  
    539539static int rt_get_capture_length(const libtrace_packet_t *packet) {
    540540        switch (packet->type) {
    541                 case RT_DUCK:
    542                         return 0; /* FIXME */
     541                case RT_DUCK_2_4:
     542                        return sizeof(duck2_4_t);
     543                case RT_DUCK_2_5:
     544                        return sizeof(duck2_5_t);
    543545                case RT_STATUS:
    544546                        return sizeof(rt_status_t);
Note: See TracChangeset for help on using the changeset viewer.