diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-22 07:07:55 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-22 07:07:55 +0000 |
commit | 24c6fa182af38b3d54ebb8fbd839689349c646e3 (patch) | |
tree | 104d10ff0c595478c9d602d94105d6426c2f9e25 /util.h | |
parent | e501947f3e839aa38a10f72833cba58c03624773 (diff) |
In Tethereal, allow capture filters and read filters either to be
specifies with "-f" and "-R" flags, respectively, or specified with
non-flag command-line arguments, as tcpdump and snoop allow.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1663 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* util.h * Utility definitions * - * $Id: util.h,v 1.18 2000/01/29 16:41:15 gram Exp $ + * $Id: util.h,v 1.19 2000/02/22 07:07:47 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -48,6 +48,12 @@ int create_tempfile(char *, int, const char *); * variable, or a default directory if HOME is not set */ const char* get_home_dir(void); +/* + * Collect command-line arguments as a string consisting of the arguments, + * separated by spaces. + */ +char *get_args_as_string(int argc, char **argv, int optind); + void ASCII_to_EBCDIC(guint8 *buf, guint bytes); guint8 ASCII_to_EBCDIC1(guint8 c); void EBCDIC_to_ASCII(guint8 *buf, guint bytes); |