packet-iwarp-mpa: make use of tcp_dissect_pdus() to reassamble pdus
[wireshark-sm.git] / text2pcap.h
blob09a66584e0c64f3383d77aec4ddeee6857ca9416
1 /**-*-C-*-**********************************************************************
3 * text2pcap.h
5 * Utility to convert an ASCII hexdump into a libpcap-format capture file
7 * (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * SPDX-License-Identifier: GPL-2.0-or-later
17 #ifndef TEXT2PCAP_H
18 #define TEXT2PCAP_H
20 typedef enum {
21 T_BYTE = 1,
22 T_OFFSET,
23 T_DIRECTIVE,
24 T_TEXT,
25 T_EOL
26 } token_t;
28 int parse_token(token_t token, char *str);
30 int text2pcap_scan(void);
32 #endif
35 * Editor modelines - https://www.wireshark.org/tools/modelines.html
37 * Local variables:
38 * c-basic-offset: 4
39 * tab-width: 8
40 * indent-tabs-mode: nil
41 * End:
43 * vi: set shiftwidth=4 tabstop=8 expandtab:
44 * :indentSize=4:tabSize=8:noTabs=true: