In fast forwarding path, defer processing of 169.254.0.0/16

to ip_input(). See RFC 3927 section 2.7.
This commit is contained in:
Bruce M Simpson 2007-02-03 06:46:48 +00:00
parent 8cad31a480
commit d256723b8b

View File

@ -318,6 +318,8 @@ ip_fastforward(struct mbuf *m)
ntohl(ip->ip_dst.s_addr) == (u_long)INADDR_BROADCAST ||
IN_MULTICAST(ntohl(ip->ip_src.s_addr)) ||
IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) ||
IN_LINKLOCAL(ntohl(ip->ip_src.s_addr)) ||
IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
ip->ip_src.s_addr == INADDR_ANY ||
ip->ip_dst.s_addr == INADDR_ANY )
return m;