Changeset 5325ff0


Ignore:
Timestamp:
02/13/19 16:57:39 (20 months ago)
Author:
Jacob van Walraven <jacobvw@…>
Branches:
develop
Children:
e78e408
Parents:
b9af56e
Message:

Make sure we dont add the IP header to the layer2_headers structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r5e5b6ca r5325ff0  
    152152        while (remaining != 0 && ptr != NULL) {
    153153
     154                /* if the last ethertype was IP stop */
     155                if (ethertype == TRACE_ETHERTYPE_IP || ethertype == TRACE_ETHERTYPE_IPV6) {
     156                        break;
     157                }
     158
    154159                if (ethertype == TRACE_ETHERTYPE_LOOPBACK ||
    155160                        ethertype == TRACE_ETHERTYPE_IP ||
     
    216221                        r->header[r->num].ethertype = ethertype;
    217222                        r->header[r->num++].data = ptr;
    218                 }
    219 
    220                 /* if the last ethertype was IP stop */
    221                 if (ethertype == TRACE_ETHERTYPE_IP || ethertype == TRACE_ETHERTYPE_IPV6) {
    222                         break;
    223223                }
    224224
Note: See TracChangeset for help on using the changeset viewer.