Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112532132
D49157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D49157.diff
View Options
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -276,7 +276,8 @@
{
u_long i = ntohl(in.s_addr);
- if (IN_MULTICAST(i) || IN_LINKLOCAL(i) || IN_LOOPBACK(i))
+ if (IN_MULTICAST(i) || IN_LINKLOCAL(i) || IN_LOOPBACK(i) ||
+ in_nullhost(in))
return (0);
if (IN_EXPERIMENTAL(i) && !V_ip_allow_net240)
return (0);
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
@@ -783,10 +783,11 @@
if (IN_MULTICAST(ntohl(ip->ip_src.s_addr)) ||
(IN_EXPERIMENTAL(ntohl(ip->ip_src.s_addr)) && !V_ip_allow_net240) ||
- (IN_ZERONET(ntohl(ip->ip_src.s_addr)) && !V_ip_allow_net0) ) {
+ (IN_ZERONET(ntohl(ip->ip_src.s_addr)) && !V_ip_allow_net0) ||
+ in_nullhost(ip->ip_src) ) {
m_freem(m); /* Bad return address */
ICMPSTAT_INC(icps_badaddr);
- goto done; /* Ip_output() will check for broadcast */
+ goto done; /* ip_output() will check for broadcast */
}
t = ip->ip_dst;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 10:57 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17229688
Default Alt Text
D49157.diff (1017 B)
Attached To
Mode
D49157: netinet: Do not forward or ICMP response to INADDR_ANY
Attached
Detach File
Event Timeline
Log In to Comment