diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2003-08-22 14:59:31 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2003-08-22 14:59:31 +0000 |
commit | 0066dc5951be9bc25354af86f5051c006ef597f8 (patch) | |
tree | 441143626443de07a7742f05200dffbec703439d | |
parent | 6b0b0601c0088db9cc0d208e804b9582f8156cd1 (diff) |
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); |