Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap file.c netmon.c netmon.h snoop.c
guy 1999/12/04 02:32:19 CST
Modified files:
wiretap file.c netmon.c netmon.h snoop.c snoop.h
libpcap.c libpcap.h wtap.c wtap.h
Log:
Add some infrastructure for the use of Ethereal, so it can make a list
of all the file types in which a file can be saved.
Giving each dumpable file type a routine that checks whether a file of a
given file type and encapsulation can be written lets us hoist some
checks into common code from out of the open routines.
If the "dump close" routine for a dump stream is NULL, have that mean
that there's no action that needs to be taken on a close by the code to
handle that file type; some file types don't need that, as they can be
written purely sequentially.
Revision Changes Path
1.33 +148 -29 ethereal/wiretap/file.c
1.20 +15 -13 ethereal/wiretap/netmon.c
1.4 +2 -1 ethereal/wiretap/netmon.h
1.20 +34 -40 ethereal/wiretap/snoop.c
1.5 +2 -1 ethereal/wiretap/snoop.h
1.25 +34 -40 ethereal/wiretap/libpcap.c
1.5 +2 -1 ethereal/wiretap/libpcap.h
1.32 +1 -61 ethereal/wiretap/wtap.c
1.52 +6 -1 ethereal/wiretap/wtap.h