diff options
author | gnn <gnn@FreeBSD.org> | 2016-06-02 17:51:29 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2016-06-02 17:51:29 +0000 |
commit | d75e0c471e231b57a58d0a0f8f77ed359ed0e190 (patch) | |
tree | 35865ebb972dd3afe8974183497a1af7a56b33fc /sys/netinet6/in6.h | |
parent | 56e3e42896aee2eb336ee7d14417f427bbf2f505 (diff) | |
download | FreeBSD-src-d75e0c471e231b57a58d0a0f8f77ed359ed0e190.zip FreeBSD-src-d75e0c471e231b57a58d0a0f8f77ed359ed0e190.tar.gz |
This change re-adds L2 caching for TCP and UDP, as originally added in D4306
but removed due to other changes in the system. Restore the llentry pointer
to the "struct route", and use it to cache the L2 lookup (ARP or ND6) as
appropriate.
Submitted by: Mike Karels
Differential Revision: https://reviews.freebsd.org/D6262
Diffstat (limited to 'sys/netinet6/in6.h')
-rw-r--r-- | sys/netinet6/in6.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h index ae049f0..c84881e 100644 --- a/sys/netinet6/in6.h +++ b/sys/netinet6/in6.h @@ -375,6 +375,11 @@ extern const struct in6_addr in6addr_linklocal_allv2routers; #if __BSD_VISIBLE struct route_in6 { struct rtentry *ro_rt; + struct llentry *ro_lle; + /* + * ro_prepend and ro_plen are only used for bpf to pass in a + * preformed header. They are not cacheable. + */ char *ro_prepend; uint16_t ro_plen; uint16_t ro_flags; |