/net/core/ |
D | secure_seq.c | 77 __be16 sport, __be16 dport) in secure_tcpv6_seq() argument 82 __be16 sport; in secure_tcpv6_seq() member 87 .sport = sport, in secure_tcpv6_seq() 137 __be16 sport, __be16 dport) in secure_tcp_seq() argument 143 (__force u32)sport << 16 | (__force u32)dport, in secure_tcp_seq() 162 __be16 sport, __be16 dport) in secure_dccp_sequence_number() argument 167 (__force u32)sport << 16 | (__force u32)dport, in secure_dccp_sequence_number() 177 __be16 sport, __be16 dport) in secure_dccpv6_sequence_number() argument 182 __be16 sport; in secure_dccpv6_sequence_number() member 187 .sport = sport, in secure_dccpv6_sequence_number()
|
/net/ipv6/ |
D | inet6_hashtables.c | 54 const __be16 sport, in __inet6_lookup_established() argument 61 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established() 65 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established() 119 __be16 sport, in lookup_reuseport() argument 127 phash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in lookup_reuseport() 138 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument 150 saddr, sport, daddr, hnum); in inet6_lhash2_lookup() 166 const __be16 sport, in inet6_lookup_run_bpf() argument 177 saddr, sport, daddr, hnum, &sk); in inet6_lookup_run_bpf() 181 reuse_sk = lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum); in inet6_lookup_run_bpf() [all …]
|
D | fou6.c | 22 struct flowi6 *fl6, u8 *protocol, __be16 sport) in fou6_build_udp() argument 32 uh->source = sport; in fou6_build_udp() 43 __be16 sport; in fou6_build_header() local 48 err = __fou_build_header(skb, e, protocol, &sport, type); in fou6_build_header() 52 fou6_build_udp(skb, e, fl6, protocol, sport); in fou6_build_header() 60 __be16 sport; in gue6_build_header() local 65 err = __gue_build_header(skb, e, protocol, &sport, type); in gue6_build_header() 69 fou6_build_udp(skb, e, fl6, protocol, sport); in gue6_build_header()
|
D | syncookies.c | 42 __be16 sport, __be16 dport, u32 count, int c) in cookie_hash() argument 48 __be16 sport; in cookie_hash() member 54 .sport = sport, in cookie_hash() 65 __be16 sport, __be16 dport, __u32 sseq, in secure_tcp_syn_cookie() argument 69 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) + in secure_tcp_syn_cookie() 71 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie() 76 const struct in6_addr *daddr, __be16 sport, in check_tcp_syn_cookie() argument 81 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie() 88 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie()
|
D | udp.c | 115 const struct in6_addr *saddr, __be16 sport, in compute_score() argument 135 if (inet->inet_dport != sport) in compute_score() 161 __be16 sport, in lookup_reuseport() argument 169 hash = udp6_ehashfn(net, daddr, hnum, saddr, sport); in lookup_reuseport() 178 const struct in6_addr *saddr, __be16 sport, in udp6_lib_lookup2() argument 189 score = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2() 193 result = lookup_reuseport(net, sk, skb, saddr, sport, daddr, hnum); in udp6_lib_lookup2() 207 badness = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2() 218 __be16 sport, in udp6_lookup_run_bpf() argument 229 saddr, sport, daddr, hnum, &sk); in udp6_lookup_run_bpf() [all …]
|
D | esp6.c | 156 __be16 sport, dport; in esp6_find_tcp_sk() local 165 sport = encap->encap_sport; in esp6_find_tcp_sk() 182 dport, &x->props.saddr.in6, ntohs(sport), 0, 0); in esp6_find_tcp_sk() 194 if (encap->encap_sport != sport || in esp6_find_tcp_sk() 382 __be16 sport, in esp6_output_udp_encap() argument 394 uh->source = sport; in esp6_output_udp_encap() 450 __be16 sport, dport; in esp6_output_encap() local 454 sport = encap->encap_sport; in esp6_output_encap() 463 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap()
|
D | udp_offload.c | 114 static struct sock *udp6_gro_lookup_skb(struct sk_buff *skb, __be16 sport, in udp6_gro_lookup_skb() argument 119 return __udp6_lib_lookup(dev_net(skb->dev), &iph->saddr, sport, in udp6_gro_lookup_skb()
|
D | mip6.c | 238 sel.sport = xfrm_flowi_sport(fl, &fl6->uli); in mip6_destopt_reject() 239 if (sel.sport) in mip6_destopt_reject()
|
/net/ipv6/netfilter/ |
D | nf_socket_ipv6.c | 81 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v6() argument 87 saddr, sport, daddr, dport, in nf_socket_get_sock_v6() 90 return udp6_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v6() 100 __be16 dport, sport; in nf_sk_lookup_slow_v6() local 123 sport = hp->source; in nf_sk_lookup_slow_v6() 133 &sport, &dport, &ipv6_var)) in nf_sk_lookup_slow_v6() 140 sport, dport, indev); in nf_sk_lookup_slow_v6()
|
D | nf_tproxy_ipv6.c | 79 const __be16 sport, const __be16 dport, in nf_tproxy_get_sock_v6() argument 98 saddr, sport, in nf_tproxy_get_sock_v6() 112 saddr, sport, daddr, ntohs(dport), in nf_tproxy_get_sock_v6() 121 sk = udp6_lib_lookup(net, saddr, sport, daddr, dport, in nf_tproxy_get_sock_v6() 145 protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v6()
|
/net/ipv4/netfilter/ |
D | nf_socket_ipv4.c | 69 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v4() argument 75 saddr, sport, daddr, dport, in nf_socket_get_sock_v4() 78 return udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v4() 88 __be16 dport, sport; in nf_sk_lookup_slow_v4() local 110 sport = hp->source; in nf_sk_lookup_slow_v4() 120 &sport, &dport)) in nf_sk_lookup_slow_v4() 147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
|
D | nf_tproxy_ipv4.c | 78 const __be16 sport, const __be16 dport, in nf_tproxy_get_sock_v4() argument 98 saddr, sport, in nf_tproxy_get_sock_v4() 112 saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4() 121 sk = udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4() 146 protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v4()
|
D | ipt_CLUSTERIP.c | 342 u_int16_t sport = 0, dport = 0; in clusterip_hashfn() local 352 sport = ports[0]; in clusterip_hashfn() 365 hashval = jhash_2words(ntohl(iph->saddr), sport, in clusterip_hashfn() 369 hashval = jhash_3words(ntohl(iph->saddr), sport, dport, in clusterip_hashfn()
|
/net/ipv4/ |
D | syncookies.c | 47 static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, in cookie_hash() argument 52 (__force u32)sport << 16 | (__force u32)dport, in cookie_hash() 85 static __u32 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, in secure_tcp_syn_cookie() argument 99 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) + in secure_tcp_syn_cookie() 101 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie() 115 __be16 sport, __be16 dport, __u32 sseq) in check_tcp_syn_cookie() argument 120 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie() 128 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie()
|
D | inet_hashtables.c | 257 __be32 saddr, __be16 sport, in lookup_reuseport() argument 264 phash = inet_ehashfn(net, daddr, hnum, saddr, sport); in lookup_reuseport() 281 const __be32 saddr, __be16 sport, in inet_lhash2_lookup() argument 294 saddr, sport, daddr, hnum); in inet_lhash2_lookup() 309 __be32 saddr, __be16 sport, in inet_lookup_run_bpf() argument 319 saddr, sport, daddr, hnum, &sk); in inet_lookup_run_bpf() 323 reuse_sk = lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum); in inet_lookup_run_bpf() 332 const __be32 saddr, __be16 sport, in __inet_lookup_listener() argument 343 saddr, sport, daddr, hnum); in __inet_lookup_listener() 352 saddr, sport, daddr, hnum, in __inet_lookup_listener() [all …]
|
D | fou.c | 972 u8 *protocol, __be16 *sport, int type) in __fou_build_header() argument 980 *sport = e->sport ? : udp_flow_src_port(dev_net(skb->dev), in __fou_build_header() 988 u8 *protocol, __be16 *sport, int type) in __gue_build_header() argument 1010 *sport = e->sport ? : udp_flow_src_port(dev_net(skb->dev), in __gue_build_header() 1063 struct flowi4 *fl4, u8 *protocol, __be16 sport) in fou_build_udp() argument 1073 uh->source = sport; in fou_build_udp() 1086 __be16 sport; in fou_build_header() local 1089 err = __fou_build_header(skb, e, protocol, &sport, type); in fou_build_header() 1093 fou_build_udp(skb, e, fl4, protocol, sport); in fou_build_header() 1103 __be16 sport; in gue_build_header() local [all …]
|
D | udp.c | 359 __be32 saddr, __be16 sport, in compute_score() argument 385 if (inet->inet_dport != sport) in compute_score() 416 __be32 saddr, __be16 sport, in lookup_reuseport() argument 423 hash = udp_ehashfn(net, daddr, hnum, saddr, sport); in lookup_reuseport() 432 __be32 saddr, __be16 sport, in udp4_lib_lookup2() argument 444 score = compute_score(sk, net, saddr, sport, in udp4_lib_lookup2() 448 result = lookup_reuseport(net, sk, skb, saddr, sport, daddr, hnum); in udp4_lib_lookup2() 462 badness = compute_score(result, net, saddr, sport, in udp4_lib_lookup2() 473 __be32 saddr, __be16 sport, in udp4_lookup_run_bpf() argument 483 saddr, sport, daddr, hnum, &sk); in udp4_lookup_run_bpf() [all …]
|
D | esp4.c | 140 __be16 sport, dport; in esp_find_tcp_sk() local 149 sport = encap->encap_sport; in esp_find_tcp_sk() 166 dport, x->props.saddr.a4, sport, 0); in esp_find_tcp_sk() 178 if (encap->encap_sport != sport || in esp_find_tcp_sk() 347 __be16 sport, in esp_output_udp_encap() argument 359 uh->source = sport; in esp_output_udp_encap() 415 __be16 sport, dport; in esp_output_encap() local 419 sport = encap->encap_sport; in esp_output_encap() 428 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap()
|
D | inet_diag.c | 40 u16 sport; member 667 yes = entry->sport == op[1].no; in inet_diag_bc_run() 670 yes = entry->sport >= op[1].no; in inet_diag_bc_run() 673 yes = entry->sport <= op[1].no; in inet_diag_bc_run() 695 entry->sport : entry->dport)) { in inet_diag_bc_run() 794 entry.sport = inet->inet_num; in inet_diag_bc_sk()
|
/net/bridge/netfilter/ |
D | ebt_ip.c | 84 src < info->sport[0] || in ebt_ip_mt() 85 src > info->sport[1])) in ebt_ip_mt() 126 if (info->bitmask & EBT_IP_SPORT && info->sport[0] > info->sport[1]) in ebt_ip_mt_check()
|
D | ebt_ip6.c | 91 src < info->sport[0] || in ebt_ip6_mt() 92 src > info->sport[1])) in ebt_ip6_mt() 127 if (info->bitmask & EBT_IP6_SPORT && info->sport[0] > info->sport[1]) in ebt_ip6_mt_check()
|
/net/dccp/ |
D | trace.h | 24 __field(__u16, sport) 49 __entry->sport = ntohs(inet->inet_sport);
|
/net/phonet/ |
D | socket.c | 471 int pn_sock_get_port(struct sock *sk, unsigned short sport) in pn_sock_get_port() argument 482 if (!sport) { in pn_sock_get_port() 495 sport = port_cur; in pn_sock_get_port() 502 pn_sockaddr_set_port(&try_sa, sport); in pn_sock_get_port() 514 pn->sobject = pn_object(pn_addr(pn->sobject), sport); in pn_sock_get_port()
|
/net/rds/ |
D | rds.h | 198 #define RDS_HS_PROBE(sport, dport) \ argument 199 ((sport == RDS_FLAG_PROBE_PORT && dport == 0) || \ 200 (sport == 0 && dport == RDS_FLAG_PROBE_PORT)) 858 void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
|
D | send.c | 820 struct rds_message *rm, __be16 sport, in rds_send_queue_rm() argument 862 rds_message_populate_header(&rm->m_inc.i_hdr, sport, dport, 0); in rds_send_queue_rm() 1423 rds_send_probe(struct rds_conn_path *cp, __be16 sport, in rds_send_probe() argument 1452 rds_message_populate_header(&rm->m_inc.i_hdr, sport, dport, in rds_send_probe() 1457 if (RDS_HS_PROBE(be16_to_cpu(sport), be16_to_cpu(dport)) && in rds_send_probe()
|