offload - ignore ethernet packets not destined for us am: 18552e8fb3 am: 258660ccff
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1559389 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iceb78013e560cb4550fe7dac5e0619dc11074e90
This commit is contained in:
committed by
Automerger Merge Worker
commit
be68e49daa
@@ -50,6 +50,9 @@ static inline __always_inline int do_forward6(struct __sk_buff* skb, const bool
|
||||
struct ethhdr* eth = is_ethernet ? data : NULL; // used iff is_ethernet
|
||||
struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data;
|
||||
|
||||
// Require ethernet dst mac address to be our unicast address.
|
||||
if (is_ethernet && (skb->pkt_type != PACKET_HOST)) return TC_ACT_OK;
|
||||
|
||||
// Must be meta-ethernet IPv6 frame
|
||||
if (skb->protocol != htons(ETH_P_IPV6)) return TC_ACT_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user