Changeset 2409


Ignore:
Timestamp:
12/23/09 18:28:34 (7 months ago)
Author:
aturner
Message:

better error message. refs #411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/src/tcpedit/plugins/dlt_en10mb/en10mb.c

    r2105 r2409  
    344344 
    345345    assert(ctx); 
    346     assert(pktlen >= 14); 
    347346    assert(packet); 
     347 
     348    if (pktlen < 14) { 
     349        tcpedit_seterr(ctx->tcpedit,  
     350                "Unable to process packet #" COUNTER_SPEC " since it is less then 14 bytes.",  
     351                ctx->tcpedit->runtime.packetnum); 
     352        return TCPEDIT_ERROR; 
     353    } 
    348354 
    349355    plugin = tcpedit_dlt_getplugin(ctx, dlt_value); 
Note: See TracChangeset for help on using the changeset viewer.