• Home
  • Raw
  • Download

Lines Matching refs:downstream

109         const bool downstream) {
168 if (!downstream && (src32 == dst32) && (ip6->saddr.s6_addr32[1] == ip6->daddr.s6_addr32[1]))
179 if (is_ethernet) __builtin_memcpy(downstream ? kd.dstMac : ku.dstMac, eth->h_dest, ETH_ALEN);
181 Tether6Value* v = downstream ? bpf_tether_downstream6_map_lookup_elem(&kd)
187 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif;
232 __sync_fetch_and_add(downstream ? &stat_v->rxErrors : &stat_v->txErrors, 1);
244 __sync_fetch_and_add(downstream ? &stat_v->rxErrors : &stat_v->txErrors, 1);
264 __sync_fetch_and_add(downstream ? &stat_v->rxPackets : &stat_v->txPackets, packets);
265 __sync_fetch_and_add(downstream ? &stat_v->rxBytes : &stat_v->txBytes, bytes);
356 const bool downstream, const bool updatetime) { in do_forward4() argument
494 Tether4Value* v = downstream ? bpf_tether_downstream4_map_lookup_elem(&k) in do_forward4()
500 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif; in do_forward4()
545 __sync_fetch_and_add(downstream ? &stat_v->rxErrors : &stat_v->txErrors, 1); in do_forward4()
559 __sync_fetch_and_add(downstream ? &stat_v->rxErrors : &stat_v->txErrors, 1); in do_forward4()
613 __sync_fetch_and_add(downstream ? &stat_v->rxPackets : &stat_v->txPackets, packets); in do_forward4()
614 __sync_fetch_and_add(downstream ? &stat_v->rxBytes : &stat_v->txBytes, bytes); in do_forward4()
780 const bool downstream) { in do_xdp_forward6() argument
785 const bool downstream) { in do_xdp_forward4() argument
789 static inline __always_inline int do_xdp_forward_ether(struct xdp_md *ctx, const bool downstream) { in do_xdp_forward_ether() argument
798 return do_xdp_forward6(ctx, /* is_ethernet */ true, downstream); in do_xdp_forward_ether()
800 return do_xdp_forward4(ctx, /* is_ethernet */ true, downstream); in do_xdp_forward_ether()
806 static inline __always_inline int do_xdp_forward_rawip(struct xdp_md *ctx, const bool downstream) { in do_xdp_forward_rawip() argument
814 if (v == 6) return do_xdp_forward6(ctx, /* is_ethernet */ false, downstream); in do_xdp_forward_rawip()
815 if (v == 4) return do_xdp_forward4(ctx, /* is_ethernet */ false, downstream); in do_xdp_forward_rawip()