switch from SEC() to DEFINE_BPF_PROG() am: 6b7829f2c1 am: 6258dc0071
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1554237 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0cd270087fc86f39d6c59eb3c3f0a7246c490017
This commit is contained in:
committed by
Automerger Merge Worker
commit
fc3c4b4dd0
@@ -162,8 +162,9 @@ static inline __always_inline int do_forward(struct __sk_buff* skb, bool is_ethe
|
|||||||
return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
|
return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
|
||||||
}
|
}
|
||||||
|
|
||||||
SEC("schedcls/ingress/tether_ether")
|
DEFINE_BPF_PROG("schedcls/ingress/tether_ether", AID_ROOT, AID_ROOT,
|
||||||
int sched_cls_ingress_tether_ether(struct __sk_buff* skb) {
|
sched_cls_ingress_tether_ether)
|
||||||
|
(struct __sk_buff* skb) {
|
||||||
return do_forward(skb, true);
|
return do_forward(skb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user