diff options
author | bz <bz@FreeBSD.org> | 2011-03-03 16:16:49 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2011-03-03 16:16:49 +0000 |
commit | 26db4c6ff3383f8642521bcc3fc4d640035ed0b3 (patch) | |
tree | 1ae2820a21be3ee7aed5dbdee035ee5faaef7b93 /sys/netgraph/netflow/netflow.c | |
parent | 3edd099649d44a35387a343a1a109ca90bb8e017 (diff) | |
download | FreeBSD-src-26db4c6ff3383f8642521bcc3fc4d640035ed0b3.zip FreeBSD-src-26db4c6ff3383f8642521bcc3fc4d640035ed0b3.tar.gz |
Unbreak the build for no options INET6.
PR: kern/155227
Submitted by: Dmitry Afanasiev (KOT MATPOCKuH.Ru)
Diffstat (limited to 'sys/netgraph/netflow/netflow.c')
-rw-r--r-- | sys/netgraph/netflow/netflow.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c index d6097da..ea1c785 100644 --- a/sys/netgraph/netflow/netflow.c +++ b/sys/netgraph/netflow/netflow.c @@ -99,7 +99,9 @@ static int export_add(item_p, struct flow_entry *); static int export_send(priv_p, fib_export_p, item_p, int); static int hash_insert(priv_p, struct flow_hash_entry *, struct flow_rec *, int, uint8_t); +#ifdef INET6 static int hash6_insert(priv_p, struct flow6_hash_entry *, struct flow6_rec *, int, uint8_t); +#endif static __inline void expire_flow(priv_p, fib_export_p, struct flow_entry *, int); @@ -282,8 +284,10 @@ expire_flow(priv_p priv, fib_export_p fe, struct flow_entry *fle, int flags) atomic_add_32(&priv->info.nfinfo_export9_failed, 1); if (version == IPVERSION) uma_zfree_arg(priv->zone, fle, priv); +#ifdef INET6 else if (version == IP6VERSION) uma_zfree_arg(priv->zone6, fle, priv); +#endif else panic("ng_netflow: Unknown IP proto: %d", version); return; @@ -297,8 +301,10 @@ expire_flow(priv_p priv, fib_export_p fe, struct flow_entry *fle, int flags) if (version == IPVERSION) uma_zfree_arg(priv->zone, fle, priv); +#ifdef INET6 else if (version == IP6VERSION) uma_zfree_arg(priv->zone6, fle, priv); +#endif } /* Get a snapshot of node statistics */ |