Changeset c042b5c


Ignore:
Timestamp:
05/01/06 20:37:49 (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:
8c747709
Parents:
51c83a4
Message:

Screwed up byte ordering ment that we couldn't capture any traffic on
linux int: interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r51c83a4 rc042b5c  
    258258
    259259static libtrace_linktype_t linuxnative_get_link_type(const struct libtrace_packet_t *packet) {
    260         int linktype=htons((((struct libtrace_linuxnative_header*)(packet->buffer))
    261                                 ->hdr.sll_hatype));
     260        int linktype=(((struct libtrace_linuxnative_header*)(packet->buffer))
     261                                ->hdr.sll_hatype);
    262262        switch (linktype) {
    263263                case ARPHRD_ETHER:
Note: See TracChangeset for help on using the changeset viewer.