Home
last modified time | relevance | path

Searched refs:pfx (Results 1 – 8 of 8) sorted by relevance

/tools/bpf/bpftool/
Dmain.c110 bool is_prefix(const char *pfx, const char *str) in is_prefix() argument
112 if (!pfx) in is_prefix()
114 if (strlen(str) < strlen(pfx)) in is_prefix()
117 return !memcmp(str, pfx, strlen(pfx)); in is_prefix()
155 const char *pfx = ""; in fprint_hex() local
164 pfx = sep; in fprint_hex()
166 fprintf(f, "%s%02hhx", i ? pfx : "", data[i]); in fprint_hex()
Dmain.h104 bool is_prefix(const char *pfx, const char *str);
/tools/testing/selftests/net/
Dfib_tests.sh518 local pfx=$4
527 cmd="$IP route add vrf $vrf $pfx $gw $dev"
740 local pfx="$1"
750 run_cmd "$IP -6 ro flush ${pfx}"
753 out=$($IP -6 ro ls match ${pfx})
759 run_cmd "$IP -6 ro add ${pfx} ${nh}"
774 local pfx
780 pfx=$1
782 out=$($IP -6 ro ls match ${pfx} | sed -e 's/ pref medium//')
1189 local pfx="$1"
[all …]
Dfib_nexthops.sh236 local pfx="$1"
240 out=$($IP route ls match ${pfx} 2>/dev/null)
247 local pfx="$1"
251 out=$($IP -6 route ls match ${pfx} 2>/dev/null)
Dfib-onlink-tests.sh147 local pfx
150 addr=$(${pfx} ip -6 -br addr show dev ${dev} | \
/tools/arch/x86/include/asm/
Dinat.h81 #define INAT_MAKE_PREFIX(pfx) (pfx << INAT_PFX_OFFS) argument
/tools/lib/bpf/
Dbtf_dump.c24 static const char *pfx(int lvl) in pfx() function
855 btf_dump_printf(d, "\n%s%s: %d;", pfx(lvl), pad_type, pad_bits); in btf_dump_emit_bit_padding()
895 btf_dump_printf(d, "\n%s", pfx(lvl + 1)); in btf_dump_emit_struct_def()
917 btf_dump_printf(d, "%s}", pfx(lvl)); in btf_dump_emit_struct_def()
950 pfx(lvl + 1), name, dup_cnt, in btf_dump_emit_enum_def()
954 pfx(lvl + 1), name, in btf_dump_emit_enum_def()
958 btf_dump_printf(d, "\n%s}", pfx(lvl)); in btf_dump_emit_enum_def()
/tools/testing/selftests/drivers/net/mlxsw/
Dfib_offload.sh58 local pfx="$1"; shift
65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l)