Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
pcapng-netflix-custom.c File Reference
#include "config.h"
#include "wtap-int.h"
#include "wtap_opttypes.h"
#include "pcapng.h"
#include "pcapng_module.h"
#include "pcapng-netflix-custom.h"

Classes

struct  pcapng_nflx_custom_block_s
 

Macros

#define NFLX_BLOCK_TYPE_EVENT   1
 
#define NFLX_BLOCK_TYPE_SKIP   2
 
#define MIN_NFLX_CB_SIZE   ((uint32_t)sizeof(pcapng_nflx_custom_block_t))
 

Typedefs

typedef struct pcapng_nflx_custom_block_s pcapng_nflx_custom_block_t
 

Functions

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)
 
bool pcapng_read_nflx_custom_block (FILE_T fh, uint32_t block_payload_length, section_info_t *section_info, wtapng_block_t *wblock, int *err, char **err_info)
 
bool pcapng_process_nflx_custom_option (wtapng_block_t *wblock, section_info_t *section_info, const uint8_t *value, uint16_t length)
 
bool pcapng_write_nflx_custom_block (wtap_dumper *wdh, const wtap_rec *rec, int *err, char **err_info)
 
void register_nflx_custom (void)
 

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_get_nflx_custom_option()

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