git: f09ee340d2b7 - main - pf: remove unused macros
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Apr 2025 18:02:57 UTC
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=f09ee340d2b7821177594ac6eca62c54cdb7ed32 commit f09ee340d2b7821177594ac6eca62c54cdb7ed32 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-04-16 09:12:43 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-04-16 14:23:48 +0000 pf: remove unused macros Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/net/pfvar.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 22b902532743..a38525353a9c 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -347,14 +347,6 @@ struct pfi_dynaddr { u_int8_t pfid_iflags; /* PFI_AFLAG_* */ }; -/* - * Address manipulation macros - */ -#define HTONL(x) (x) = htonl((__uint32_t)(x)) -#define HTONS(x) (x) = htons((__uint16_t)(x)) -#define NTOHL(x) (x) = ntohl((__uint32_t)(x)) -#define NTOHS(x) (x) = ntohs((__uint16_t)(x)) - #define PF_NAME "pf" #define PF_HASHROW_ASSERT(h) mtx_assert(&(h)->lock, MA_OWNED)