Use in_localip() function instead of unlocked access to addresses hash
to determine that an address is our local. PR: 220078 MFC after: 1 week
This commit is contained in:
parent
369bc48dc5
commit
5df8171da3
@ -1609,10 +1609,7 @@ do { \
|
||||
|
||||
case O_IP_SRC_ME:
|
||||
if (is_ipv4) {
|
||||
struct ifnet *tif;
|
||||
|
||||
INADDR_TO_IFP(src_ip, tif);
|
||||
match = (tif != NULL);
|
||||
match = in_localip(src_ip);
|
||||
break;
|
||||
}
|
||||
#ifdef INET6
|
||||
@ -1648,10 +1645,7 @@ do { \
|
||||
|
||||
case O_IP_DST_ME:
|
||||
if (is_ipv4) {
|
||||
struct ifnet *tif;
|
||||
|
||||
INADDR_TO_IFP(dst_ip, tif);
|
||||
match = (tif != NULL);
|
||||
match = in_localip(dst_ip);
|
||||
break;
|
||||
}
|
||||
#ifdef INET6
|
||||
|
Loading…
x
Reference in New Issue
Block a user