Changeset 2193905 for lib/protocols_l2.c
- Timestamp:
- 11/29/18 10:12:59 (2 years ago)
- Branches:
- develop
- Children:
- fdf23b8
- Parents:
- d74ca03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols_l2.c
r25a3255 r2193905 27 27 #include "libtrace.h" 28 28 #include "protocols.h" 29 #include <assert.h>30 29 #include <stdlib.h> 31 30 #include <string.h> … … 196 195 uint32_t *remaining) { 197 196 /* Ensure supplied type is not NULL */ 198 /*assert(type);*/199 197 if (!type) { 200 198 fprintf(stderr, "NULL type passed into trace_get_payload_from_mpls()\n"); … … 332 330 uint32_t *remaining) { 333 331 /* Ensure type supplied is not NULL */ 334 /*assert(type);*/335 332 if (!type) { 336 333 fprintf(stderr, "NULL type passed into trace_get_payload_from_pppoe()\n"); … … 447 444 void *meta = NULL; 448 445 449 /*assert(packet != NULL);*/450 446 if (!packet) { 451 447 fprintf(stderr, "NULL packet passed into trace_get_layer2()\n"); 452 448 return NULL; 453 449 } 454 /*assert(linktype != NULL);*/455 450 if (!linktype) { 456 451 fprintf(stderr, "NULL linktype passed into trace_get_layer2()\n"); … … 727 722 case TRACE_TYPE_80211_RADIO: 728 723 case TRACE_TYPE_ETSILI: 729 /*assert(!"Metadata headers should already be skipped");*/730 724 fprintf(stderr, "Metadata headers should already be skipped in trace_get_source_mac()\n"); 731 725 return NULL; 732 726 } 733 727 fprintf(stderr,"%s not implemented for linktype %i\n", __func__, linktype); 734 /*assert(0);*/735 728 return NULL; 736 729 } … … 785 778 case TRACE_TYPE_80211_RADIO: 786 779 case TRACE_TYPE_ETSILI: 787 /*assert(!"Metadata headers should already be skipped");*/788 780 fprintf(stderr, "Metadata headers should already be skipped in trace_get_destination_mac()\n"); 789 781 return NULL; 790 782 } 791 783 fprintf(stderr,"Not implemented\n"); 792 /*assert(0);*/793 784 return NULL; 794 785 }
Note: See TracChangeset
for help on using the changeset viewer.