X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fpcap-file.h;h=ef491e547a783834ccc59faf7fffdb52e5d351e6;hb=f3dd1419291242caa29c65826dc0beef33f7f087;hp=7148b185a9c6a5fd98c4d7413181f272e6ce7e39;hpb=a797eab3d57910765fd1515600feb4ffe20b31ce;p=cascardo%2Fovs.git diff --git a/lib/pcap-file.h b/lib/pcap-file.h index 7148b185a..ef491e547 100644 --- a/lib/pcap-file.h +++ b/lib/pcap-file.h @@ -19,12 +19,21 @@ #include +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 *); + +/* 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 */