Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156938791
D19969.id56388.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
D19969.id56388.diff
View Options
Index: sys/netinet6/raw_ip6.c
===================================================================
--- sys/netinet6/raw_ip6.c
+++ sys/netinet6/raw_ip6.c
@@ -166,6 +166,7 @@
struct mbuf *opts = NULL;
struct sockaddr_in6 fromsa;
struct epoch_tracker et;
+ int drop = 0;
RIP6STAT_INC(rip6s_ipackets);
@@ -242,6 +243,7 @@
if (in6_cksum(m, proto, *offp,
m->m_pkthdr.len - *offp)) {
RIP6STAT_INC(rip6s_badsum);
+ drop = 1;
goto skip_2;
}
}
@@ -328,7 +330,7 @@
RIP6STAT_INC(rip6s_nosock);
if (m->m_flags & M_MCAST)
RIP6STAT_INC(rip6s_nosockmcast);
- if (proto == IPPROTO_NONE)
+ if (proto == IPPROTO_NONE || drop == 1)
m_freem(m);
else
icmp6_error(m, ICMP6_PARAM_PROB,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 12:20 PM (3 h, 12 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33248013
Default Alt Text
D19969.id56388.diff (728 B)
Attached To
Mode
D19969: Don't send ICMPv6 packets when the checksum is wrong
Attached
Detach File
Event Timeline
Log In to Comment