Changeset 763


Ignore:
Timestamp:
05/01/06 20:37:49 (7 years ago)
Author:
perry
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_linux.c

    r762 r763  
    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.