|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include <string.h>#include "tvbuff.h"#include <epan/wmem_scopes.h>#include <wsutil/ws_assert.h>#include <wsutil/inet_cidr.h>Go to the source code of this file.
Classes | |
| struct | _address |
Macros | |
| #define | ADDRESS_INIT(type, len, data) {type, len, data, NULL} |
| #define | ADDRESS_INIT_NONE ADDRESS_INIT(AT_NONE, 0, NULL) |
Typedefs | |
| typedef struct _address | address |
Functions | |
| WS_DLL_PUBLIC unsigned | address_to_bytes (const address *addr, uint8_t *buf, unsigned buf_len) |
| Converts an address to a byte array. | |
Definitions for structures storing addresses, and for the type of variables holding port-type values
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
| WS_DLL_PUBLIC unsigned address_to_bytes | ( | const address * | addr, |
| uint8_t * | buf, | ||
| unsigned | buf_len | ||
| ) |
Converts an address to a byte array.
This function takes an address structure and converts it into a byte array. The output buffer must be provided with sufficient space to hold the address data.
| addr | Pointer to the address structure to convert. |
| buf | Buffer to store the converted byte array. |
| buf_len | Length of the output buffer. |