X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fpcap-file.h;h=5d79ccbeaf70d5e9862142d203740013551b453e;hb=50aa0364d0740b2158f48d40a5be04d47354a1e9;hp=46625c3e0aed23b624dec6c0bfd86be9f7c1db4e;hpb=2c78a3e62f282cb7f999ac84e035c29cd8b68d08;p=sliver-openvswitch.git diff --git a/lib/pcap-file.h b/lib/pcap-file.h index 46625c3e0..5d79ccbea 100644 --- a/lib/pcap-file.h +++ b/lib/pcap-file.h @@ -19,12 +19,21 @@ #include +struct flow; struct ofpbuf; -FILE *pcap_open(const char *file_name, const char *mode); -int pcap_read_header(FILE *); -void pcap_write_header(FILE *); -int pcap_read(FILE *, struct ofpbuf **); -void pcap_write(FILE *, struct ofpbuf *); +/* PCAP file reading and writing. */ +FILE *ovs_pcap_open(const char *file_name, const char *mode); +int ovs_pcap_read_header(FILE *); +void ovs_pcap_write_header(FILE *); +int ovs_pcap_read(FILE *, struct ofpbuf **, long long int *when); +void ovs_pcap_write(FILE *, struct ofpbuf *); + +/* Extracting TCP stream data from an Ethernet packet capture. */ + +struct tcp_reader *tcp_reader_open(void); +void tcp_reader_close(struct tcp_reader *); +struct ofpbuf *tcp_reader_run(struct tcp_reader *, const struct flow *, + const struct ofpbuf *); #endif /* pcap-file.h */