![]() |
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Macros | |
#define | WS_PADDING_TO_2(n) ((2U - ((n) % 2U)) % 2U) |
Compute padding needed to align to 2 bytes. | |
#define | WS_PADDING_TO_4(n) ((4U - ((n) % 4U)) % 4U) |
Compute padding needed to align to 4 bytes. | |
#define | WS_PADDING_TO_8(n) ((8U - ((n) % 8U)) % 8U) |
Compute padding needed to align to 8 bytes. | |
#define | WS_PADDING_TO_16(n) ((16U - ((n) % 16U)) % 16U) |
Compute padding needed to align to 16 bytes. | |
#define | WS_PADDING_TO_32(n) ((32U - ((n) % 32U)) % 32U) |
Compute padding needed to align to 32 bytes. | |
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
Compute padding needed to align to 16 bytes.
n | Current size in bytes. |
Compute padding needed to align to 2 bytes.
n | Current size in bytes. |
Compute padding needed to align to 32 bytes.
n | Current size in bytes. |
Compute padding needed to align to 4 bytes.
n | Current size in bytes. |