Changeset 27bd348 for lib


Ignore:
Timestamp:
09/05/07 11:28:00 (14 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:
1708aa8
Parents:
1008250
Message:

Fix bug in direction setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r1008250 r27bd348  
    342342        switch (((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_pkttype) {
    343343                case PACKET_OUTGOING:
    344                 case PACKET_LOOPBACK;
     344                case PACKET_LOOPBACK:
    345345                        return TRACE_DIR_OUTGOING;
    346346                default:
     
    358358                        return TRACE_DIR_OUTGOING;
    359359                case TRACE_DIR_INCOMING:
    360                         ((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_pkttype = PACKET_INCOMING;
     360                        ((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_pkttype = PACKET_HOST;
    361361                        return TRACE_DIR_INCOMING;
    362362                default:
Note: See TracChangeset for help on using the changeset viewer.