2001-05-16 21:32:05 +00:00
|
|
|
/**-*-C-*-**********************************************************************
|
|
|
|
*
|
|
|
|
* text2pcap.h
|
|
|
|
*
|
|
|
|
* Utility to convert an ASCII hexdump into a libpcap-format capture file
|
|
|
|
*
|
|
|
|
* (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-05-16 21:32:05 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2017-11-08 15:43:53 +00:00
|
|
|
*/
|
2001-05-16 21:32:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef TEXT2PCAP_H
|
|
|
|
#define TEXT2PCAP_H
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
typedef enum {
|
|
|
|
T_BYTE = 1,
|
|
|
|
T_OFFSET,
|
|
|
|
T_DIRECTIVE,
|
|
|
|
T_TEXT,
|
|
|
|
T_EOL
|
2001-05-16 21:32:05 +00:00
|
|
|
} token_t;
|
|
|
|
|
2017-02-21 13:08:27 +00:00
|
|
|
int parse_token(token_t token, char *str);
|
2001-05-16 21:32:05 +00:00
|
|
|
|
2018-02-16 22:10:47 +00:00
|
|
|
int text2pcap_scan(void);
|
2017-02-21 13:28:57 +00:00
|
|
|
|
2014-10-14 19:58:21 +00:00
|
|
|
#endif
|
|
|
|
|
2014-10-12 18:56:12 +00:00
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-10-12 18:56:12 +00:00
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|