source: examples/munge/lib/libtrace_write.c @ 5959435

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 5959435 was 5959435, checked in by Perry Lorier <perry@…>, 16 years ago

Add new munge program to the libtrace examples

  • Property mode set to 100644
File size: 396 bytes
Line 
1#include "lib.h"
2#include <pcap.h>
3
4struct trace_output_t {
5        enum trace_format_t type;
6        FILE *f;
7        pcap_dumper_t *pcap;
8};
9
10struct trace_output_t *create_pcap_output(const char *name)
11{
12        struct trace_output_t *trace = malloc(sizeof(trace_output_t));
13        trace->pcap = pcap_dump_open(NULL,name);
14        return trace;
15}
16
17int output_packet(struct trace_output_t *trace, struct libtrace_packet_t *packet)
18{
19}
20
Note: See TracBrowser for help on using the repository browser.