11#ifndef __ADDRESS_TYPES_H__
12#define __ADDRESS_TYPES_H__
20typedef int (*AddrValueToString)(
const address* addr,
char *buf,
int buf_len);
21typedef int (*AddrValueToStringLen)(
const address* addr);
22typedef unsigned (*AddrValueToByte)(
const address* addr, uint8_t *buf,
unsigned buf_len);
23typedef int (*AddrFixedLen)(void);
24typedef const char* (*AddrColFilterString)(
const address* addr,
bool src);
25typedef int (*AddrNameResolutionLen)(void);
26typedef const char* (*AddrNameResolutionToString)(
const address* addr);
31WS_DLL_PUBLIC
int address_type_dissector_register(
const char* name,
const char* pretty_name,
32 AddrValueToString to_str_func, AddrValueToStringLen str_len_func,
33 AddrValueToByte to_bytes_func, AddrColFilterString col_filter_str_func, AddrFixedLen fixed_len_func,
34 AddrNameResolutionToString name_res_str_func, AddrNameResolutionLen name_res_len_func);
36WS_DLL_PUBLIC
int address_type_get_by_name(
const char* name);
38int ipv4_to_str(
const address* addr,
char *buf,
int buf_len);
40void address_types_initialize(
void);
43int none_addr_to_str(
const address* addr,
char *buf,
int buf_len);
44int none_addr_str_len(
const address* addr);
45int none_addr_len(
void);
47int ether_to_str(
const address* addr,
char *buf,
int buf_len);
48int ether_str_len(
const address* addr);
50const char* ether_name_resolution_str(
const address* addr);
51int ether_name_resolution_len(
void);
58const char* address_type_column_filter_string(
const address* addr,
bool src);
Definition address_types.c:26