- Timestamp:
- 10/15/09 17:49:42 (13 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:
- 3c26e2a
- Parents:
- db03808
- Location:
- lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/dagformat.h
r2faa57e r15e9390 16 16 uint32_t hdlc; 17 17 uint8_t pload[1]; /**< payload */ 18 } pos_rec_t;18 } PACKED pos_rec_t; 19 19 20 20 /** GPP Type 2 */ … … 26 26 uint16_t etype; /**< ether type (?) */ 27 27 uint8_t pload[1]; /**< payload */ 28 } eth_rec_t;28 } PACKED eth_rec_t; 29 29 30 30 /** GPP Type 3 */ … … 32 32 uint32_t header; 33 33 uint8_t pload[1]; /**< payload */ 34 } atm_rec_t;34 } PACKED atm_rec_t; 35 35 36 36 /** GPP Type 4 */ … … 38 38 uint32_t header; 39 39 uint8_t pload[1]; /**< payload */ 40 } aal5_rec_t;40 } PACKED aal5_rec_t; 41 41 42 42 /** Flags */ -
lib/format_pcapfile.c
rf65c480 r15e9390 62 62 int real_time; 63 63 } options; 64 pcapfile_header_t header; 64 65 bool started; 65 pcapfile_header_t header;66 66 }; 67 67 -
lib/ior-thread.c
r398fa86 r15e9390 28 28 pthread_cond_t data_ready; 29 29 pthread_mutex_t mutex; 30 io_t *io; 30 31 bool closing; 31 io_t *io;32 32 }; 33 33 -
lib/ior-zlib.c
rc66068d r15e9390 16 16 z_stream strm; 17 17 Bytef inbuff[1024*1024]; /* bytef is what zlib uses for buffer pointers */ 18 io_t *parent; 18 19 int outoffset; 19 io_t *parent;20 20 enum err_t err; 21 21 }; … … 53 53 54 54 55 static off_t zlib_read(io_t *io, char*buffer, off_t len)55 static off_t zlib_read(io_t *io, void *buffer, off_t len) 56 56 { 57 57 if (DATA(io)->err == ERR_EOF) -
lib/iow-thread.c
r9d0049cf r15e9390 22 22 struct state_t { 23 23 struct buffer_t buffer[BUFFERS]; 24 int out_buffer;25 24 off_t offset; 26 25 pthread_t consumer; 27 bool closing;28 26 iow_t *iow; 29 27 pthread_cond_t data_ready; 30 28 pthread_cond_t space_avail; 31 29 pthread_mutex_t mutex; 30 int out_buffer; 31 bool closing; 32 32 }; 33 33 -
lib/wandio.c
r91b72d3 r15e9390 6 6 7 7 struct compression_type compression_type[] = { 8 { "GZ", WANDIO_COMPRESS_ZLIB, "gz"},9 { "BZ2", WANDIO_COMPRESS_BZ2, "bz2"},10 { "NONE", WANDIO_COMPRESS_NONE, ""}8 { "GZ", "gz", WANDIO_COMPRESS_ZLIB }, 9 { "BZ2", "bz2", WANDIO_COMPRESS_BZ2 }, 10 { "NONE", "", WANDIO_COMPRESS_NONE } 11 11 }; 12 12 -
lib/wandio.h
rc66068d r15e9390 9 9 struct compression_type { 10 10 const char *name; 11 const char *ext; 11 12 int compress_flag; 12 const char *ext;13 13 }; 14 14 extern struct compression_type compression_type[];
Note: See TracChangeset
for help on using the changeset viewer.