Home
last modified time | relevance | path

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

12345678910>>...29

/linux-6.6.21/arch/mips/cavium-octeon/
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-6.6.21/tools/testing/selftests/net/
Dgro.c169 struct in6_addr daddr; in tcp_checksum() member
175 struct in_addr daddr; in tcp_checksum() member
184 if (inet_pton(AF_INET6, addr6_dst, &ph6.daddr) != 1) in tcp_checksum()
193 if (inet_pton(AF_INET, addr4_dst, &ph4.daddr) != 1) in tcp_checksum()
235 if (inet_pton(AF_INET6, addr6_dst, &ip6h->daddr) != 1) in fill_networklayer()
249 if (inet_pton(AF_INET, addr4_dst, &iph->daddr) != 1) in fill_networklayer()
274 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet() argument
278 ret = sendto(fd, buf, len, 0, (struct sockaddr *)daddr, sizeof(*daddr)); in write_packet()
297 static void send_flags(int fd, struct sockaddr_ll *daddr, int psh, int syn, in send_flags() argument
321 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags()
[all …]
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-6.6.21/net/xfrm/
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-6.6.21/net/core/
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-6.6.21/net/ipv6/
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 …]
Dinet6_hashtables.c54 const struct in6_addr *daddr, in __inet6_lookup_established() argument
64 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
73 if (!inet6_match(net, sk, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established()
78 if (unlikely(!inet6_match(net, sk, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established()
95 const struct in6_addr *daddr, in compute_score() argument
102 if (!ipv6_addr_equal(&sk->sk_v6_rcv_saddr, daddr)) in compute_score()
134 const struct in6_addr *daddr, in inet6_lookup_reuseport() argument
143 net, daddr, hnum, saddr, sport); in inet6_lookup_reuseport()
155 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument
163 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
[all …]
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 …]
/linux-6.6.21/tools/testing/selftests/netfilter/
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-6.6.21/include/net/
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);
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,
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 …]
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 …]
/linux-6.6.21/include/trace/events/
Dtcp.h15 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \ argument
22 ipv6_addr_set_v4mapped(daddr, pin6); \
26 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
36 TP_STORE_V4MAPPED(__entry, saddr, daddr); \
40 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
41 TP_STORE_V4MAPPED(__entry, saddr, daddr)
64 __array(__u8, daddr, 4)
84 p32 = (__be32 *) __entry->daddr;
93 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
133 __array(__u8, daddr, 4)
[all …]
/linux-6.6.21/samples/bpf/
Dtc_l2_redirect_kern.c48 static __always_inline bool is_vip_addr(__be16 eth_proto, __be32 daddr) in is_vip_addr() argument
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()
138 bpf_trace_printk(fmt4, sizeof(fmt4), _htonl(daddr), *ifindex); in _l2_to_iptun_ingress_redirect()
173 if (!is_vip_addr(eth->h_proto, iph->daddr)) in _l2_to_ip6tun_ingress_redirect()
[all …]
/linux-6.6.21/drivers/edac/
Dpnd2_edac.c95 struct dram_addr *daddr, char *msg);
905 struct dram_addr *daddr, char *msg) in apl_pmi2mem() argument
962 daddr->col = column; in apl_pmi2mem()
963 daddr->bank = bank; in apl_pmi2mem()
964 daddr->row = row; in apl_pmi2mem()
965 daddr->rank = rank; in apl_pmi2mem()
966 daddr->dimm = 0; in apl_pmi2mem()
975 struct dram_addr *daddr, char *msg) in dnv_pmi2mem() argument
978 daddr->rank = dnv_get_bit(pmiaddr, dmap[pmiidx].rs0 + 13, 0); in dnv_pmi2mem()
980 daddr->rank |= dnv_get_bit(pmiaddr, dmap[pmiidx].rs1 + 13, 1); in dnv_pmi2mem()
[all …]
/linux-6.6.21/net/netfilter/
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-6.6.21/net/phonet/
Dpn_dev.c173 u8 phonet_address_get(struct net_device *dev, u8 daddr) in phonet_address_get() argument
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()
356 int phonet_route_add(struct net_device *dev, u8 daddr) in phonet_route_add() argument
362 daddr = daddr >> 2; in phonet_route_add()
364 if (routes->table[daddr] == NULL) { in phonet_route_add()
365 rcu_assign_pointer(routes->table[daddr], dev); in phonet_route_add()
373 int phonet_route_del(struct net_device *dev, u8 daddr) in phonet_route_del() argument
378 daddr = daddr >> 2; in phonet_route_del()
[all …]
/linux-6.6.21/net/ieee802154/6lowpan/
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-6.6.21/arch/s390/include/asm/
Dchecksum.h81 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
87 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
98 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
101 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
114 const struct in6_addr *daddr, in csum_ipv6_magic() argument
123 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
124 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
125 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
126 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dfib_lookup.c32 const char *daddr; member
41 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
43 .daddr = IPV6_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
46 .daddr = IPV6_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
49 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_NO_NEIGH, },
51 .daddr = IPV4_NUD_STALE_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
54 .daddr = IPV4_NUD_FAILED_ADDR, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
57 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_NOT_FWDED,
61 .daddr = IPV4_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_SUCCESS,
65 .daddr = IPV6_TBID_DST, .expected_ret = BPF_FIB_LKUP_RET_NOT_FWDED,
[all …]
/linux-6.6.21/arch/arm/include/asm/
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()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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-6.6.21/arch/parisc/include/asm/
Dchecksum.h74 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
84 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
92 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
111 const struct in6_addr *daddr, in csum_ipv6_magic() argument
169 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len), in csum_ipv6_magic()
171 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len) in csum_ipv6_magic()
/linux-6.6.21/net/ipv4/netfilter/
Dnf_socket_ipv4.c59 *raddr = inside_iph->daddr; in extract_icmp4_fields()
68 const __be32 saddr, const __be32 daddr, in nf_socket_get_sock_v4() argument
75 skb, doff, 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()

12345678910>>...29