Changeset 7c8eacf for lib/format_wag.c
- Timestamp:
- 10/27/05 14:05:36 (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:
- 2458162
- Parents:
- 0d82205
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_wag.c
r17ffb8a r7c8eacf 88 88 #endif 89 89 90 static struct libtrace_format_t *wag_ptr = 0;90 extern struct libtrace_format_t wag; 91 91 92 92 #define CONNINFO libtrace->format_data->conn_info … … 334 334 static int wag_write_packet(struct libtrace_out_t *libtrace, const struct libtrace_packet_t *packet) { 335 335 int numbytes =0 ; 336 if (packet->trace->format != wag_ptr) {336 if (packet->trace->format != &wag) { 337 337 fprintf(stderr,"Cannot convert from wag to %s format yet\n", 338 338 packet->trace->format->name); … … 384 384 //return (wagptr->hdr.size); 385 385 return ntohs(wagptr->hdr.size); 386 } 387 388 static int wag_get_framing_length(const struct libtrace_packet_t *packet) { 389 return sizeof(struct wag_data_frame); 386 390 } 387 391 … … 433 437 wag_get_capture_length, /* get_capture_length */ 434 438 wag_get_wire_length, /* get_wire_length */ 439 wag_get_framing_length, /* get_framing_length */ 435 440 NULL, /* set_capture_length */ 436 441 wag_get_fd, /* get_fd */ … … 440 445 441 446 void __attribute__((constructor)) wag_constructor() { 442 wag_ptr = &wag; 443 register_format(wag_ptr); 444 } 447 register_format(&wag); 448 }
Note: See TracChangeset
for help on using the changeset viewer.