Changeset e347715 for lib/protocols.c


Ignore:
Timestamp:
05/01/06 21:19:07 (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:
6842b35
Parents:
8c747709
Message:

Remember to update the type field for TRACE_TYPE_NONE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r088533a re347715  
    173173                        return trace_get_payload_from_ethernet(link,type,remaining);
    174174                case TRACE_TYPE_NONE:
     175                        if (*link&0xF0 == 4)
     176                                *type=0x0800;
     177                        else if (*link&0xF0 == 6)
     178                                *type=0x86DD;
    175179                        return link; /* I love the simplicity */
    176180                case TRACE_TYPE_LINUX_SLL:
Note: See TracChangeset for help on using the changeset viewer.