Changeset 53f179f


Ignore:
Timestamp:
07/16/10 11:43:28 (10 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:
573ea8e
Parents:
d3320d1
Message:
  • Rather than asserting, print some sort of error and return NULL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r7fc0eaa2 r53f179f  
    398398{
    399399        void *l;
    400         assert(linktype != ~0U);
     400        if (linktype == ~0U) {
     401                fprintf(stderr, "Unable to determine linktype for packet\n");
     402                return NULL;
     403        }
     404       
    401405        switch(linktype) {
    402406                /* Packet Metadata headers, not layer2 headers */
Note: See TracChangeset for help on using the changeset viewer.