Changeset 881


Ignore:
Timestamp:
06/23/06 13:16:26 (7 years ago)
Author:
perry
Message:

Decode 802.11 properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/protocols.c

    r879 r881  
    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.