Changeset 2193905 for lib/protocols_l2.c


Ignore:
Timestamp:
11/29/18 10:12:59 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
fdf23b8
Parents:
d74ca03
Message:

Apply changes required for pull request #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r25a3255 r2193905  
    2727#include "libtrace.h"
    2828#include "protocols.h"
    29 #include <assert.h>
    3029#include <stdlib.h>
    3130#include <string.h>
     
    196195                uint32_t *remaining) {
    197196        /* Ensure supplied type is not NULL */
    198         /*assert(type);*/
    199197        if (!type) {
    200198                fprintf(stderr, "NULL type passed into trace_get_payload_from_mpls()\n");
     
    332330                uint32_t *remaining) {
    333331        /* Ensure type supplied is not NULL */
    334         /*assert(type);*/
    335332        if (!type) {
    336333                fprintf(stderr, "NULL type passed into trace_get_payload_from_pppoe()\n");
     
    447444        void *meta = NULL;
    448445
    449         /*assert(packet != NULL);*/
    450446        if (!packet) {
    451447                fprintf(stderr, "NULL packet passed into trace_get_layer2()\n");
    452448                return NULL;
    453449        }
    454         /*assert(linktype != NULL);*/
    455450        if (!linktype) {
    456451                fprintf(stderr, "NULL linktype passed into trace_get_layer2()\n");
     
    727722                case TRACE_TYPE_80211_RADIO:
    728723                case TRACE_TYPE_ETSILI:
    729                         /*assert(!"Metadata headers should already be skipped");*/
    730724                        fprintf(stderr, "Metadata headers should already be skipped in trace_get_source_mac()\n");
    731725                        return NULL;
    732726        }
    733727        fprintf(stderr,"%s not implemented for linktype %i\n", __func__, linktype);
    734         /*assert(0);*/
    735728        return NULL;
    736729}
     
    785778                case TRACE_TYPE_80211_RADIO:
    786779                case TRACE_TYPE_ETSILI:
    787                         /*assert(!"Metadata headers should already be skipped");*/
    788780                        fprintf(stderr, "Metadata headers should already be skipped in trace_get_destination_mac()\n");
    789781                        return NULL;
    790782        }
    791783        fprintf(stderr,"Not implemented\n");
    792         /*assert(0);*/
    793784        return NULL;
    794785}
Note: See TracChangeset for help on using the changeset viewer.