ovs-ofctl: New command "ofp-parse-pcap" to dump OpenFlow from PCAP files.
[cascardo/ovs.git] / lib / pcap-file.h
index 7148b18..ef491e5 100644 (file)
 
 #include <stdio.h>
 
+struct flow;
 struct ofpbuf;
 
+/* PCAP file reading and writing. */
 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 *);
+\f
+/* 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 */