Changeset 1556 for trunk/lib/format_pcapfile.c
- Timestamp:
- 04/14/10 15:26:28 (3 years ago)
- File:
-
- 1 edited
-
trunk/lib/format_pcapfile.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_pcapfile.c
r1549 r1556 88 88 struct pcapfile_format_data_out_t { 89 89 iow_t *file; 90 int compress_type; 90 91 int level; 91 92 int flag; … … 128 129 129 130 DATAOUT(libtrace)->file=NULL; 131 DATAOUT(libtrace)->compress_type=TRACE_OPTION_COMPRESSTYPE_NONE; 130 132 DATAOUT(libtrace)->level=0; 131 133 DATAOUT(libtrace)->flag=O_CREAT|O_WRONLY; … … 266 268 DATAOUT(libtrace)->level = *(int*)value; 267 269 return 0; 270 case TRACE_OPTION_OUTPUT_COMPRESSTYPE: 271 DATAOUT(libtrace)->compress_type = *(int*)value; 272 return 0; 268 273 case TRACE_OPTION_OUTPUT_FILEFLAGS: 269 274 DATAOUT(libtrace)->flag = *(int*)value; … … 412 417 413 418 DATAOUT(out)->file=trace_open_file_out(out, 419 DATAOUT(out)->compress_type, 414 420 DATAOUT(out)->level, 415 421 DATAOUT(out)->flag);
Note: See TracChangeset
for help on using the changeset viewer.
