Changeset ae8ec56 for lib/protocols_l2.c


Ignore:
Timestamp:
05/08/08 17:06:50 (13 years ago)
Author:
Shane Alcock <salcock@…>
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:
35782f6
Parents:
1f44884
Message:
  • Made trace_get_mpls_payload_from_ethernet_payload available via the API
  • Added assert to trace_get_vlan_payload_from_ethernet_payload so that its behaviour matches the documentation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r3ac4bf7 rae8ec56  
    3232                uint32_t *remaining)
    3333{
     34        assert(type != NULL);
    3435        if (*type == 0x8100) {
    3536                libtrace_8021q_t *vlanhdr = (libtrace_8021q_t *)ethernet;
     
    5758                uint16_t *type, uint32_t *remaining)
    5859{
     60        assert(type != NULL);
     61       
    5962        if (*type == 0x8847) {
    6063                if ((((char*)ethernet)[2]&0x01)==0) {
Note: See TracChangeset for help on using the changeset viewer.