Changeset 4923d34 for lib/protocols.c


Ignore:
Timestamp:
05/01/06 22:03:22 (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:
c05dda6
Parents:
6842b35
Message:

Compare against 0x40 and 0x60 instead of 0x04 and 0x06 when checking IP version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r6842b35 r4923d34  
    173173                        return trace_get_payload_from_ethernet(link,type,remaining);
    174174                case TRACE_TYPE_NONE:
    175                         if (*(char*)link&0xF0 == 4)
     175                        if (*(char*)link&0xF0 == 0x40)
    176176                                *type=0x0800;
    177                         else if (*(char*)link&0xF0 == 6)
     177                        else if (*(char*)link&0xF0 == 0x60)
    178178                                *type=0x86DD;
    179179                        return link; /* I love the simplicity */
Note: See TracChangeset for help on using the changeset viewer.