Searched refs:daddr (Results 151 - 175 of 730) sorted by relevance

1234567891011>>

/linux-master/net/ipv6/
H A Dnetfilter.c31 int strict = (ipv6_addr_type(&iph->daddr) &
37 .daddr = iph->daddr,
91 if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
153 frag_id = ipv6_select_ident(net, &ipv6_hdr(skb)->daddr,
H A Dxfrm6_policy.c28 const xfrm_address_t *daddr,
38 memcpy(&fl6.daddr, daddr, sizeof(fl6.daddr));
54 xfrm_address_t *saddr, xfrm_address_t *daddr,
60 dst = xfrm6_dst_lookup(net, 0, oif, NULL, daddr, mark);
65 ipv6_dev_get_saddr(dev_net(dev), dev, &daddr->in6, 0, &saddr->in6);
26 xfrm6_dst_lookup(struct net *net, int tos, int oif, const xfrm_address_t *saddr, const xfrm_address_t *daddr, u32 mark) argument
53 xfrm6_get_saddr(struct net *net, int oif, xfrm_address_t *saddr, xfrm_address_t *daddr, u32 mark) argument
H A Ddatagram.c50 fl6->daddr = sk->sk_v6_daddr;
62 if (ipv6_addr_is_multicast(&fl6->daddr))
147 struct in6_addr *daddr, old_daddr; local
183 daddr = &usin->sin6_addr;
193 sin.sin_addr.s_addr = daddr->s6_addr32[3];
246 sk->sk_v6_daddr = *daddr;
329 serr->addr_offset = (u8 *)&(((struct ipv6hdr *)(icmph + 1))->daddr) -
363 iph->daddr = fl6->daddr;
374 serr->addr_offset = (u8 *)&iph->daddr
[all...]
H A Dsit.c109 remote == t->parms.iph.daddr &&
116 if (remote == t->parms.iph.daddr &&
138 __be32 remote = parms->iph.daddr;
208 memcpy(dev->broadcast, &t->parms.iph.daddr, 4);
232 __be32 remote = parms->iph.daddr;
244 remote == t->parms.iph.daddr &&
567 iph->daddr, iph->saddr, sifindex);
589 if (t->parms.iph.daddr == 0)
661 &iph->daddr, &ipv6h->daddr);
[all...]
H A Dip6_input.c96 ipv6_addr_equal(&ipv6_hdr(hint)->daddr, &ipv6_hdr(skb)->daddr);
215 ipv6_addr_loopback(&hdr->daddr)) &&
228 ipv6_addr_is_multicast(&hdr->daddr) &&
229 IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 1)
236 if (!ipv6_addr_is_multicast(&hdr->daddr) &&
249 if (ipv6_addr_is_multicast(&hdr->daddr) &&
250 IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 0)
422 if (ipv6_addr_is_multicast(&hdr->daddr) &&
423 !ipv6_chk_mcast_addr(dev, &hdr->daddr,
[all...]
/linux-master/net/netfilter/
H A Dutils.c22 !csum_tcpudp_magic(iph->saddr, iph->daddr,
33 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr,
56 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
74 if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
85 csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
113 &ip6h->daddr,
/linux-master/net/ipv4/
H A Dtcp_metrics.c25 const struct inetpeer_addr *daddr,
165 struct inetpeer_addr *daddr,
178 tm = __tcp_get_metrics(saddr, daddr, net, hash);
208 tm->tcpm_daddr = *daddr;
232 const struct inetpeer_addr *daddr,
241 addr_same(&tm->tcpm_daddr, daddr) &&
253 struct inetpeer_addr saddr, daddr; local
258 daddr.family = req->rsk_ops->family;
259 switch (daddr.family) {
262 inetpeer_set_addr_v4(&daddr, inet_rs
163 tcpm_new(struct dst_entry *dst, struct inetpeer_addr *saddr, struct inetpeer_addr *daddr, unsigned int hash) argument
231 __tcp_get_metrics(const struct inetpeer_addr *saddr, const struct inetpeer_addr *daddr, struct net *net, unsigned int hash) argument
296 struct inetpeer_addr saddr, daddr; local
842 struct inetpeer_addr saddr, daddr; local
930 struct inetpeer_addr saddr, daddr; local
[all...]
/linux-master/include/net/
H A Ddst_metadata.h198 __be32 daddr,
212 saddr, daddr, tos, ttl,
224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl,
229 const struct in6_addr *daddr,
252 info->key.u.ipv6.dst = *daddr;
268 return __ipv6_tun_set_dst(&ip6h->saddr, &ip6h->daddr,
197 __ip_tun_set_dst(__be32 saddr, __be32 daddr, __u8 tos, __u8 ttl, __be16 tp_dst, const unsigned long *flags, __be64 tunnel_id, int md_size) argument
228 __ipv6_tun_set_dst(const struct in6_addr *saddr, const struct in6_addr *daddr, __u8 tos, __u8 ttl, __be16 tp_dst, __be32 label, const unsigned long *flags, __be64 tunnel_id, int md_size) argument
/linux-master/net/xfrm/
H A Dxfrm_state.c42 1. Hash table by (spi,daddr,ah/esp) to find SA by SPI. (input,ctl)
43 2. Hash table by (daddr,family,reqid) to find what SAs exist for given
59 const xfrm_address_t *daddr,
64 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask);
68 const xfrm_address_t *daddr,
72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask);
76 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, argument
79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask);
119 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,
124 h = __xfrm_src_hash(&x->id.daddr,
58 xfrm_dst_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family) argument
67 xfrm_src_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) argument
939 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) argument
977 __xfrm_state_lookup_all(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, struct xfrm_dev_offload *xdo) argument
1020 __xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument
1045 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument
1137 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family, u32 if_id) argument
1363 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) argument
1493 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) argument
1982 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument
1995 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument
2009 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) argument
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_tunnel_vxlan.sh142 )"$dest_mac:"$( : ETH daddr
154 )"c0:00:02:01:"$( : IP daddr: 192.0.2.1
198 )"$dest_mac:"$( : ETH daddr
210 )"c0:00:02:01:"$( : IP daddr: 192.0.2.1
223 )"$dest_mac:"$( : ETH daddr
281 )"$dest_mac:"$( : ETH daddr
293 )"c0:00:02:01:"$( : IP daddr: 192.0.2.1
/linux-master/net/llc/
H A Dllc_conn.c455 const struct llc_addr *daddr,
464 llc->daddr.lsap == daddr->lsap &&
466 ether_addr_equal(llc->daddr.mac, daddr->mac);
472 * @daddr: address of remote LLC (MAC + SAP)
482 struct llc_addr *daddr,
494 if (llc_estab_match(sap, daddr, laddr, rc, net)) {
499 !llc_estab_match(sap, daddr, laddr, rc, net))) {
520 struct llc_addr *daddr,
454 llc_estab_match(const struct llc_sap *sap, const struct llc_addr *daddr, const struct llc_addr *laddr, const struct sock *sk, const struct net *net) argument
481 __llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr, const struct net *net) argument
519 llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr, const struct net *net) argument
606 __llc_lookup(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr, const struct net *net) argument
759 llc_create_incoming_sock(struct sock *sk, struct net_device *dev, struct llc_addr *saddr, struct llc_addr *daddr) argument
783 struct llc_addr saddr, daddr; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c162 return csum_tcpudp_magic(ctx->ipv4->saddr, ctx->ipv4->daddr,
168 return csum_ipv6_magic(&ctx->ipv6->saddr, &ctx->ipv6->daddr,
327 first = (u64)ctx->ipv4->saddr << 32 | ctx->ipv4->daddr;
336 ctx->ipv6->daddr.in6_u.u6_addr32[0];
428 swap(ctx->ipv4->saddr, ctx->ipv4->daddr);
443 swap(ctx->ipv6->saddr, ctx->ipv6->daddr);
470 first = (u64)ctx->ipv4->saddr << 32 | ctx->ipv4->daddr;
473 ctx->ipv6->daddr.in6_u.u6_addr32[0];
521 tuple.ipv4.daddr = ctx->ipv4->daddr;
[all...]
/linux-master/net/netfilter/ipvs/
H A Dip_vs_proto_udp.c57 &iph->daddr, ports[1]);
180 udp_partial_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr,
185 udp_fast_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr,
264 udp_partial_csum_update(cp->af, udph, &cp->vaddr, &cp->daddr,
269 udp_fast_csum_update(cp->af, udph, &cp->vaddr, &cp->daddr,
281 &cp->daddr.in6,
287 cp->daddr.ip,
326 &ipv6_hdr(skb)->daddr,
337 ip_hdr(skb)->daddr,
H A Dip_vs_proto.c227 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr);
235 &ih->saddr, &ih->daddr);
239 &ih->daddr, ntohs(pptr[1]));
259 sprintf(buf, "%pI6c->%pI6c frag", &ih->saddr, &ih->daddr);
267 &ih->saddr, &ih->daddr);
271 &ih->daddr, ntohs(pptr[1]));
/linux-master/tools/testing/selftests/net/
H A Dreuseport_bpf_cpu.c96 struct sockaddr_storage saddr, daddr; local
109 daddr4 = (struct sockaddr_in *)&daddr;
120 daddr6 = (struct sockaddr_in6 *)&daddr;
141 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr)))
H A Dreuseport_bpf_numa.c109 struct sockaddr_storage saddr, daddr; local
121 daddr4 = (struct sockaddr_in *)&daddr;
132 daddr6 = (struct sockaddr_in6 *)&daddr;
151 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr)))
H A Dnat6to4.bpf.c105 .daddr = 0x0101a8c0, // u32
241 ip6.daddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8);
242 ip6.daddr.in6_u.u6_addr32[1] = 0;
243 ip6.daddr.in6_u.u6_addr32[2] = 0;
244 ip6.daddr.in6_u.u6_addr32[3] = bpf_htonl(2);
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c133 map->daddr = iova_dma_addr(&imgu->iova_domain, iova);
136 size, &map->daddr, map->vaddr);
156 iova_pfn(&imgu->iova_domain, map->daddr));
172 __func__, map->size, &map->daddr, map->vaddr);
220 map->daddr = iova_dma_addr(&imgu->iova_domain, iova);
/linux-master/net/ax25/
H A Dax25_ip.c46 unsigned short type, const void *daddr,
59 if (daddr != NULL)
60 memcpy(buff, daddr, dev->addr_len); /* Address specified */
93 if (daddr != NULL)
213 unsigned short type, const void *daddr,
45 ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
212 ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
/linux-master/net/ipv6/netfilter/
H A Dip6t_rpfilter.c44 .daddr = iph->saddr,
48 if (rpfilter_addr_unicast(&iph->daddr)) {
49 memcpy(&fl6.saddr, &iph->daddr, sizeof(struct in6_addr));
/linux-master/tools/testing/selftests/mm/
H A Dhugepage-mremap.c133 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, local
135 ksft_print_msg("Map daddr: Returned address is %p\n", daddr);
136 if (daddr == MAP_FAILED)
/linux-master/drivers/gpu/drm/
H A Ddrm_fb_dma_helper.c130 dma_addr_t daddr; local
138 daddr = drm_fb_dma_get_gem_addr(state->fb, state, i);
146 dma_sync_single_for_device(drm->dev, daddr + offset,
/linux-master/include/trace/events/
H A Dhandshake.h198 __array(__u8, daddr, sizeof(struct sockaddr_in6))
207 memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
215 __entry->saddr, __entry->daddr,
290 __array(__u8, daddr, sizeof(struct sockaddr_in6))
298 memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
305 __entry->saddr, __entry->daddr,
H A Dsock.h156 __array(__u8, daddr, 4)
177 p32 = (__be32 *) __entry->daddr;
184 TP_printk("family=%s protocol=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c oldstate=%s newstate=%s",
188 __entry->saddr, __entry->daddr,
207 __array(__u8, daddr, 4)
225 p32 = (__be32 *) __entry->daddr;
232 TP_printk("family=%s protocol=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c error=%d",
236 __entry->saddr, __entry->daddr,
/linux-master/lib/
H A Dchecksum.c158 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, argument
164 s += (__force u32)daddr;

Completed in 248 milliseconds

1234567891011>>