Changeset d8642f4 for lib/trace.c
- Timestamp:
- 11/11/04 17:02:04 (18 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:
- 35902e3
- Parents:
- 3ee7864
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
ra48d246 rd8642f4 176 176 } else if (!strncasecmp(scan,"pcap",4)) { 177 177 (*libtrace)->format=PCAP; 178 } else if (!strncasecmp(scan,"dag",3)) { 178 #ifdef DAGDEVICE 179 } else if (!strncasecmp(scan,"dag",3)) { 179 180 (*libtrace)->format=DAG; 181 #else 182 } else if (!strncasecmp(scan,"dag",3)) { 183 fprintf(stderr,"This version of libtrace has been compiled without DAG support\n"); 184 return 0; 185 #endif 180 186 } else if (!strncasecmp(scan,"rtclient",7)) { 181 187 (*libtrace)->format=RTCLIENT; … … 235 241 break; 236 242 case DAG: 243 #ifdef DAGDEVICE 237 244 /* 238 245 * Can have uridata of the following format: … … 250 257 } 251 258 (*libtrace)->conn_info.path = strdup(uridata); 252 259 #endif 253 260 break; 254 261 … … 484 491 case DEVICE: 485 492 switch(libtrace->format) { 493 #ifdef DAGDEVICE 486 494 case DAG: 487 495 … … 498 506 499 507 break; 508 #endif 500 509 default: 501 510 if ((numbytes=read(libtrace->input.fd, … … 595 604 } 596 605 606 #ifdef DAGDEVICE 597 607 if (libtrace->format == DAG) { 598 608 if (libtrace->dag.diff == 0) { … … 620 630 //assert(libtrace->dag.offset <= libtrace->dag.top); 621 631 return (size); 622 623 } 632 633 } 634 #endif 624 635 do { 625 636 if (fifo_out_available(libtrace->fifo) == 0 || read_required) {
Note: See TracChangeset
for help on using the changeset viewer.