Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
pcapng-netflix-custom.h File Reference

Go to the source code of this file.

Classes

struct  nflx_custom_opt_s
 
struct  nflx_tcpinfo
 
struct  nflx_dumpinfo
 

Macros

#define PEN_NFLX   10949
 
#define NFLX_OPT_TYPE_VERSION   1
 
#define NFLX_OPT_TYPE_TCPINFO   2
 
#define NFLX_OPT_TYPE_DUMPINFO   4
 
#define NFLX_OPT_TYPE_DUMPTIME   5
 
#define NFLX_OPT_TYPE_STACKNAME   6
 
#define NFLX_TLB_FLAG_RXBUF   0x0001 /* Includes receive buffer info */
 
#define NFLX_TLB_FLAG_TXBUF   0x0002 /* Includes send buffer info */
 
#define NFLX_TLB_FLAG_HDR   0x0004 /* Includes a TCP header */
 
#define NFLX_TLB_FLAG_VERBOSE   0x0008 /* Includes function/line numbers */
 
#define NFLX_TLB_FLAG_STACKINFO   0x0010 /* Includes stack-specific info */
 
#define NFLX_TLB_TF_REQ_SCALE   0x00000020 /* Sent WS option */
 
#define NFLX_TLB_TF_RCVD_SCALE   0x00000040 /* Received WS option */
 
#define NFLX_TLB_TCPS_ESTABLISHED   4
 
#define NFLX_TLB_IS_SYNCHRONIZED(state)   (state >= NFLX_TLB_TCPS_ESTABLISHED)
 

Typedefs

typedef struct nflx_custom_opt_s nflx_custom_opt_t
 

Functions

WS_DLL_PUBLIC wtap_opttype_return_val wtap_block_add_nflx_custom_option (wtap_block_t block, uint32_t nflx_type, const char *nflx_custom_data, size_t nflx_custom_data_len)
 
WS_DLL_PUBLIC wtap_opttype_return_val wtap_block_get_nflx_custom_option (wtap_block_t block, uint32_t nflx_type, char *nflx_custom_data, size_t nflx_custom_data_len)
 

Detailed Description

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

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

Function Documentation

◆ wtap_block_add_nflx_custom_option()

WS_DLL_PUBLIC wtap_opttype_return_val wtap_block_add_nflx_custom_option ( wtap_block_t  block,
uint32_t  nflx_type,
const char *  nflx_custom_data,
size_t  nflx_custom_data_len 
)

Add an NFLX custom option to a block

Parameters
[in]blockBlock to which to add the option
[in]nflx_typeNFLX option type
[in]nflx_custom_datapointer to the data
[in]nflx_custom_data_lenlength of custom_data
Returns
wtap_opttype_return_val - WTAP_OPTTYPE_SUCCESS if successful, error code otherwise

◆ wtap_block_get_nflx_custom_option()

WS_DLL_PUBLIC wtap_opttype_return_val wtap_block_get_nflx_custom_option ( wtap_block_t  block,
uint32_t  nflx_type,
char *  nflx_custom_data,
size_t  nflx_custom_data_len 
)

Get an NFLX custom option value from a block

Parameters
[in]blockBlock from which to get the option value
[in]nflx_typetype of the option
[out]nflx_custom_dataReturned value of NFLX custom option value
[in]nflx_custom_data_lensize of buffer provided in nflx_custom_data
Returns
wtap_opttype_return_val - WTAP_OPTTYPE_SUCCESS if successful, error code otherwise