Changeset 871281c
- Timestamp:
- 11/14/08 15:47:59 (14 years ago)
- 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:
- 9b25f5f
- Parents:
- 896ad39
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols_l2.c
r29c8666 r871281c 4 4 #include "libtrace_int.h" 5 5 #include <assert.h> 6 #include <stdlib.h> 6 7 7 8 /* Returns the payload from 802.3 ethernet. Type optionally returned in … … 314 315 { 315 316 void *l; 316 assert(linktype != -1);317 assert(linktype != ~0U); 317 318 switch(linktype) { 318 319 /* Packet Metadata headers, not layer2 headers */ -
lib/protocols_l3.c
raa22b5b r871281c 3 3 #include "protocols.h" 4 4 #include <assert.h> 5 #include <stdlib.h> 5 6 6 7 libtrace_ip_t *trace_get_ip(libtrace_packet_t *packet) -
lib/protocols_transport.c
raa22b5b r871281c 2 2 #include "protocols.h" 3 3 #include <assert.h> 4 #include <stdlib.h> 5 #include <stdio.h> // fprintf 4 6 5 7 DLLEXPORT void *trace_get_transport(const libtrace_packet_t *packet, … … 37 39 38 40 default: 39 printf("unknown ethertype=%04x\n",ethertype);41 fprintf(stderr,"unknown ethertype=%04x\n",ethertype); 40 42 *proto=0; 41 43 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.