Home
last modified time | relevance | path

Searched refs:daddr (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/linux/arch/mips/cavium-octeon/
H A Ddma-octeon.c32 phys_addr_t (*dma_to_phys)(struct device *dev, dma_addr_t daddr);
43 static phys_addr_t octeon_hole_dma_to_phys(dma_addr_t daddr) in octeon_hole_dma_to_phys() argument
45 if (daddr >= CVMX_PCIE_BAR1_RC_BASE) in octeon_hole_dma_to_phys()
46 return daddr + CVMX_PCIE_BAR1_PHYS_BASE - CVMX_PCIE_BAR1_RC_BASE; in octeon_hole_dma_to_phys()
48 return daddr; in octeon_hole_dma_to_phys()
58 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys() argument
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()
[all …]
/linux/tools/testing/selftests/net/
H A Dgro.c195 struct in6_addr daddr; in tcp_checksum() member
201 struct in_addr daddr; in tcp_checksum() member
210 if (inet_pton(AF_INET6, addr6_dst, &ph6.daddr) != 1) in tcp_checksum()
219 if (inet_pton(AF_INET, addr4_dst, &ph4.daddr) != 1) in tcp_checksum()
261 if (inet_pton(AF_INET6, addr6_dst, &ip6h->daddr) != 1) in fill_networklayer()
275 if (inet_pton(AF_INET, addr4_dst, &iph->daddr) != 1) in fill_networklayer()
300 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet() argument
304 ret = sendto(fd, buf, len, 0, (struct sockaddr *)daddr, sizeof(*daddr)); in write_packet()
323 static void send_flags(int fd, struct sockaddr_ll *daddr, int psh, int syn, in send_flags() argument
347 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags()
[all …]
H A Dpsock_lib.h79 struct sockaddr_in saddr, daddr; in pair_udp_open() local
93 memset(&daddr, 0, sizeof(daddr)); in pair_udp_open()
94 daddr.sin_family = AF_INET; in pair_udp_open()
95 daddr.sin_port = htons(port + 1); in pair_udp_open()
96 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
99 if (bind(fds[1], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
107 if (connect(fds[0], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
/linux/net/xfrm/
H A Dxfrm_hash.h19 static inline unsigned int __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm4_daddr_saddr_hash() argument
22 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; in __xfrm4_daddr_saddr_hash()
26 static inline unsigned int __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm6_daddr_saddr_hash() argument
29 return __xfrm6_addr_hash(daddr) ^ __xfrm6_addr_hash(saddr); in __xfrm6_daddr_saddr_hash()
44 static inline unsigned int __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr, in __xfrm4_dpref_spref_hash() argument
49 return jhash_2words(ntohl(daddr->a4) & __bits2mask32(dbits), in __xfrm4_dpref_spref_hash()
75 static inline unsigned int __xfrm6_dpref_spref_hash(const xfrm_address_t *daddr, in __xfrm6_dpref_spref_hash() argument
80 return __xfrm6_pref_hash(daddr, dbits) ^ in __xfrm6_dpref_spref_hash()
84 static inline unsigned int __xfrm_dst_hash(const xfrm_address_t *daddr, in __xfrm_dst_hash() argument
92 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash()
[all …]
/linux/net/core/
H A Dsecure_seq.c57 const __be32 *saddr, const __be32 *daddr) in secure_tcpv6_ts_off() argument
61 struct in6_addr daddr; in secure_tcpv6_ts_off() member
64 .daddr = *(struct in6_addr *)daddr, in secure_tcpv6_ts_off()
71 return siphash(&combined, offsetofend(typeof(combined), daddr), in secure_tcpv6_ts_off()
76 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr, in secure_tcpv6_seq() argument
81 struct in6_addr daddr; in secure_tcpv6_seq() member
86 .daddr = *(struct in6_addr *)daddr, in secure_tcpv6_seq()
99 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, in secure_ipv6_port_ephemeral() argument
104 struct in6_addr daddr; in secure_ipv6_port_ephemeral() member
109 .daddr = *(struct in6_addr *)daddr, in secure_ipv6_port_ephemeral()
[all …]
/linux/net/ipv6/
H A Drpl.c14 const struct in6_addr *daddr, in ipv6_rpl_addr_decompress() argument
17 memcpy(dst, daddr, pfx); in ipv6_rpl_addr_decompress()
34 const struct in6_addr *daddr, unsigned char n) in ipv6_rpl_srh_decompress() argument
47 ipv6_rpl_addr_decompress(&outhdr->rpl_segaddr[i], daddr, in ipv6_rpl_srh_decompress()
51 ipv6_rpl_addr_decompress(&outhdr->rpl_segaddr[n], daddr, in ipv6_rpl_srh_decompress()
57 const struct in6_addr *daddr, in ipv6_rpl_srh_calc_cmpri() argument
63 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri()
65 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri()
74 static unsigned char ipv6_rpl_srh_calc_cmpre(const struct in6_addr *daddr, in ipv6_rpl_srh_calc_cmpre() argument
79 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpre()
[all …]
H A Dinet6_hashtables.c53 const struct in6_addr *daddr, in __inet6_lookup_established() argument
63 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
72 if (!inet6_match(net, sk, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established()
77 if (unlikely(!inet6_match(net, sk, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established()
94 const struct in6_addr *daddr, in compute_score() argument
101 if (!ipv6_addr_equal(&sk->sk_v6_rcv_saddr, daddr)) in compute_score()
133 const struct in6_addr *daddr, in inet6_lookup_reuseport() argument
142 net, daddr, hnum, saddr, sport); in inet6_lookup_reuseport()
154 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument
162 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
[all …]
H A Dip6_checksum.c9 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 …]
H A Dsyncookies.c41 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
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()
104 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c47 const char *daddr; member
59 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
61 .daddr = IPV6_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
64 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
67 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
69 .daddr = IPV4_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
72 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
75 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_NOT_FWDED,
79 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
83 .daddr = IPV6_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_NOT_FWDED,
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dsctp_collision.c11 struct sockaddr_in saddr = {}, daddr = {}; in main() local
12 int sd, ret, len = sizeof(daddr); in main()
44 daddr.sin_family = AF_INET; in main()
45 daddr.sin_addr.s_addr = inet_addr(argv[4]); in main()
46 daddr.sin_port = htons(atoi(argv[5])); in main()
57 ret = connect(sd, (struct sockaddr *)&daddr, len); in main()
62 ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); in main()
67 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main()
77 ret = connect(sd, (struct sockaddr *)&daddr, len); in main()
83 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main()
[all …]
/linux/include/net/
H A Dip6_checksum.h35 const struct in6_addr *daddr,
42 &ipv6_hdr(skb)->daddr, in ip6_compute_pseudo()
48 const struct in6_addr *daddr, in tcp_v6_check() argument
51 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check()
56 const struct in6_addr *daddr) in __tcp_v6_send_check() argument
60 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check()
71 th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0); in tcp_v6_gso_csum_prep()
76 const struct in6_addr *daddr, in udp_v6_check() argument
79 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, base); in udp_v6_check()
84 const struct in6_addr *daddr, int len);
H A Dinetpeer.h38 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 …]
H A Dsecure_seq.h9 u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
10 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
12 u32 secure_tcp_seq(__be32 saddr, __be32 daddr,
14 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr);
15 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr,
18 const __be32 *saddr, const __be32 *daddr);
19 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr,
21 u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
H A Dinet6_hashtables.h47 const struct in6_addr *daddr,
63 const struct in6_addr *daddr,
72 const struct in6_addr *daddr,
81 const struct in6_addr *daddr,
90 const struct in6_addr *daddr, in __inet6_lookup() argument
96 sport, daddr, hnum, in __inet6_lookup()
103 daddr, hnum, dif, sdif); in __inet6_lookup()
109 const struct in6_addr *daddr, const __be16 dport, in inet6_steal_sock() argument
133 saddr, sport, daddr, ntohs(dport), in inet6_steal_sock()
157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
[all …]
H A Droute.h100 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) in rt_nexthop() argument
104 return daddr; in rt_nexthop()
158 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() argument
166 .daddr = daddr, in ip_route_output()
175 __be32 daddr, __be32 saddr, in ip_route_output_ports() argument
182 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports()
189 __be32 daddr, __be32 saddr, in ip_route_output_gre() argument
194 fl4->daddr = daddr; in ip_route_output_gre()
203 ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr,
207 ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
[all …]
/linux/drivers/edac/
H A Dpnd2_edac.c97 struct dram_addr *daddr, char *msg);
906 struct dram_addr *daddr, char *msg) in apl_pmi2mem() argument
963 daddr->col = column; in apl_pmi2mem()
964 daddr->bank = bank; in apl_pmi2mem()
965 daddr->row = row; in apl_pmi2mem()
966 daddr->rank = rank; in apl_pmi2mem()
967 daddr->dimm = 0; in apl_pmi2mem()
976 struct dram_addr *daddr, char *msg) in dnv_pmi2mem() argument
979 daddr->rank = dnv_get_bit(pmiaddr, dmap[pmiidx].rs0 + 13, 0); in dnv_pmi2mem()
981 daddr->rank |= dnv_get_bit(pmiaddr, dmap[pmiidx].rs1 + 13, 1); in dnv_pmi2mem()
[all …]
/linux/net/netfilter/
H A Dnft_chain_route.c22 __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/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.h53 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
59 s += (__force u32)daddr; in csum_tcpudp_nofold()
78 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
81 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
86 const struct in6_addr *daddr, in csum_ipv6_magic() argument
110 sum += (__force u32)daddr->in6_u.u6_addr32[0]; in csum_ipv6_magic()
111 carry = (sum < (__force u32)daddr->in6_u.u6_addr32[0]); in csum_ipv6_magic()
114 sum += (__force u32)daddr->in6_u.u6_addr32[1]; in csum_ipv6_magic()
115 carry = (sum < (__force u32)daddr->in6_u.u6_addr32[1]); in csum_ipv6_magic()
118 sum += (__force u32)daddr->in6_u.u6_addr32[2]; in csum_ipv6_magic()
[all …]
H A Dconnect6_prog.c38 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/net/ieee802154/6lowpan/
H A Dtx.c14 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()
56 if (!memcmp(daddr, ldev->broadcast, EUI64_ADDR_LEN)) { in lowpan_header_create()
57 info->daddr.short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); 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()
[all …]
/linux/include/trace/events/
H A Dtcp.h36 __array(__u8, daddr, 4)
56 p32 = (__be32 *) __entry->daddr;
66 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
105 __array(__u8, daddr, sizeof(struct sockaddr_in6))
115 memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
127 TP_STORE_ADDR_PORTS_SKB(skb__nullable, th, entry->daddr, entry->saddr);
134 __entry->saddr, __entry->daddr,
159 __array(__u8, daddr, 4)
178 p32 = (__be32 *) __entry->daddr;
190 __entry->saddr, __entry->daddr,
[all …]
H A Dnet_probe_common.h13 v4 = (void *)__entry->daddr; \
29 v6 = (void *)__entry->daddr; \
44 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \ argument
51 ipv6_addr_set_v4mapped(daddr, pin6); \
55 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
65 TP_STORE_V4MAPPED(__entry, saddr, daddr); \
69 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
70 TP_STORE_V4MAPPED(__entry, saddr, daddr)
83 v4->sin_addr.s_addr = ip_hdr(skb)->daddr; \
101 v6->sin6_addr = ipv6_hdr(skb)->daddr; \
/linux/arch/s390/include/asm/
H A Dchecksum.h76 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
82 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
93 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
96 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
109 const struct in6_addr *daddr, in csum_ipv6_magic() argument
118 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
119 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
120 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
121 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/linux/arch/arm/include/asm/
H A Dchecksum.h100 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
114 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
127 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
137 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
156 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
160 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
163 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()

12345678910>>...27