DragonFlyBSD Kernel Audit
DF-0520 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1088,6 +1088,7 @@
 		 * mbuf's data back, and adjust the IP length.
 		 */
 		ip->ip_len = htons(ntohs(ip->ip_len) - optlen);
+		/* Note: original IPOPT_RR/TS/SECURITY options are reflected; see icmp_reflect(). */
 		ip->ip_vhl = IP_VHL_BORING;
 		m->m_len -= optlen;
 		if (m->m_flags & M_PKTHDR)