Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Enumerations | Functions
/builds/wireshark/wireshark/text2pcap.h File Reference

Go to the source code of this file.

Enumerations

enum  token_t {
  T_BYTE = 1 , T_OFFSET , T_DIRECTIVE , T_TEXT ,
  T_EOL
}
 

Functions

int parse_token (token_t token, char *str)
 Parses a token from a string.
 
int text2pcap_scan (void)
 Scans for text2pcap utility functionality.
 

Detailed Description

Utility to convert an ASCII hexdump into a libpcap-format capture file

(c) Copyright 2001 Ashok Narayanan ashok.nosp@m.n@ci.nosp@m.sco.c.nosp@m.om

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ parse_token()

int parse_token ( token_t  token,
char *  str 
)

Parses a token from a string.

This function takes a token type and a string as input and processes the token accordingly.

Parameters
tokenThe type of token to parse.
strThe string containing the token data.
Returns
int 0 on success, -1 on failure.

◆ text2pcap_scan()

int text2pcap_scan ( void  )

Scans for text2pcap utility functionality.

This function is used to scan and identify the capabilities of the text2pcap utility, which converts an ASCII hexdump into a libpcap-format capture file.

Returns
0 on success, -1 on failure.