diff options
author | rrs <rrs@FreeBSD.org> | 2007-03-19 11:11:16 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-03-19 11:11:16 +0000 |
commit | 56faff0a7452b39fd328d13e20d96518124918ad (patch) | |
tree | a8df83dcc65a165ded6c77be172e14119f46ab38 /sys/netinet/sctp_os_bsd.h | |
parent | d9b60cf6fa9667eb83a9934de16d3be1db0033a4 (diff) | |
download | FreeBSD-src-56faff0a7452b39fd328d13e20d96518124918ad.zip FreeBSD-src-56faff0a7452b39fd328d13e20d96518124918ad.tar.gz |
Adds a hash table to speed local address lookup
on a per VRF basis (BSD has only one VRF currently).
Hash table is sized to 16 but may need to be adjusted
for machines with large numbers of addresses.
Reviewed by: gnn
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r-- | sys/netinet/sctp_os_bsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 87c17f1..6900363 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -116,6 +116,8 @@ __FBSDID("$FreeBSD$"); #define SCTP_SIZE_OF_VRF_HASH 3 #define SCTP_IFNAMSIZ IFNAMSIZ #define SCTP_DEFAULT_VRFID 0 +#define SCTP_VRF_HASH_SIZE 16 + #define SCTP_IFN_IS_IFT_LOOP(ifn) ((ifn)->ifn_type == IFT_LOOP) |