Changeset bb75d10 for lib/protocols.c


Ignore:
Timestamp:
11/13/06 16:24:07 (14 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:
6d977c9
Parents:
ef8358e
Message:
  • Support Demoting PoS traces
  • Ignore the (incorrect) ethertype field of the legacypos: traces
  • Correctly calculate the wire length for some of the legacy trace types
  • Support pausing and restarting legacy traces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    rd5e1796 rbb75d10  
    211211}
    212212
    213 static void *trace_get_payload_from_pos(void *link,
     213void *trace_get_payload_from_pos(void *link,
    214214                uint16_t *type, uint32_t *remaining)
    215215{
     
    223223        }
    224224
    225         if (type) *type = ntohs(pos->ether_type);
     225        /* This is documented by endace to be an ethertype.  The ethertype
     226         * however is always ntohs(0x0021), which endace in their own tools
     227         * ignore and assume IP, so...
     228         */
     229        /*if (type) *type = ntohs(pos->ether_type); */
     230        if (type) *type = ntohs(0x0800);
    226231
    227232        return (void*)((char *)pos+sizeof(*pos));
Note: See TracChangeset for help on using the changeset viewer.