summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-05-25 08:44:31 +0000
committerjulian <julian@FreeBSD.org>1998-05-25 08:44:31 +0000
commit33ee3bc8fe78993299dd272d53460fed02ac7b91 (patch)
tree79f079da0d0038983fd5a450328b202795182ff4 /sys/netinet/tcp_output.c
parent32d95890269b32e2d6156063f80005fa857b2ce0 (diff)
downloadFreeBSD-src-33ee3bc8fe78993299dd272d53460fed02ac7b91.zip
FreeBSD-src-33ee3bc8fe78993299dd272d53460fed02ac7b91.tar.gz
Hide the interface name in the sin_zero section of the sockaddr_in
passed to the user process for incoming packets. When the sockaddr_in is passed back to the divert socket later, use thi sas the primary interface lookup and only revert to the IP address when the name fails. This solves a long standing bug with divert sockets: When two interfaces had the same address (P2P for example) the interface "assigned" to the reinjected packet was sometimes incorect. Probably we should define a "sockaddr_div" to officially hold this extended information in teh same manner as sockaddr_dl.
Diffstat (limited to 'sys/netinet/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud