X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fpcap-file.h;h=5d79ccbeaf70d5e9862142d203740013551b453e;hb=7d78f21c057ff50a823220d809ac38c3d907243c;hp=7148b185a9c6a5fd98c4d7413181f272e6ce7e39;hpb=a797eab3d57910765fd1515600feb4ffe20b31ce;p=sliver-openvswitch.git diff --git a/lib/pcap-file.h b/lib/pcap-file.h index 7148b185a..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 **, long long int *when); -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 */