Changeset 8ea5b38
- Timestamp:
- 02/23/06 13:45:51 (16 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:
- 82dc7d8
- Parents:
- 52f8fc2
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_helper.c
r52f8fc2 r8ea5b38 52 52 int data; 53 53 54 assert(trace); 55 assert(packet); 56 54 57 if (trace->format->get_fd) { 55 58 event.fd = trace->format->get_fd(packet); -
lib/format_pcap.c
r52f8fc2 r8ea5b38 210 210 errbuf)) == NULL) { 211 211 trace_set_err(TRACE_ERR_INIT_FAILED,"%s",errbuf); 212 /* Set a filter if one is defined */ 213 if (DATA(libtrace)->filter) 214 if (pcap_setfilter(INPUT.pcap,&DATA(libtrace)->filter->filter) 215 == -1) { 216 trace_set_err(TRACE_ERR_INIT_FAILED,"%s", 217 pcap_geterr(INPUT.pcap)); 218 return -1; 219 } 212 return -1; 213 } 214 /* Set a filter if one is defined */ 215 if (DATA(libtrace)->filter) { 216 if (pcap_setfilter(INPUT.pcap,&DATA(libtrace)->filter->filter) 217 == -1) { 218 trace_set_err(TRACE_ERR_INIT_FAILED,"%s", 219 pcap_geterr(INPUT.pcap)); 220 return -1; 221 } 220 222 return 0; 221 223 }
Note: See TracChangeset
for help on using the changeset viewer.