tuntap(4): break out after setting TUN_DSTADDR
This is now the only flag we set in this loop, terminate early.
This commit is contained in:
parent
6041d76e0c
commit
486c0b2269
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353782
@ -1193,8 +1193,10 @@ tuninit(struct ifnet *ifp)
|
||||
struct sockaddr_in *si;
|
||||
|
||||
si = (struct sockaddr_in *)ifa->ifa_dstaddr;
|
||||
if (si && si->sin_addr.s_addr)
|
||||
if (si && si->sin_addr.s_addr) {
|
||||
tp->tun_flags |= TUN_DSTADDR;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
NET_EPOCH_EXIT(et);
|
||||
|
Loading…
Reference in New Issue
Block a user