/linux/arch/mips/cavium-octeon/ |
A D | dma-octeon.c | 48 return daddr; in octeon_hole_dma_to_phys() 60 daddr = octeon_hole_dma_to_phys(daddr); in octeon_gen1_dma_to_phys() 62 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_gen1_dma_to_phys() 63 daddr += 0x400000000ull; in octeon_gen1_dma_to_phys() 65 return daddr; in octeon_gen1_dma_to_phys() 105 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_big_dma_to_phys() 106 daddr += 0x400000000ull; in octeon_big_dma_to_phys() 107 return daddr; in octeon_big_dma_to_phys() 138 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_small_dma_to_phys() 140 return daddr; in octeon_small_dma_to_phys() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | gro.c | 168 struct in6_addr daddr; in tcp_checksum() member 174 struct in_addr daddr; in tcp_checksum() member 277 ret = sendto(fd, buf, len, 0, (struct sockaddr *)daddr, sizeof(*daddr)); in write_packet() 720 daddr.sll_family = AF_PACKET; in bind_packetsocket() 723 if (daddr.sll_ifindex == 0) in bind_packetsocket() 726 if (bind(fd, (void *)&daddr, sizeof(daddr)) < 0) in bind_packetsocket() 812 memset(&daddr, 0, sizeof(daddr)); in gro_sender() 814 if (daddr.sll_ifindex == 0) in gro_sender() 816 daddr.sll_family = AF_PACKET; in gro_sender() 818 daddr.sll_halen = ETH_ALEN; in gro_sender() [all …]
|
A D | psock_lib.h | 77 struct sockaddr_in saddr, daddr; in pair_udp_open() local 91 memset(&daddr, 0, sizeof(daddr)); in pair_udp_open() 92 daddr.sin_family = AF_INET; in pair_udp_open() 93 daddr.sin_port = htons(port + 1); in pair_udp_open() 94 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open() 97 if (bind(fds[1], (void *) &daddr, sizeof(daddr))) { in pair_udp_open() 105 if (connect(fds[0], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
|
/linux/net/core/ |
A D | secure_seq.c | 55 const __be32 *saddr, const __be32 *daddr) in secure_tcpv6_ts_off() argument 59 struct in6_addr daddr; in secure_tcpv6_ts_off() member 62 .daddr = *(struct in6_addr *)daddr, in secure_tcpv6_ts_off() 79 struct in6_addr daddr; in secure_tcpv6_seq() member 84 .daddr = *(struct in6_addr *)daddr, in secure_tcpv6_seq() 102 struct in6_addr daddr; in secure_ipv6_port_ephemeral() member 106 .daddr = *(struct in6_addr *)daddr, in secure_ipv6_port_ephemeral() 132 u32 secure_tcp_seq(__be32 saddr, __be32 daddr, in secure_tcp_seq() argument 155 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, in secure_dccp_sequence_number() argument 175 struct in6_addr daddr; in secure_dccpv6_sequence_number() member [all …]
|
/linux/net/xfrm/ |
A D | xfrm_hash.h | 22 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; in __xfrm4_daddr_saddr_hash() 29 return __xfrm6_addr_hash(daddr) ^ __xfrm6_addr_hash(saddr); in __xfrm6_daddr_saddr_hash() 49 return jhash_2words(ntohl(daddr->a4) & __bits2mask32(dbits), in __xfrm4_dpref_spref_hash() 80 return __xfrm6_pref_hash(daddr, dbits) ^ in __xfrm6_dpref_spref_hash() 92 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash() 95 h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash() 109 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_src_hash() 112 h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); in __xfrm_src_hash() 125 h ^= __xfrm4_addr_hash(daddr); in __xfrm_spi_hash() 128 h ^= __xfrm6_addr_hash(daddr); in __xfrm_spi_hash() [all …]
|
/linux/include/net/ |
A D | ip6_checksum.h | 35 const struct in6_addr *daddr, 42 &ipv6_hdr(skb)->daddr, in ip6_compute_pseudo() 50 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr, in ip6_gro_compute_pseudo() 56 const struct in6_addr *daddr, in tcp_v6_check() argument 59 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check() 64 const struct in6_addr *daddr) in __tcp_v6_send_check() argument 69 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check() 73 th->check = tcp_v6_check(skb->len, saddr, daddr, in __tcp_v6_send_check() 90 const struct in6_addr *daddr, in udp_v6_check() argument 93 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, base); in udp_v6_check() [all …]
|
A D | inetpeer.h | 38 struct inetpeer_addr daddr; member 99 const struct inetpeer_addr *daddr, 106 struct inetpeer_addr daddr; in inet_getpeer_v4() local 108 daddr.a4.addr = v4daddr; in inet_getpeer_v4() 109 daddr.a4.vif = vif; in inet_getpeer_v4() 110 daddr.family = AF_INET; in inet_getpeer_v4() 111 return inet_getpeer(base, &daddr, create); in inet_getpeer_v4() 118 struct inetpeer_addr daddr; in inet_getpeer_v6() local 120 daddr.a6 = *v6daddr; in inet_getpeer_v6() 121 daddr.family = AF_INET6; in inet_getpeer_v6() [all …]
|
A D | secure_seq.h | 7 u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport); 8 u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, 10 u32 secure_tcp_seq(__be32 saddr, __be32 daddr, 12 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr); 13 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr, 16 const __be32 *saddr, const __be32 *daddr); 17 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, 19 u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
|
/linux/net/ipv6/ |
A D | rpl.c | 14 const struct in6_addr *daddr, in ipv6_rpl_addr_decompress() argument 17 memcpy(dst, daddr, pfx); in ipv6_rpl_addr_decompress() 40 const struct in6_addr *daddr, unsigned char n) in ipv6_rpl_srh_decompress() argument 53 ipv6_rpl_addr_decompress(&outhdr->rpl_segaddr[i], daddr, in ipv6_rpl_srh_decompress() 57 ipv6_rpl_addr_decompress(&outhdr->rpl_segaddr[n], daddr, in ipv6_rpl_srh_decompress() 63 const struct in6_addr *daddr, in ipv6_rpl_srh_calc_cmpri() argument 69 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri() 71 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri() 85 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpre() 95 const struct in6_addr *daddr, unsigned char n) in ipv6_rpl_srh_compress() argument [all …]
|
A D | inet6_hashtables.c | 55 const struct in6_addr *daddr, in __inet6_lookup_established() argument 96 const struct in6_addr *daddr, in compute_score() argument 103 if (!ipv6_addr_equal(&sk->sk_v6_rcv_saddr, daddr)) in compute_score() 120 const struct in6_addr *daddr, in lookup_reuseport() argument 138 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument 150 saddr, sport, daddr, hnum); in inet6_lhash2_lookup() 167 const struct in6_addr *daddr, in inet6_lookup_run_bpf() argument 177 saddr, sport, daddr, hnum, &sk); in inet6_lookup_run_bpf() 201 saddr, sport, daddr, hnum); in inet6_lookup_listener() 206 hash2 = ipv6_portaddr_hash(net, daddr, hnum); in inet6_lookup_listener() [all …]
|
A D | ip6_checksum.c | 9 const struct in6_addr *daddr, in csum_ipv6_magic() argument 34 sum += (__force u32)daddr->s6_addr32[0]; in csum_ipv6_magic() 35 carry = (sum < (__force u32)daddr->s6_addr32[0]); in csum_ipv6_magic() 38 sum += (__force u32)daddr->s6_addr32[1]; in csum_ipv6_magic() 39 carry = (sum < (__force u32)daddr->s6_addr32[1]); in csum_ipv6_magic() 42 sum += (__force u32)daddr->s6_addr32[2]; in csum_ipv6_magic() 43 carry = (sum < (__force u32)daddr->s6_addr32[2]); in csum_ipv6_magic() 46 sum += (__force u32)daddr->s6_addr32[3]; in csum_ipv6_magic() 47 carry = (sum < (__force u32)daddr->s6_addr32[3]); in csum_ipv6_magic() 117 const struct in6_addr *daddr, int len) in udp6_set_csum() argument [all …]
|
A D | udp.c | 236 daddr, hnum, dif, sdif, in __udp6_lib_lookup() 565 const struct in6_addr *daddr = seg6_get_daddr(skb, opt) ? : &hdr->daddr; in __udp6_lib_err() local 925 daddr = &ipv6_hdr(skb)->daddr; in __udp6_lib_rcv() 946 daddr = &ipv6_hdr(skb)->daddr; in __udp6_lib_rcv() 1331 daddr); in udpv6_sendmsg() 1338 daddr = NULL; in udpv6_sendmsg() 1346 daddr = &sk->sk_v6_daddr; in udpv6_sendmsg() 1348 daddr = NULL; in udpv6_sendmsg() 1350 if (daddr) { in udpv6_sendmsg() 1400 daddr = &sin6->sin6_addr; in udpv6_sendmsg() [all …]
|
A D | syncookies.c | 41 const struct in6_addr *daddr, in cookie_hash() argument 46 struct in6_addr daddr; in cookie_hash() member 52 .daddr = *daddr, in cookie_hash() 64 const struct in6_addr *daddr, 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 88 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie() 164 ipv6_hdr(skb)->daddr.s6_addr32, in cookie_v6_check() 188 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in cookie_v6_check() [all …]
|
/linux/drivers/edac/ |
A D | pnd2_edac.c | 984 daddr->col = column; in apl_pmi2mem() 985 daddr->bank = bank; in apl_pmi2mem() 986 daddr->row = row; in apl_pmi2mem() 987 daddr->rank = rank; in apl_pmi2mem() 988 daddr->dimm = 0; in apl_pmi2mem() 1008 daddr->dimm = (daddr->rank >= 2) ^ drp[pmiidx].dimmflip; in dnv_pmi2mem() 1131 daddr->chan = pmiidx; in get_memory_error_data() 1138 addr, pmiaddr, daddr->chan, daddr->dimm, daddr->rank, daddr->bank, daddr->row, daddr->col); in get_memory_error_data() 1208 errcode, daddr->chan, daddr->dimm, daddr->rank, daddr->row, daddr->bank, daddr->col); in pnd2_mce_output_error() 1214 m->addr & ~PAGE_MASK, 0, daddr->chan, daddr->dimm, -1, optype, msg); in pnd2_mce_output_error() [all …]
|
/linux/include/trace/events/ |
A D | tcp.h | 22 ipv6_addr_set_v4mapped(daddr, pin6); \ 64 __array(__u8, daddr, 4) 84 p32 = (__be32 *) __entry->daddr; 133 __array(__u8, daddr, 4) 152 p32 = (__be32 *) __entry->daddr; 164 __entry->saddr, __entry->daddr, 203 __array(__u8, daddr, 4) 222 p32 = (__be32 *) __entry->daddr; 232 __entry->saddr, __entry->daddr, 306 v4 = (void *)__entry->daddr; \ [all …]
|
/linux/samples/bpf/ |
A D | tc_l2_redirect_kern.c | 51 return (_htonl(0xffffff00) & daddr) == _htonl(0x0a0a0100); in is_vip_addr() 53 return (daddr == _htonl(0x2401face)); in is_vip_addr() 87 _htonl(iph->daddr)); in _l2_to_iptun_ingress_forward() 101 _htonl(ip6h->daddr.s6_addr32[0]), in _l2_to_iptun_ingress_forward() 102 _htonl(ip6h->daddr.s6_addr32[3])); in _l2_to_iptun_ingress_forward() 130 __be32 daddr = iph->daddr; in _l2_to_iptun_ingress_redirect() local 135 if (!is_vip_addr(eth->h_proto, daddr)) in _l2_to_iptun_ingress_redirect() 173 if (!is_vip_addr(eth->h_proto, iph->daddr)) in _l2_to_ip6tun_ingress_redirect() 176 bpf_trace_printk(fmt4, sizeof(fmt4), _htonl(iph->daddr), in _l2_to_ip6tun_ingress_redirect() 189 _htonl(ip6h->daddr.s6_addr32[0]), *ifindex); in _l2_to_ip6tun_ingress_redirect() [all …]
|
/linux/net/netfilter/ |
A D | nft_chain_route.c | 22 __be32 saddr, daddr; in nf_route_table_hook4() local 34 daddr = iph->daddr; in nf_route_table_hook4() 42 iph->daddr != daddr || in nf_route_table_hook4() 69 struct in6_addr saddr, daddr; in nf_route_table_hook6() local 81 memcpy(&daddr, &ipv6_hdr(skb)->daddr, sizeof(daddr)); in nf_route_table_hook6() 91 memcmp(&ipv6_hdr(skb)->daddr, &daddr, sizeof(daddr)) || in nf_route_table_hook6()
|
/linux/net/phonet/ |
A D | pn_dev.c | 184 if (test_bit(daddr >> 2, pnd->addrs)) in phonet_address_get() 185 saddr = daddr; in phonet_address_get() 199 saddr = phonet_address_get(def_dev, daddr); in phonet_address_get() 362 daddr = daddr >> 2; in phonet_route_add() 364 if (routes->table[daddr] == NULL) { in phonet_route_add() 378 daddr = daddr >> 2; in phonet_route_del() 381 RCU_INIT_POINTER(routes->table[daddr], NULL); in phonet_route_del() 399 daddr >>= 2; in phonet_route_get_rcu() 400 dev = rcu_dereference(routes->table[daddr]); in phonet_route_get_rcu() 410 daddr >>= 2; in phonet_route_output() [all …]
|
/linux/net/ieee802154/6lowpan/ |
A D | tx.c | 14 struct ieee802154_addr daddr; member 34 unsigned short type, const void *daddr, in lowpan_header_create() argument 43 if (!daddr) in lowpan_header_create() 54 info->daddr.pan_id = info->saddr.pan_id; in lowpan_header_create() 58 info->daddr.mode = IEEE802154_ADDR_SHORT; in lowpan_header_create() 62 n = neigh_lookup(&nd_tbl, &hdr->daddr, ldev); in lowpan_header_create() 72 info->daddr.short_addr = short_addr; in lowpan_header_create() 73 info->daddr.mode = IEEE802154_ADDR_SHORT; in lowpan_header_create() 75 info->daddr.mode = IEEE802154_ADDR_LONG; in lowpan_header_create() 77 daddr); in lowpan_header_create() [all …]
|
/linux/arch/s390/include/asm/ |
A D | checksum.h | 80 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument 86 csum += (__force __u32)daddr; in csum_tcpudp_nofold() 97 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument 100 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 113 const struct in6_addr *daddr, in csum_ipv6_magic() argument 122 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic() 123 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic() 124 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic() 125 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
|
/linux/net/llc/ |
A D | llc_c_ac.c | 208 llc->daddr.lsap, LLC_PDU_CMD); in llc_conn_ac_send_disc_cmd_p_set_x() 235 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_send_dm_rsp_f_set_p() 259 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_send_dm_rsp_f_set_1() 292 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_send_frmr_rsp_f_set_x() 319 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_resend_frmr_rsp_f_set_0() 349 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_resend_frmr_rsp_f_set_p() 371 llc->daddr.lsap, LLC_PDU_CMD); in llc_conn_ac_send_i_cmd_p_set_1() 389 llc->daddr.lsap, LLC_PDU_CMD); in llc_conn_ac_send_i_cmd_p_set_0() 407 llc->daddr.lsap, LLC_PDU_CMD); in llc_conn_ac_send_i_xxx_x_set_0() 440 llc->daddr.lsap, LLC_PDU_RSP); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | connect6_prog.c | 38 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog() 39 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog() 40 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog() 41 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog() 57 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog() 58 sk->src_ip6[1] != tuple.ipv6.daddr[1] || in connect_v6_prog() 59 sk->src_ip6[2] != tuple.ipv6.daddr[2] || in connect_v6_prog() 60 sk->src_ip6[3] != tuple.ipv6.daddr[3] || in connect_v6_prog()
|
/linux/arch/arm/include/asm/ |
A D | checksum.h | 99 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument 113 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold() 126 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold() 136 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument 139 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 155 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len, 159 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument 162 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
|
/linux/net/ipv4/ |
A D | route.c | 419 pkey = skb ? ip_hdr(skb)->daddr : *((__be32 *) daddr); in ipv4_neigh_lookup() 441 } else if (!daddr || in ipv4_confirm_neigh() 800 __be32 daddr = iph->daddr; in __ip_do_redirect() local 1268 .daddr = iph->daddr, in ip_rt_get_source() 1433 rt->rt_gw4 = daddr; in rt_bind_exception() 2233 if (ipv4_is_lbcast(daddr) || (saddr == 0 && daddr == 0)) in ip_route_input_slow() 2265 fl4.daddr = daddr; in ip_route_input_slow() 2718 if (!fl4->daddr) { in ip_route_output_key_hash_rcu() 2720 if (!fl4->daddr) in ip_route_output_key_hash_rcu() 3147 iph->daddr = dst; in inet_rtm_getroute_build_skb() [all …]
|
/linux/net/ipv4/netfilter/ |
A D | nf_socket_ipv4.c | 59 *raddr = inside_iph->daddr; in extract_icmp4_fields() 68 const __be32 saddr, const __be32 daddr, 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() 87 __be32 daddr, saddr; in nf_sk_lookup_slow_v4() local 111 daddr = iph->daddr; in nf_sk_lookup_slow_v4() 119 if (extract_icmp4_fields(skb, &protocol, &saddr, &daddr, in nf_sk_lookup_slow_v4() 139 daddr = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_sk_lookup_slow_v4() 147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
|