Copy inp_hops from the listening socket to the accepted one and use
authorbluhm <bluhm@openbsd.org>
Mon, 27 Jun 2016 15:59:51 +0000 (15:59 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 27 Jun 2016 15:59:51 +0000 (15:59 +0000)
commit490f401ff42f4926f0bd683dc2bae3234ac09718
tree2e328e5beb825ff1ade2de1f1bd86b498599687b
parent598da1a0e5a47a30695d19cdac3a70d89d521aa1
Copy inp_hops from the listening socket to the accepted one and use
its value for the SYN+ACK packet.  This makes the IPV6_UNICAST_HOPS
socket option usable for incoming TCP connections.
tested by renato@;  OK jca@
sys/netinet/tcp_input.c