Update freebsd/netinet/in_pcb.c

BSD's socket can bind the address not belong to local ports, this works well when using as transparent proxy. If fstack check the ip and port whenever new connect, tranparent proxy is not supported.
When using specified local port, it is app's responsibility to make 5-tuple rss hash good.
This commit is contained in:
10077240 2018-10-10 07:48:32 +08:00
parent b43e0dde49
commit 61467f3e8d
1 changed files with 1 additions and 0 deletions

View File

@ -1114,6 +1114,7 @@ in_pcbconnect_setup(struct inpcb *inp, struct sockaddr *nam,
return (error);
}
#else
if (lport == 0)
{
struct ifaddr *ifa;
struct ifnet *ifp;