diff options
author | 2003-08-22 14:59:30 +0000 | |
---|---|---|
committer | 2003-08-22 14:59:30 +0000 | |
commit | 702f7f97ab1a02409b6914cad952bebed8b7055c (patch) | |
tree | 43b2cdb6ea6503bcc7b3c920fa38bcc083d7ae7a | |
parent | Use the '--no-split' parameter to makeinfo, so that it creates only on (diff) | |
download | wireguard-openbsd-702f7f97ab1a02409b6914cad952bebed8b7055c.tar.xz wireguard-openbsd-702f7f97ab1a02409b6914cad952bebed8b7055c.zip |
don't expose pf_osfp_fingerprint() to ! _KERNEL. tcpdump et al use
pf_osfp_fingerprint_hdr() which doesn't work on mbufs.
pointed out by Max Laier
-rw-r--r-- | sys/net/pfvar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 1f577c3b9dc..136b359bb20 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.167 2003/08/21 19:12:08 frantzen Exp $ */ +/* $OpenBSD: pfvar.h,v 1.168 2003/08/22 14:59:30 frantzen Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1246,9 +1246,11 @@ extern struct pf_pool_limit pf_pool_limits[PF_LIMIT_MAX]; /* The fingerprint functions can be linked into userland programs (tcpdump) */ int pf_osfp_add(struct pf_osfp_ioctl *); +#ifdef _KERNEL struct pf_osfp_enlist * pf_osfp_fingerprint(struct pf_pdesc *, struct mbuf *, int, const struct tcphdr *); +#endif /* _KERNEL */ struct pf_osfp_enlist * pf_osfp_fingerprint_hdr(const struct ip *, const struct tcphdr *); void pf_osfp_flush(void); |