diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-11-07 19:25:32 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-11-07 19:25:32 +0000 |
commit | ad3c10a20a50bad81a5b0f9b65849f4ac253500f (patch) | |
tree | d0ffdab81508b5249f67466aeec644f56d081f78 /wiretap | |
parent | 5a0ba5b0c72a3c55c44f5517226867a1ed3ee37e (diff) |
Update to describe all that the read routine needs to return, and to
indicate what the seek_read routine needs to do and that you *have* to
have a seek_read routine.
svn path=/trunk/; revision=19860
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/README.developer | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/wiretap/README.developer b/wiretap/README.developer index f2c152c8a2..5b207327ab 100644 --- a/wiretap/README.developer +++ b/wiretap/README.developer @@ -17,13 +17,16 @@ To add the ability to read a new capture file format, you have to: used); write a "read" routine that can read a packet from the file and - supply the packet length, captured data length, and time stamp, - and have the "open" routine set the "subtype_read" member of the - "wtap" structure supplied to it to point to that routine; - - write a "seek and read" routine, if necessary, and have the - "open" routine set the "subtype_seek_read" member of the "wtap" - structure to point to that routine. + supply the packet length, captured data length, time stamp, and + packet pseudo-header (if any) and data, and have the "open" + routine set the "subtype_read" member of the "wtap" structure + supplied to it to point to that routine; + + write a "seek and read" routine that can seek to a specified + location in the file for a packet and supply the packet + pseudo-header (if any) and data, and have the "open" routine set + the "subtype_seek_read" member of the "wtap" structure to point + to that routine; write a "close" routine, if necessary (if, for example, the "open" routine allocates any memory), and set the |