Searched refs:bpfFd (Results 1 – 3 of 3) sorted by relevance
/system/netd/server/ |
D | OffloadUtils.h | 109 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t prio, uint16_t proto, int bpfFd, 113 inline int tcFilterAddDevIngressClatIpv6(int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevIngressClatIpv6() argument 114 return tcFilterAddDevBpf(ifIndex, INGRESS, PRIO_CLAT, ETH_P_IPV6, bpfFd, ethernet); in tcFilterAddDevIngressClatIpv6() 118 inline int tcFilterAddDevEgressClatIpv4(int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevEgressClatIpv4() argument 119 return tcFilterAddDevBpf(ifIndex, EGRESS, PRIO_CLAT, ETH_P_IP, bpfFd, ethernet); in tcFilterAddDevEgressClatIpv4() 123 inline int tcFilterAddDevIngressTether(int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevIngressTether() argument 124 return tcFilterAddDevBpf(ifIndex, INGRESS, PRIO_TETHER, ETH_P_IPV6, bpfFd, ethernet); in tcFilterAddDevIngressTether()
|
D | OffloadUtils.cpp | 199 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t prio, uint16_t proto, int bpfFd, in tcFilterAddDevBpf() argument 334 .u32 = static_cast<__u32>(bpfFd), in tcFilterAddDevBpf()
|
/system/netd/tests/ |
D | netd_test.cpp | 205 int bpfFd = getTetherIngressProgFd(/* ethernet */ false); in TEST() local 207 ASSERT_GE(bpfFd, 3); in TEST() 209 rv = tcFilterAddDevIngressTether(tunif, bpfFd, /* ethernet*/ false); in TEST()
|