diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-02-26 03:53:54 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-02-26 03:53:54 +0000 |
commit | 428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1 (patch) | |
tree | aa20382749ac1e97a0e00869aaa3a69abbc95a34 /sys/contrib/pf/net | |
parent | 94f1c2c12e72d156571a8216199086ba2d775312 (diff) | |
download | FreeBSD-src-428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1.zip FreeBSD-src-428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1.tar.gz |
Tweak existing header and other build infrastructure to be able to build
pf/pflog/pfsync as modules. Do not list them in NOTES or modules/Makefile
(i.e. do not connect it to any (automatic) builds - yet).
Approved by: bms(mentor)
Diffstat (limited to 'sys/contrib/pf/net')
-rw-r--r-- | sys/contrib/pf/net/pfvar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pfvar.h b/sys/contrib/pf/net/pfvar.h index b90eb22..ffd4812 100644 --- a/sys/contrib/pf/net/pfvar.h +++ b/sys/contrib/pf/net/pfvar.h @@ -156,6 +156,11 @@ struct pf_addr_dyn { #if defined(__FreeBSD__) #define splsoftnet() splnet() +#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 PR_NOWAIT M_NOWAIT |