Changeset 38ff7c9


Ignore:
Timestamp:
06/23/06 13:16:26 (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:
d50e83b
Parents:
575c531
Message:

Decode 802.11 properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r873558d r38ff7c9  
    8989        eth=(libtrace_802_11_payload_t *)((char*)wifi+sizeof(*wifi));
    9090
    91         if (type) *type=eth->type;
    92 
    93         return eth;
     91        if (type) *type=ntohs(eth->type);
     92
     93        return (void*)((char*)eth+sizeof(*eth));
    9494}
    9595
Note: See TracChangeset for help on using the changeset viewer.