Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146758378
D35715.id107767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D35715.id107767.diff
View Options
Index: sys/netinet6/ip6_input.c
===================================================================
--- sys/netinet6/ip6_input.c
+++ sys/netinet6/ip6_input.c
@@ -588,12 +588,11 @@
IP6STAT_INC(ip6s_mext1);
} else {
if (m->m_next) {
- if (m->m_flags & M_LOOP) {
- IP6STAT_INC(ip6s_m2m[V_loif->if_index]);
- } else if (rcvif->if_index < IP6S_M2MMAX)
- IP6STAT_INC(ip6s_m2m[rcvif->if_index]);
- else
- IP6STAT_INC(ip6s_m2m[0]);
+ struct ifnet *ifp = (m->m_flags & M_LOOP) ? V_loif : rcvif;
+ int ifindex = ifp->if_index;
+ if (ifindex >= IP6S_M2MMAX)
+ ifindex = 0;
+ IP6STAT_INC(ip6s_m2m[ifindex]);
} else
IP6STAT_INC(ip6s_m1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 6, 8:42 AM (5 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29319806
Default Alt Text
D35715.id107767.diff (671 B)
Attached To
Mode
D35715: netinet6: perform out-of-bounds check for lo0 multicast statitics
Attached
Detach File
Event Timeline
Log In to Comment