Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 198) sorted by relevance

12345678

/tools/testing/selftests/net/forwarding/
A Dtc_flower.sh44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
110 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
118 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
A Dtc_actions.sh60 local protocol=$2
66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
117 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
118 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
198 tc filter del dev $h1 egress protocol ip pref 100 handle 100 flower
252 action vlan push id 100 protocol 0x8100 action goto chain 5
273 action vlan push id 10 protocol 0x8100 \
[all …]
A Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
128 tc chain add dev $h2 ingress protocol ip \
130 tc chain add dev $h2 ingress chain 1 protocol ip \
133 tc filter add dev $h2 ingress protocol ip pref 1 handle 1101 \
137 tc filter add dev $h2 ingress protocol ip pref 1 handle 1102 \
154 tc filter del dev $h2 ingress protocol ip pref 1 handle 1102 \
[all …]
A Dtc_police.sh132 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
152 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
164 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
176 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
227 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
228 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
229 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
283 tc filter del dev $h3 ingress protocol ip pref 1 handle 101 flower
284 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
324 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
A Dtc_flower_cfm.sh60 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \
62 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \
85 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower
86 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower
96 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \
98 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \
100 tc filter add dev $h2 ingress protocol cfm pref 1 handle 103 \
131 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower
132 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower
143 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \
[all …]
A Drouter_multicast.sh243 tc filter del dev $h3 ingress protocol ip pref 1 handle 133 flower
244 tc filter del dev $h2 ingress protocol ip pref 1 handle 122 flower
300 tc filter add dev $h1 ingress protocol ip pref 1 handle 1 flower \
302 tc filter add dev $h2 ingress protocol ip pref 1 handle 1 flower \
304 tc filter add dev $h3 ingress protocol ip pref 1 handle 1 flower \
333 tc filter del dev $rp3 ingress protocol ip pref 1 handle 1 flower
334 tc filter del dev $h3 ingress protocol ip pref 1 handle 1 flower
335 tc filter del dev $h2 ingress protocol ip pref 1 handle 1 flower
336 tc filter del dev $h1 ingress protocol ip pref 1 handle 1 flower
425 tc filter del dev $h3 ingress protocol ip pref 1 handle 1 flower
[all …]
A Dtc_flower_l2_miss.sh80 tc filter add dev $swp2 egress protocol ipv4 handle 101 pref 1 \
84 tc filter add dev $swp2 egress protocol ipv4 handle 102 pref 1 \
119 tc filter del dev $swp2 egress protocol ipv4 pref 1 handle 102 flower
120 tc filter del dev $swp2 egress protocol ipv4 pref 1 handle 101 flower
137 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
141 tc filter add dev $swp2 egress protocol $proto handle 102 pref 1 \
254 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
305 tc filter add dev $swp2 egress protocol all handle 101 pref 1 \
308 tc filter add dev $swp2 egress protocol all handle 102 pref 1 \
320 tc filter del dev $swp2 egress protocol all pref 1 handle 102 flower
[all …]
A Dtc_vlan_modify.sh113 tc filter add dev $swp1 ingress protocol all pref 1 handle 1 \
115 tc filter add dev $swp2 ingress protocol all pref 1 handle 1 \
126 tc filter del dev $swp2 ingress protocol all pref 1 handle 1 flower
127 tc filter del dev $swp1 ingress protocol all pref 1 handle 1 flower
140 tc filter add dev $swp1 egress protocol all pref 1 handle 1 \
142 tc filter add dev $swp2 egress protocol all pref 1 handle 1 \
153 tc filter del dev $swp2 egress protocol all pref 1 handle 1 flower
154 tc filter del dev $swp1 egress protocol all pref 1 handle 1 flower
A Dtc_shblocks.sh53 tc filter add block 22 protocol ip pref 1 handle 101 flower \
68 tc filter del block 22 protocol ip pref 1 handle 101 flower
77 tc filter add block 22 protocol ip pref 1 handle 101 flower \
79 tc filter add block 22 protocol ip pref 2 handle 102 flower \
94 tc filter del block 22 protocol ip pref 1 handle 101 flower
95 tc filter del block 22 protocol ip pref 2 handle 102 flower
/tools/testing/selftests/bpf/progs/
A Dmptcpify.c12 int BPF_PROG(mptcpify, int family, int type, int protocol) in BPF_PROG() argument
15 return protocol; in BPF_PROG()
19 (!protocol || protocol == IPPROTO_TCP)) { in BPF_PROG()
23 return protocol; in BPF_PROG()
A Dtest_lwt_ip_encap.c12 __be16 protocol; member
29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre()
41 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre()
75 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
A Dtest_tc_tunnel.c59 __be16 protocol; member
131 iph_inner.protocol = iph6_inner.nexthdr; in __encap_ipv4()
180 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
233 h_outer.ip.protocol = encap_proto; in __encap_ipv4()
311 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
634 switch (bpf_ntohs(greh.protocol)) { in decap_internal()
681 iph_outer.protocol); in decap_ipv4()
[all …]
A Dtest_xdp.c38 static __always_inline void count_tx(__u32 protocol) in count_tx() argument
42 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx()
48 __u8 protocol) in get_dport() argument
53 switch (protocol) { in get_dport()
97 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
101 vip.protocol = iph->protocol; in handle_ipv4()
132 iph->protocol = IPPROTO_IPIP; in handle_ipv4()
147 count_tx(vip.protocol); in handle_ipv4()
171 vip.protocol = ip6h->nexthdr; in handle_ipv6()
207 count_tx(vip.protocol); in handle_ipv6()
A Dtest_xdp_loop.c34 static __always_inline void count_tx(__u32 protocol) in count_tx() argument
38 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx()
44 __u8 protocol) in get_dport() argument
49 switch (protocol) { in get_dport()
93 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
97 vip.protocol = iph->protocol; in handle_ipv4()
128 iph->protocol = IPPROTO_IPIP; in handle_ipv4()
143 count_tx(vip.protocol); in handle_ipv4()
167 vip.protocol = ip6h->nexthdr; in handle_ipv6()
203 count_tx(vip.protocol); in handle_ipv6()
A Dlsm_cgroup.c52 int protocol) in real_create() argument
58 if (family == AF_PACKET && protocol != 0) in real_create()
86 int type, int protocol, int kern) in BPF_PROG() argument
89 return real_create(sock, family, protocol); in BPF_PROG()
95 int type, int protocol, int kern) in BPF_PROG() argument
98 return real_create(sock, family, protocol); in BPF_PROG()
A Dtest_xdp_dynptr.c41 static __always_inline void count_tx(__u32 protocol) in count_tx() argument
45 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx()
50 static __always_inline int get_dport(void *trans_data, __u8 protocol) in get_dport() argument
55 switch (protocol) { in get_dport()
106 dport = get_dport(iph + 1, iph->protocol); in handle_ipv4()
110 vip.protocol = iph->protocol; in handle_ipv4()
140 iph->protocol = IPPROTO_IPIP; in handle_ipv4()
154 count_tx(vip.protocol); in handle_ipv4()
189 vip.protocol = ip6h->nexthdr; in handle_ipv6()
225 count_tx(vip.protocol); in handle_ipv6()
A Dtest_l4lb.c274 pckt->proto = iph->protocol; in parse_icmp()
342 __u8 protocol; in process_packet() local
353 protocol = ip6h->nexthdr; in process_packet()
354 pckt.proto = protocol; in process_packet()
357 if (protocol == IPPROTO_FRAGMENT) { in process_packet()
375 protocol = iph->protocol; in process_packet()
376 pckt.proto = protocol; in process_packet()
382 if (protocol == IPPROTO_ICMP) { in process_packet()
392 protocol = pckt.proto; in process_packet()
394 if (protocol == IPPROTO_TCP) { in process_packet()
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
A Dtc_restrictions.sh47 tc filter add block 22 protocol ip pref 1 handle 101 flower \
59 tc filter del block 22 protocol ip pref 1 handle 101 flower
64 tc filter add block 22 protocol ip pref 1 handle 101 flower \
73 tc filter add block 22 protocol ip pref 1 handle 101 flower \
77 tc filter del block 22 protocol ip pref 1 handle 101 flower
95 tc filter add block 22 protocol ip pref 1 handle 101 flower \
108 tc filter del block 22 protocol ip pref 1 handle 101 flower
113 tc filter add block 22 protocol ip pref 1 handle 101 flower \
123 tc filter add block 22 protocol ip pref 1 handle 101 flower \
130 tc filter add block 22 protocol ip pref 1 handle 101 flower \
[all …]
A Dtc_sample.sh250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall
570 tc filter del dev $rp1 ingress protocol ip pref 2 handle 102 flower
571 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
585 tc filter add dev $port $bind protocol ip pref 1 handle 101 flower \
603 tc filter del dev $port $bind protocol ip pref 1 handle 101 flower
605 tc filter add dev $port $bind protocol ip pref 1 handle 101 flower \
621 tc filter del dev $port $bind protocol ip pref 1 handle 101 flower
[all …]
A Done_armed_router.sh135 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
139 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \
143 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \
171 tc filter del dev $swp2 egress protocol ip pref 2 handle 102 flower
172 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower
173 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
182 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \
186 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \
214 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower
215 tc filter del dev $swp2 egress protocol ipv6 pref 1 handle 101 flower
[all …]
A Ddevlink_trap_acl_drops.sh98 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \
114 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
123 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 \
126 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
139 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Dtc_flower.sh286 tc filter del dev $h2 ingress protocol ip pref $index \
882 tc chain add dev $h2 ingress chain 1 protocol ip flower \
885 tc chain add dev $h2 ingress chain 2 protocol ip flower \
901 tc filter add dev $h2 ingress chain $i protocol ip \
908 tc filter add dev $h2 ingress protocol ip \
911 tc filter add dev $h2 ingress chain 1 protocol ip \
914 tc filter add dev $h2 ingress chain 2 protocol ip \
917 tc filter add dev $h2 ingress chain 3 protocol ip \
920 tc filter add dev $h2 ingress chain 4 protocol ip \
1007 tc filter add dev $h2 ingress chain $i protocol ip \
[all …]
/tools/testing/selftests/net/
A Dreuseport_bpf.c32 int protocol; member
467 .protocol = SOCK_DGRAM, in main()
474 .protocol = SOCK_DGRAM, in main()
481 .protocol = SOCK_DGRAM, in main()
488 .protocol = SOCK_DGRAM, in main()
494 .protocol = SOCK_DGRAM, in main()
498 .protocol = SOCK_DGRAM, in main()
505 .protocol = SOCK_DGRAM, in main()
512 .protocol = SOCK_DGRAM, in main()
519 .protocol = SOCK_DGRAM, in main()
[all …]
A Dsocket.c15 int protocol; member
49 fd = socket(s->domain, s->type, s->protocol); in run_tests()
64 s->domain, s->type, s->protocol, in run_tests()
77 s->domain, s->type, s->protocol, in run_tests()
/tools/testing/selftests/landlock/
A Dnet_test.c50 srv->protocol = prot; in set_service()
93 (prot->protocol == IPPROTO_TCP || prot->protocol == IPPROTO_IP); in prot_is_tcp()
108 ret = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC, in socket_variant()
109 srv->protocol.protocol); in socket_variant()
257 FIXTURE(protocol) in FIXTURE() argument
262 FIXTURE_VARIANT(protocol) in FIXTURE_VARIANT() argument
268 FIXTURE_SETUP(protocol) in FIXTURE_SETUP() argument
301 .protocol = IPPROTO_IP, in FIXTURE_VARIANT_ADD()
335 .protocol = IPPROTO_IP, in FIXTURE_VARIANT_ADD()
409 .protocol = IPPROTO_IP, in FIXTURE_VARIANT_ADD()
[all …]

Completed in 45 milliseconds

12345678