Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to

functions not yet asserting it but working on global ip6_forward_rt
route cache which is not locked and perhaps should go away in the
future though cache hit/miss ration wasn't bad.

It's #if 0ed in frag6 because the code working on ip6_forward_rt is.
This commit is contained in:
Bjoern A. Zeeb 2006-05-04 18:41:08 +00:00
parent ac4a76ebc9
commit 1b34a059cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158295
2 changed files with 6 additions and 0 deletions

View File

@ -688,6 +688,10 @@ frag6_slowtimo()
{
struct ip6q *q6;
#if 0
GIANT_REQUIRED; /* XXX bz: ip6_forward_rt */
#endif
IP6Q_LOCK();
q6 = ip6q.ip6q_next;
if (q6)

View File

@ -120,6 +120,8 @@ ip6_forward(m, srcrt)
int ipsecrt = 0;
#endif
GIANT_REQUIRED; /* XXX bz: ip6_forward_rt */
#ifdef IPSEC
/*
* Check AH/ESP integrity.