| /tools/testing/selftests/net/ |
| A D | xfrm_policy_add_speed.sh | 24 local pfx 25 pfx=30 40 echo xfrm policy add src 10.$s.$j.0/30 dst 10.$d.$j.$a/$pfx dir $dir action block 45 echo xfrm policy add src 10.$s.$j.$a/30 dst 10.$d.$j.0/$pfx dir $dir action block
|
| A D | fib_tests.sh | 514 local pfx=$4 994 local pfx="$1" 1028 local pfx 1034 pfx=$1 1483 local pfx="$1" 1493 run_cmd "$IP ro flush ${pfx}" 1496 out=$($IP ro ls match ${pfx}) 1517 local pfx 1522 pfx=$1 1523 [ "${pfx}" = "unreachable" ] && pfx=$2 [all …]
|
| A D | fib_nexthops.sh | 285 local pfx="$1" 289 out=$($IP route ls match ${pfx} 2>/dev/null) 296 local pfx="$1" 300 out=$($IP -6 route ls match ${pfx} 2>/dev/null | sed -e 's/pref medium//') 380 local pfx="$1" 383 if out=$($IP -j route get "$pfx" | jq -re ".[0].dev"); then 390 local pfx="$1" 394 out=$(get_route_dev "$pfx")
|
| A D | fib-onlink-tests.sh | 145 local pfx 148 addr=$(${pfx} ip -6 -br addr show dev ${dev} | \
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| A D | udp_tunnel_nic.sh | 261 pfx="basic" 338 pfx="module tests" 367 local pfx=$1 390 local pfx=$1 466 pfx="sync all" 523 pfx="destroy full" 551 pfx="IPv4 only" 612 pfx="error injection" 667 pfx="netdev flags" 786 pfx="table sharing" [all …]
|
| /tools/bpf/bpftool/ |
| A D | main.c | 215 bool is_prefix(const char *pfx, const char *str) in is_prefix() argument 217 if (!pfx) in is_prefix() 219 if (strlen(str) < strlen(pfx)) in is_prefix() 222 return !memcmp(str, pfx, strlen(pfx)); in is_prefix() 260 const char *pfx = ""; in fprint_hex() local 269 pfx = sep; in fprint_hex() 271 fprintf(f, "%s%02hhx", i ? pfx : "", data[i]); in fprint_hex()
|
| A D | main.h | 92 bool is_prefix(const char *pfx, const char *str);
|
| A D | gen.c | 130 const char *pfx = pfxs[i]; in get_datasec_ident() local 132 if (str_has_prefix(sec_name, pfx)) { in get_datasec_ident()
|
| /tools/testing/selftests/net/netfilter/ |
| A D | nft_audit.sh | 57 [[ "$pfx $sfx" == "$tpfx $tsfx" ]] && { 63 tpfx="$pfx"
|
| /tools/arch/x86/include/asm/ |
| A D | inat.h | 87 #define INAT_MAKE_PREFIX(pfx) (pfx << INAT_PFX_OFFS) argument
|
| /tools/testing/selftests/bpf/ |
| A D | test_loader.c | 15 #define str_has_pfx(str, pfx) \ argument 16 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0) 359 static const char *skip_dynamic_pfx(const char *s, const char *pfx) in skip_dynamic_pfx() argument 363 if (strncmp(s, pfx, strlen(pfx)) != 0) in skip_dynamic_pfx() 365 msg = s + strlen(pfx); in skip_dynamic_pfx()
|
| /tools/lib/bpf/ |
| A D | libbpf_internal.h | 119 #define str_has_pfx(str, pfx) \ argument 120 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0)
|
| A D | btf_dump.c | 29 static const char *pfx(int lvl) in pfx() function 922 btf_dump_printf(d, "\n%s%s: %d;", pfx(lvl), pad_type, in btf_dump_emit_bit_padding() 936 btf_dump_printf(d, "\n%s%s: %d;", pfx(lvl), pad_type, pad_bits); in btf_dump_emit_bit_padding() 952 btf_dump_printf(d, "\n%s%s: %d;", pfx(lvl), pad_type, bits); in btf_dump_emit_bit_padding() 1000 btf_dump_printf(d, "\n%s", pfx(lvl + 1)); in btf_dump_emit_struct_def() 1026 btf_dump_printf(d, "%s}", pfx(lvl)); in btf_dump_emit_struct_def() 1083 btf_dump_printf(d, fmt_str, pfx(lvl + 1), name, dup_cnt, v->val); in btf_dump_emit_enum32_val() 1086 btf_dump_printf(d, fmt_str, pfx(lvl + 1), name, v->val); in btf_dump_emit_enum32_val() 1111 pfx(lvl + 1), name, dup_cnt, in btf_dump_emit_enum64_val() 1117 pfx(lvl + 1), name, in btf_dump_emit_enum64_val() [all …]
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | fib_offload.sh | 58 local pfx="$1"; shift 65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l)
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | reg_bounds.c | 1021 #define str_has_pfx(str, pfx) (strncmp(str, pfx, strlen(pfx)) == 0) argument 1054 const char *pfx; in parse_reg_state() member 1103 if (!str_has_pfx(p, f->pfx)) in parse_reg_state() 1106 p += strlen(f->pfx); in parse_reg_state()
|
| /tools/net/ynl/pyynl/ |
| A D | ynl_gen_c.py | 164 pfx = '__' if space == 'user' else '' 168 pfx = '__' if space == 'user' else '' 1080 pfx = yaml['name-prefix'] 1082 pfx = family.ident_name + '-a-' 1084 pfx = f"{family.ident_name}-a-{self.name}-" 1085 self.name_prefix = c_upper(pfx)
|