summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-03-19 11:11:16 +0000
committerrrs <rrs@FreeBSD.org>2007-03-19 11:11:16 +0000
commit56faff0a7452b39fd328d13e20d96518124918ad (patch)
treea8df83dcc65a165ded6c77be172e14119f46ab38 /sys/netinet/sctputil.h
parentd9b60cf6fa9667eb83a9934de16d3be1db0033a4 (diff)
downloadFreeBSD-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/sctputil.h')
-rw-r--r--sys/netinet/sctputil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctputil.h b/sys/netinet/sctputil.h
index 5e1ef0d..25e0c72 100644
--- a/sys/netinet/sctputil.h
+++ b/sys/netinet/sctputil.h
@@ -56,6 +56,9 @@ void sctp_m_freem(struct mbuf *m);
/*
* Function prototypes
*/
+uint32_t
+sctp_get_ifa_hash_val(struct sockaddr *addr);
+
struct sctp_ifa *
sctp_find_ifa_in_ep(struct sctp_inpcb *inp, struct sockaddr *addr, int hold_lock);
struct sctp_ifa *
OpenPOWER on IntegriCloud