Changeset d50e83b
- Timestamp:
- 06/23/06 13:17:08 (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:
- 33fead9
- Parents:
- 38ff7c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/test-decode.c
re7246a0 rd50e83b 48 48 #include "dagformat.h" 49 49 #include "libtrace.h" 50 #include "libpacketdump.h" 50 51 51 52 void iferr(libtrace_t *trace) … … 114 115 break; 115 116 } 116 117 117 118 if ((trace_get_tcp(packet)!=NULL) ^ (trace_apply_filter(filter_tcp,packet)>0)) { 118 119 error=1; 119 120 printf("tcp problem\n"); 121 if (trace_get_tcp(packet)) { 122 printf(" libtrace thinks this is a tcp packet\n"); 123 } 124 else { 125 printf(" libtrace doesn't think this is a tcp packet\n"); 126 } 127 if (trace_apply_filter(filter_tcp,packet)) { 128 printf(" bpf thinks this is a tcp packet\n"); 129 } 130 else { 131 printf(" bpf doesn't think this is a tcp packet\n"); 132 } 133 trace_dump_packet(packet); 120 134 break; 121 135 } … … 123 137 error=1; 124 138 printf("udp problem\n"); 139 trace_dump_packet(packet); 125 140 break; 126 141 } … … 128 143 error=1; 129 144 printf("icmp problem\n"); 145 trace_dump_packet(packet); 130 146 break; 131 147 }
Note: See TracChangeset
for help on using the changeset viewer.