Ignore:
Timestamp:
05/04/06 14:54:59 (15 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:
48a20e3
Parents:
e5f1431
Message:

Updated various format modules to use libtrace_direction_t rather than int8_t
Changed MIN in fifo.c to be FIFO_MIN as this was very prone to conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r9a5b234 r431548c5  
    273273}
    274274
    275 static int8_t linuxnative_get_direction(const struct libtrace_packet_t *packet) {
     275static libtrace_direction_t linuxnative_get_direction(const struct libtrace_packet_t *packet) {
    276276        switch (((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_pkttype) {
    277277                case PACKET_OUTGOING:
    278                         return 0;
     278                        return TRACE_DIR_OUTGOING;
    279279                default:
    280                         return 1;
     280                        return TRACE_DIR_INCOMING;
    281281        }
    282282}
Note: See TracChangeset for help on using the changeset viewer.