Changeset a257602 for examples/protocol
- Timestamp:
- 07/22/04 16:57:31 (17 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:
- aa60a6b
- Parents:
- e9f521e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/protocol/protocol.c
rc837874 ra257602 90 90 int do_cksum = 0; 91 91 int do_w_cksum = 0; 92 uint64_t rxerr = 0; 92 93 static void usage(); 93 94 static void parse_cmdline(int argc, char **argv); … … 96 97 97 98 struct libtrace_ip *ipptr = 0; 99 dag_record_t *erfptr = 0; 98 100 99 int status; // need to pass to rtclient_read_packet101 int status; 100 102 int psize; 101 103 102 104 parse_cmdline(argc,argv); 103 105 104 // create an rtclient to hostname, on the default port105 106 trace = create_trace(uri); 106 107 if (filterstring) { … … 113 114 break; 114 115 } 116 erfptr = (dag_record_t *)buffer; 117 118 if (erfptr->flags.rxerror) { 119 rxerr ++; 120 continue; 121 } 115 122 if (filter) { 116 123 if (!libtrace_bpf_filter(trace, filter, buffer, 4096)) { … … 132 139 if (do_cksum || do_w_cksum) { 133 140 printf("Bad checksums seen: %llu\n",badchksum); 141 printf("RX Errors seen: %llu\n",rxerr); 134 142 } 135 143 destroy_trace(trace);
Note: See TracChangeset
for help on using the changeset viewer.