Changeset 7787d72 for libpacketdump
- Timestamp:
- 08/18/06 17:26:13 (15 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:
- 09d3bef
- Parents:
- 404210e
- Location:
- libpacketdump
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/link_0.cc
r4e65f42 r7787d72 5 5 #include "libpacketdump.h" 6 6 7 extern "C"8 7 void decode(int link_type,char *packet,int len) 9 8 { -
libpacketdump/link_10.cc
r4e65f42 r7787d72 6 6 #include "libtrace.h" 7 7 8 extern "C"9 8 void decode(int link_type,char *packet,int len) 10 9 { … … 12 11 printf(" Legacy Framing:"); 13 12 if (len>=12) { 14 uint16_t type = htons(*(uint16_t*)(packet+sizeof(libtrace_atm_cell )+4));13 uint16_t type = htons(*(uint16_t*)(packet+sizeof(libtrace_atm_cell_t)+4)); 15 14 printf(" %04x\n",type); 16 decode_next(packet+sizeof(libtrace_atm_cell ) + 4,17 len-sizeof(libtrace_atm_cell ) -4,15 decode_next(packet+sizeof(libtrace_atm_cell_t) + 4, 16 len-sizeof(libtrace_atm_cell_t) -4, 18 17 "eth",type); 19 18 } -
libpacketdump/link_11.cc
r4e65f42 r7787d72 5 5 #include "libpacketdump.h" 6 6 7 extern "C"8 7 void decode(int link_type,char *packet,int len) 9 8 { -
libpacketdump/link_2.cc
r4e65f42 r7787d72 6 6 #include "libpacketdump.h" 7 7 8 extern "C"9 8 void decode(int link_type,char *packet,int len) 10 9 { -
libpacketdump/link_4.cc
rbd6869b r7787d72 32 32 }; 33 33 34 extern "C"35 34 void decode(int link_type,char *packet,int len) 36 35 { -
libpacketdump/link_6.cc
rddd01fb r7787d72 1 1 #include "libpacketdump.h" 2 2 3 extern "C"4 3 void decode(int link_type,char *packet,int len) 5 4 { -
libpacketdump/link_9.cc
r41f22e4 r7787d72 1 #include "libpacketdump.h" 2 #include "libtrace.h" 1 3 #include <netinet/in.h> 2 4 #include <stdio.h> 3 5 #include <inttypes.h> 4 6 #include <dlfcn.h> 5 #include "libpacketdump.h"6 7 7 extern "C"8 8 void decode(int link_type,char *packet,int len) 9 9 { … … 13 13 if (len>=4) { 14 14 uint16_t type = htons( 15 ((libtrace_pos *)packet)->ether_type);15 ((libtrace_pos_t *)packet)->ether_type); 16 16 printf(" %04x\n",type); 17 decode_next(packet+sizeof(libtrace_pos ),18 len-sizeof(libtrace_pos ),17 decode_next(packet+sizeof(libtrace_pos_t), 18 len-sizeof(libtrace_pos_t), 19 19 "eth",type); 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.