Changeset cde66c3


Ignore:
Timestamp:
08/21/06 23:13:30 (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:
d923b5a
Parents:
1c1e4a2
Message:

Convert everything to TRACE_SLL_*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rc0cd256 rcde66c3  
    393393        promote_packet(packet);
    394394        sll=packet->payload;
     395        /* sll->pkttype should be in the endianness of the host that the
     396         * trace was taken on.  this is impossible to achieve
     397         * so we assume host endianness
     398         */
    395399        if(dir==TRACE_DIR_OUTGOING)
    396                 sll->pkttype=TRACE_DIR_OUTGOING;
     400                sll->pkttype=TRACE_SLL_OUTGOING;
    397401        else
    398                 sll->pkttype=TRACE_DIR_INCOMING;
    399         return sll->pkttype;
     402                sll->pkttype=TRACE_SLL_HOST;
     403        return dir;
    400404}
    401405
     
    424428                         * use "inbound" and "outbound" on ppp in linux
    425429                         */
    426                         if (ntohs(sll->pkttype == 0)) {
     430                        if (sll->pkttype == TRACE_SLL_OUTGOING) {
     431                                direction = TRACE_DIR_OUTGOING;
     432                        } else {
    427433                                direction = TRACE_DIR_INCOMING;
    428                         } else {
    429                                 direction = TRACE_DIR_OUTGOING;
    430434                        }
    431435                        break;
Note: See TracChangeset for help on using the changeset viewer.