Changeset 873558d for lib


Ignore:
Timestamp:
06/23/06 12:02:36 (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:
575c531
Parents:
45dfddc
Message:

Fix latent bugs with protocol decodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r77b3217 r873558d  
    8787                return NULL;
    8888
    89         eth=(libtrace_802_11_payload_t *)((char*)wifi+sizeof(*eth));
    90 
    91         if (*type) *type=eth->type;
     89        eth=(libtrace_802_11_payload_t *)((char*)wifi+sizeof(*wifi));
     90
     91        if (type) *type=eth->type;
    9292
    9393        return eth;
     
    141141        llc = (libtrace_llcsnap_t*)((char *)llc + 4);
    142142
    143         if (*type) *type = ntohs(llc->type);
     143        if (type) *type = ntohs(llc->type);
    144144
    145145        return (void*)((char*)llc+sizeof(*llc));
Note: See TracChangeset for help on using the changeset viewer.