Home
Sort by
last modified time
|
relevance
|
path
Repository(s)
applications
arkcompiler
base
build
commonlibrary
developtools
device
docs
domains
drivers
foundation
ide
interface
kernel
napi_generator
productdefine
test
third_party
vendor
select all
invert selection
clear
Full Search
Search through all text tokens(words,strings,identifiers,numbers) in index.
Definition
Only finds symbol definitions(where e.g a variable(function,...) is defined).
Symbol
Only finds symbol(e.g. methods classes,function,variables).
File Path
Path of the source file(use "/").If you want just exact path,enclose it in "".Source files end with: .jar/.bz2/.a/.h/.java...
History
History log comments.
Type
Any
Bzip(2)
C
Clojure
C#
C++
ELF
Erlang
Image file
Fortran
Golang
GZIP
Haskell
Jar
Java
Java class
JavaScript
Lisp
Lua
Pascal
Perl
PHP
Plain Text
PL/SQL
Python
Rust
Scala
Shell script
SQL
Tar
Tcl
Troff
UUEncoded
Visual Basic
XML
Zip
Type of analyzer used to filter file types include with selected(e.g. just C sources).
Help
Searched
refs:bpf_ntohs
(Results
1 - 25
of
46
) sorted by relevance
1
2
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H
A
D
bpf_iter_tcp4.c
96
destp =
bpf_ntohs
(inet->inet_dport);
in dump_tcp_sock()
97
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_tcp_sock()
159
destp =
bpf_ntohs
(tw->tw_dport);
in dump_tw_sock()
160
srcp =
bpf_ntohs
(tw->tw_sport);
in dump_tw_sock()
188
bpf_ntohs
(irsk->ir_rmt_port));
in dump_req_sock()
H
A
D
test_xdp_vlan.c
76
pkt->vlan_outer =
bpf_ntohs
(vlan_hdr->h_vlan_TCI)
in parse_eth_frame()
89
pkt->vlan_inner =
bpf_ntohs
(vlan_hdr->h_vlan_TCI)
in parse_eth_frame()
95
pkt->l3_proto =
bpf_ntohs
(eth_type); /* Convert to host-byte-order */
in parse_eth_frame()
163
bpf_htons((
bpf_ntohs
(vlan_hdr->h_vlan_TCI) & 0xf000)
in xdp_prognum1()
H
A
D
bpf_iter_tcp6.c
96
destp =
bpf_ntohs
(inet->inet_dport);
in dump_tcp6_sock()
97
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_tcp6_sock()
164
destp =
bpf_ntohs
(tw->tw_dport);
in dump_tw_sock()
165
srcp =
bpf_ntohs
(tw->tw_sport);
in dump_tw_sock()
204
bpf_ntohs
(irsk->ir_rmt_port));
in dump_req_sock()
H
A
D
test_tc_tunnel.c
106
bpf_ntohs
(iph6_inner.payload_len));
in encap_ipv4()
162
h_outer.l4hdr.udp.len = bpf_htons(
bpf_ntohs
(iph_inner.tot_len) +
in encap_ipv4()
193
bpf_ntohs
(h_outer.ip.tot_len));
in encap_ipv4()
269
tot_len =
bpf_ntohs
(iph_inner.payload_len) + sizeof(iph_inner) +
in encap_ipv6()
300
bpf_ntohs
(h_outer.ip.payload_len));
in encap_ipv6()
462
switch (
bpf_ntohs
(greh.protocol)) {
in decap_internal()
475
switch (
bpf_ntohs
(udph.dest)) {
in decap_internal()
H
A
D
bpf_iter_udp6.c
56
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_udp6()
57
destp =
bpf_ntohs
(inet->inet_dport);
in dump_udp6()
H
A
D
bpf_iter_udp4.c
54
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_udp4()
55
destp =
bpf_ntohs
(inet->inet_dport);
in dump_udp4()
H
A
D
test_tc_neigh_fib.c
43
fib_params->tot_len =
bpf_ntohs
(ip4h->tot_len);
in fill_fib_params_v4()
71
fib_params->tot_len =
bpf_ntohs
(ip6h->payload_len);
in fill_fib_params_v6()
H
A
D
xdping_kern.c
78
if (
bpf_ntohs
(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN)
in icmp_check()
142
seq = bpf_htons(
bpf_ntohs
(icmph->un.echo.sequence) + 1);
in xdping_client()
H
A
D
test_xdp_noinline.c
326
__u32 ip_suffix =
bpf_ntohs
(pckt->flow.port16[0]);
in encap_v4()
643
*pkt_bytes =
bpf_ntohs
(ip6h->payload_len);
in process_l3_headers_v6()
675
*pkt_bytes =
bpf_ntohs
(iph->tot_len);
in process_l3_headers_v4()
812
eth_proto =
bpf_ntohs
(eth->eth_proto);
in balancer_ingress_v4()
831
eth_proto =
bpf_ntohs
(eth->eth_proto);
in balancer_ingress_v6()
H
A
D
test_sock_fields.c
144
if (sk->src_port ==
bpf_ntohs
(srv_sa6.sin6_port)) {
in egress_read_sock_fields()
232
sk->src_port !=
bpf_ntohs
(srv_sa6.sin6_port))
in ingress_read_sock_fields()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H
A
D
bpf_iter_tcp4.c
95
destp =
bpf_ntohs
(inet->inet_dport);
in dump_tcp_sock()
96
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_tcp_sock()
158
destp =
bpf_ntohs
(tw->tw_dport);
in dump_tw_sock()
159
srcp =
bpf_ntohs
(tw->tw_sport);
in dump_tw_sock()
187
bpf_ntohs
(irsk->ir_rmt_port));
in dump_req_sock()
H
A
D
test_xdp_vlan.c
76
pkt->vlan_outer =
bpf_ntohs
(vlan_hdr->h_vlan_TCI)
in parse_eth_frame()
89
pkt->vlan_inner =
bpf_ntohs
(vlan_hdr->h_vlan_TCI)
in parse_eth_frame()
95
pkt->l3_proto =
bpf_ntohs
(eth_type); /* Convert to host-byte-order */
in parse_eth_frame()
163
bpf_htons((
bpf_ntohs
(vlan_hdr->h_vlan_TCI) & 0xf000)
in xdp_prognum1()
H
A
D
bpf_iter_tcp6.c
95
destp =
bpf_ntohs
(inet->inet_dport);
in dump_tcp6_sock()
96
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_tcp6_sock()
163
destp =
bpf_ntohs
(tw->tw_dport);
in dump_tw_sock()
164
srcp =
bpf_ntohs
(tw->tw_sport);
in dump_tw_sock()
203
bpf_ntohs
(irsk->ir_rmt_port));
in dump_req_sock()
H
A
D
bpf_iter_udp6.c
55
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_udp6()
56
destp =
bpf_ntohs
(inet->inet_dport);
in dump_udp6()
H
A
D
bpf_iter_udp4.c
53
srcp =
bpf_ntohs
(inet->inet_sport);
in dump_udp4()
54
destp =
bpf_ntohs
(inet->inet_dport);
in dump_udp4()
H
A
D
ip_check_defrag.c
27
offset =
bpf_ntohs
(iph->frag_off);
in is_frag_v4()
94
switch (
bpf_ntohs
(skb->protocol)) {
in defrag()
H
A
D
test_tc_tunnel.c
126
bpf_ntohs
(iph6_inner.payload_len));
in __encap_ipv4()
186
h_outer.l4hdr.udp.len = bpf_htons(
bpf_ntohs
(iph_inner.tot_len) +
in __encap_ipv4()
229
bpf_ntohs
(h_outer.ip.tot_len));
in __encap_ipv4()
316
tot_len =
bpf_ntohs
(iph_inner.payload_len) + sizeof(iph_inner) +
in __encap_ipv6()
358
bpf_ntohs
(h_outer.ip.payload_len));
in __encap_ipv6()
631
switch (
bpf_ntohs
(greh.protocol)) {
in decap_internal()
644
switch (
bpf_ntohs
(udph.dest)) {
in decap_internal()
H
A
D
xdpwall.c
198
info->sport =
bpf_ntohs
(tcp->source);
in parse_tcp()
199
info->dport =
bpf_ntohs
(tcp->dest);
in parse_tcp()
213
info->sport =
bpf_ntohs
(udp->source);
in parse_udp()
214
info->dport =
bpf_ntohs
(udp->dest);
in parse_udp()
H
A
D
test_tc_neigh_fib.c
43
fib_params->tot_len =
bpf_ntohs
(ip4h->tot_len);
in fill_fib_params_v4()
71
fib_params->tot_len =
bpf_ntohs
(ip6h->payload_len);
in fill_fib_params_v6()
H
A
D
xdping_kern.c
78
if (
bpf_ntohs
(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN)
in icmp_check()
141
seq = bpf_htons(
bpf_ntohs
(icmph->un.echo.sequence) + 1);
in xdping_client()
H
A
D
bpf_iter_setsockopt.c
54
bpf_ntohs
(sk->sk_dport) != listen_hport))
in change_tcp_cc()
H
A
D
test_xdp_noinline.c
326
__u32 ip_suffix =
bpf_ntohs
(pckt->flow.port16[0]);
in encap_v4()
603
*pkt_bytes =
bpf_ntohs
(ip6h->payload_len);
in process_l3_headers_v6()
634
*pkt_bytes =
bpf_ntohs
(iph->tot_len);
in process_l3_headers_v4()
769
eth_proto =
bpf_ntohs
(eth->eth_proto);
in balancer_ingress_v4()
788
eth_proto =
bpf_ntohs
(eth->eth_proto);
in balancer_ingress_v6()
H
A
D
test_tunnel_kern.c
441
bpf_ntohs
(key.tunnel_flags));
in vxlan_get_tunnel_src()
591
bpf_ntohs
(key.tunnel_flags));
in ip6vxlan_get_tunnel_src()
860
if (
bpf_ntohs
(encap.dport) != 5555)
in ipip_encap_get_tunnel()
864
key.remote_ipv4,
bpf_ntohs
(encap.sport),
in ipip_encap_get_tunnel()
865
bpf_ntohs
(encap.dport));
in ipip_encap_get_tunnel()
/kernel/linux/linux-6.6/samples/bpf/
H
A
D
net_shared.h
24
#define
bpf_ntohs
(x) __builtin_bswap16(x)
macro
28
#define
bpf_ntohs
(x) (x)
macro
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H
A
D
nat6to4.c
77
if (
bpf_ntohs
(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr))
in sched_cls_ingress6_nat_6_prog()
98
.tot_len = bpf_htons(
bpf_ntohs
(ip6->payload_len) + sizeof(struct iphdr)), // u16
in sched_cls_ingress6_nat_6_prog()
196
if (
bpf_ntohs
(ip4->tot_len) < sizeof(*ip4))
in sched_cls_egress4_snat4_prog()
233
.payload_len = bpf_htons(
bpf_ntohs
(ip4->tot_len) - 20), // __be16
in sched_cls_egress4_snat4_prog()
Completed in 12 milliseconds
1
2