commit | 3f738fcd3d3629097687f3f6e5185a71165cf0dd | [log] [tgz] |
---|---|---|
author | KH Shi <kenghua@google.com> | Tue May 23 22:37:17 2023 +0800 |
committer | KH Shi <kenghua@google.com> | Thu Oct 26 13:13:38 2023 +0000 |
tree | d5cb9dab0c317de3bfdb696239af6bafa5aa2031 | |
parent | 9c01dd494d0373b1b2245aded67e83237412c317 [diff] |
Pass upstream prefixes to bpf tethering offload BPF needs upstream prefixes information to filter spoofing IPv6 source addresses carried in downstream traffic. We retrieve prefixes from upstream interface's LinkProperties and pass it to the BpfCoordinator. Forwarding rules will also be updated when upstream interface's IPv6 link addresses change. Test: atest TetheringTests Bug: 261923493 Change-Id: If8cfc3b191e520ca838654d1b5211ab9e9ec021d