diff options
author | melifaro <melifaro@FreeBSD.org> | 2012-03-13 11:08:40 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2012-03-13 11:08:40 +0000 |
commit | d0a72d948e70eac20228005908250534eeb9d671 (patch) | |
tree | 0638e7fdfc1f347587ce0cd3ec5a3472c7803656 /sys/netgraph/netflow/ng_netflow.h | |
parent | 6305fd59a4505072cad584c3109fa95086c6a1bf (diff) | |
download | FreeBSD-src-d0a72d948e70eac20228005908250534eeb9d671.zip FreeBSD-src-d0a72d948e70eac20228005908250534eeb9d671.tar.gz |
Use rt_numfibs variable instead of compile-time RT_NUMFIBS.
Reviewed by: glebius (previous version)
Approved by: kib(mentor), ae(mentor)
Diffstat (limited to 'sys/netgraph/netflow/ng_netflow.h')
-rw-r--r-- | sys/netgraph/netflow/ng_netflow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/ng_netflow.h b/sys/netgraph/netflow/ng_netflow.h index ed11f35..bab04c7 100644 --- a/sys/netgraph/netflow/ng_netflow.h +++ b/sys/netgraph/netflow/ng_netflow.h @@ -413,7 +413,8 @@ struct netflow { struct flow_hash_entry *hash6; #endif /* Multiple FIB support */ - fib_export_p fib_data[RT_NUMFIBS]; /* array of pointers to fib-specific data */ + fib_export_p *fib_data; /* array of pointers to per-fib data */ + uint16_t maxfibs; /* number of allocated fibs */ /* * RFC 3954 clause 7.3 |