Enable route and LLE (ndp) caching in TCP/IPv6
authorkarels <karels@FreeBSD.org>
Mon, 27 Mar 2017 23:48:36 +0000 (23:48 +0000)
committerkarels <karels@FreeBSD.org>
Mon, 27 Mar 2017 23:48:36 +0000 (23:48 +0000)
commit4be5457efaacff6ffc7079ee7aa62db369732d29
treea67003c3d46075f93498c65f871aa9ec69767251
parentd0b9a2e14ebd4ca6e1e5f3cd3e8ed53d1a600baf
Enable route and LLE (ndp) caching in TCP/IPv6

tcp_output.c was using a route on the stack for IPv6, which does not
allow route caching or LLE/ndp caching. Switch to using the route
(v6 flavor) in the in_pcb, which was already present, which caches
both L3 and L2 lookups.

Reviewed by: gnn hiren
MFC after: 2 weeks
sys/netinet/tcp_output.c