summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-03-07 23:30:20 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-03-07 23:30:20 +0000
commitcfd60bb436ec323a029a43130c30f34f22901653 (patch)
tree31abc282f142d6cc2455333b7d78640b000bb3a8 /sys/net/pf.c
parente2ec7f70244f8417cad73d40d00acfcfef383d29 (diff)
Declare the inline function pf_addr_compare() non-static in pfvar.h
to make it reusable by pf fragment reassembly. No functional change. discussed with henning@, claudio@, deraadt@, kettenis@ ok guenther@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index df9b3048427..08bed7d7253 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.728 2011/03/05 01:53:16 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.729 2011/03/07 23:30:18 bluhm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -297,8 +297,6 @@ enum { PF_ICMP_MULTI_NONE, PF_ICMP_MULTI_SOLICITED, PF_ICMP_MULTI_LINK };
mrm->r->states_cur--; \
} while (0)
-static __inline int pf_addr_compare(struct pf_addr *, struct pf_addr *,
- sa_family_t);
static __inline int pf_src_compare(struct pf_src_node *, struct pf_src_node *);
static __inline int pf_state_compare_key(struct pf_state_key *,
struct pf_state_key *);
@@ -315,7 +313,7 @@ RB_GENERATE(pf_state_tree, pf_state_key, entry, pf_state_compare_key);
RB_GENERATE(pf_state_tree_id, pf_state,
entry_id, pf_state_compare_id);
-static __inline int
+__inline int
pf_addr_compare(struct pf_addr *a, struct pf_addr *b, sa_family_t af)
{
switch (af) {