Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151004134
D4014.id9734.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1013 B
Referenced Files
None
Subscribers
None
D4014.id9734.diff
View Options
Index: flowtable.c
===================================================================
--- flowtable.c
+++ flowtable.c
@@ -435,8 +435,7 @@
flow_stale(struct flowtable *ft, struct flentry *fle, int maxidle)
{
- if (((fle->f_rt->rt_flags & RTF_HOST) &&
- ((fle->f_rt->rt_flags & (RTF_UP)) != (RTF_UP))) ||
+ if (((fle->f_rt->rt_flags & RTF_UP) == 0) ||
(fle->f_rt->rt_ifp == NULL) ||
!RT_LINK_IS_UP(fle->f_rt->rt_ifp) ||
(fle->f_lle->la_flags & LLE_VALID) == 0)
@@ -477,7 +476,7 @@
CRITICAL_ASSERT(curthread);
/* Microoptimization for IPv4: don't use bcmp(). */
- if (((keylen == sizeof(uint32_t) && (fle->f_key[0] != key[0])) ||
+ if (((keylen == sizeof(uint32_t) && (fle->f_key[0] == key[0])) ||
(bcmp(fle->f_key, key, keylen) == 0)) &&
fibnum == fle->f_fibnum &&
#ifdef FLOWTABLE_HASH_ALL
@@ -818,8 +817,6 @@
critical_exit();
bit_clear(tmpmask, curbit);
- tmpmask += (curbit / 8);
- tmpsize -= (curbit / 8) * 8;
bit_ffs(tmpmask, tmpsize, &curbit);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 10:13 AM (11 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30958493
Default Alt Text
D4014.id9734.diff (1013 B)
Attached To
Mode
D4014: Flowtable cleaner problems (3 bugs).
Attached
Detach File
Event Timeline
Log In to Comment