diff options
author | Richard Sharpe <sharpe@ns.aus.com> | 2000-04-08 00:33:04 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@ns.aus.com> | 2000-04-08 00:33:04 +0000 |
commit | 140f531ea44e44d0bf72330f0fe075236f9edd27 (patch) | |
tree | 6ab9ec5830bb0cca79c09f2d19c22a966f023e08 /wiretap | |
parent | 068a2284863408fadf7cc972ad76961cb95d8823 (diff) |
Some stuff, like libdencode, needs a wiretap routine that allows
them to simply read through the capture file ...
svn path=/trunk/; revision=1819
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/wtap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index bb1c4433c9..406dc2326b 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.38 2000/03/22 07:06:55 guy Exp $ + * $Id: wtap.c,v 1.39 2000/04/08 00:33:04 sharpe Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -202,6 +202,11 @@ void wtap_close(wtap *wth) g_free(wth); } +int wtap_read(wtap *wth, int *err) +{ + return wth -> subtype_read(wth, err); +} + int wtap_loop(wtap *wth, int count, wtap_handler callback, u_char* user, int *err) { |