Searched refs:daddr (Results 101 - 125 of 730) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_check_syncookie_kern.c78 tup.ipv4.daddr = ipv4h->daddr;
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr));
H A Dtest_xdp_dynptr.c112 vip.daddr.v4 = iph->daddr;
144 iph->daddr = tnl->daddr.v4;
191 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr));
223 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr
[all...]
H A Dtest_tcp_estats.c180 __be32 *saddr, __be32 *daddr)
185 unaligned_u32_set(conn_id->remaddress.data, (__u8 *)daddr);
189 __be32 *saddr, __be32 *daddr)
202 (__u8 *)(daddr));
204 (__u8 *)(daddr + 1));
206 (__u8 *)(daddr + 2));
208 (__u8 *)(daddr + 3));
179 conn_id_ipv4_init(struct tcp_estats_conn_id *conn_id, __be32 *saddr, __be32 *daddr) argument
188 conn_id_ipv6_init(struct tcp_estats_conn_id *conn_id, __be32 *saddr, __be32 *daddr) argument
/linux-master/net/llc/
H A Dllc_if.c86 struct llc_addr laddr, daddr; local
92 daddr.lsap = dsap;
93 memcpy(daddr.mac, dmac, sizeof(daddr.mac));
95 existing = llc_lookup_established(llc->sap, &daddr, &laddr, sock_net(sk));
H A Dllc_c_ac.c208 llc->daddr.lsap, LLC_PDU_CMD);
210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac);
235 llc->daddr.lsap, LLC_PDU_RSP);
237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac);
259 llc->daddr.lsap, LLC_PDU_RSP);
261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac);
292 llc->daddr.lsap, LLC_PDU_RSP);
295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac);
319 llc->daddr.lsap, LLC_PDU_RSP);
322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr
[all...]
/linux-master/arch/riscv/lib/
H A Dcsum.c21 const struct in6_addr *daddr,
32 sum += (__force unsigned long)daddr->s6_addr32[0];
33 sum += (__force unsigned long)daddr->s6_addr32[1];
34 sum += (__force unsigned long)daddr->s6_addr32[2];
35 sum += (__force unsigned long)daddr->s6_addr32[3];
20 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum csum) argument
/linux-master/net/ipv6/
H A Dping.c68 struct in6_addr *daddr; local
91 daddr = &(u->sin6_addr);
94 if (__ipv6_addr_needs_scope_id(ipv6_addr_type(daddr)))
99 daddr = &sk->sk_v6_daddr;
109 if (!oif && ipv6_addr_is_multicast(daddr))
114 addr_type = ipv6_addr_type(daddr);
145 fl6.daddr = *daddr;
154 dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr, false);
159 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
[all...]
H A Dtcp_ao.c18 const struct in6_addr *daddr,
39 tmp->ctx.daddr = *daddr;
60 &iph->daddr, th->source,
116 const struct in6_addr *daddr,
125 bp->daddr = *daddr;
16 tcp_v6_ao_calc_key(struct tcp_ao_key *mkt, u8 *key, const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, __be32 sisn, __be32 disn) argument
115 tcp_v6_ao_hash_pseudoheader(struct tcp_sigpool *hp, const struct in6_addr *daddr, const struct in6_addr *saddr, int nbytes) argument
H A Dip6_udp_tunnel.c81 const struct in6_addr *daddr,
99 udp6_set_csum(nocheck, skb, saddr, daddr, skb->len);
108 ip6h->daddr = *daddr;
159 fl6.daddr = key->u.ipv6.dst;
168 netdev_dbg(dev, "no route to %pI6\n", &fl6.daddr);
172 netdev_dbg(dev, "circular route to %pI6\n", &fl6.daddr);
77 udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, struct net_device *dev, const struct in6_addr *saddr, const struct in6_addr *daddr, __u8 prio, __u8 ttl, __be32 label, __be16 src_port, __be16 dst_port, bool nocheck) argument
H A Dtcpv6_offload.c41 &hdr->daddr, ntohs(th->dest),
89 &iph->daddr, 0);
125 ipv6_addr_equal(&iph->daddr, &iph2->daddr))
133 iph2->daddr = iph->daddr;
175 __tcp_v6_send_check(skb, &ipv6h->saddr, &ipv6h->daddr);
H A Dicmp.c223 peer = inet_getpeer_v6(net->ipv6.peers, &fl6->daddr, 1);
290 &fl6->daddr,
303 &fl6->daddr,
368 ipv6_anycast_destination(dst, &fl6->daddr)) {
479 addr_type = ipv6_addr_type(&hdr->daddr);
481 if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) ||
482 ipv6_chk_acast_addr_src(net, skb->dev, &hdr->daddr))
483 saddr = &hdr->daddr;
523 &hdr->saddr, &hdr->daddr);
532 &hdr->saddr, &hdr->daddr);
887 const struct in6_addr *saddr, *daddr; local
1037 icmpv6_flow_init(const struct sock *sk, struct flowi6 *fl6, u8 type, const struct in6_addr *saddr, const struct in6_addr *daddr, int oif) argument
[all...]
/linux-master/include/net/
H A Dip6_route.h64 static inline bool rt6_need_strict(const struct in6_addr *daddr) argument
66 return ipv6_addr_type(daddr) &
129 const struct in6_addr *daddr,
140 err = ipv6_dev_get_saddr(net, dev, daddr, prefs, saddr);
146 struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr,
224 const struct in6_addr *daddr,
231 np->daddr_cache = daddr;
248 const struct in6_addr *daddr)
255 ipv6_addr_equal(&rt->rt6i_dst.addr, daddr));
294 const struct in6_addr *daddr)
128 ip6_route_get_saddr(struct net *net, struct fib6_info *f6i, const struct in6_addr *daddr, unsigned int prefs, struct in6_addr *saddr) argument
223 ip6_dst_store(struct sock *sk, struct dst_entry *dst, const struct in6_addr *daddr, const struct in6_addr *saddr) argument
247 ipv6_anycast_destination(const struct dst_entry *dst, const struct in6_addr *daddr) argument
293 rt6_nexthop(const struct rt6_info *rt, const struct in6_addr *daddr) argument
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c34 memcpy(sam->addr, &xs->id.daddr.a6, sizeof(xs->id.daddr.a6));
36 memcpy(sam->addr, &xs->id.daddr.a4, sizeof(xs->id.daddr.a4));
170 * @daddr: inbound address to match
179 __be32 *daddr, u8 proto,
189 ((ip4 && *daddr == rsa->xs->id.daddr.a4) ||
190 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr
178 ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, __be32 *daddr, u8 proto, __be32 spi, bool ip4) argument
569 void *daddr; local
[all...]
/linux-master/net/ipv4/netfilter/
H A Dnft_fib_ipv4.c49 addr = iph->daddr;
75 * for oif 3 will get RTN_UNICAST result even if the daddr exits
103 if (ipv4_is_lbcast(iph->daddr) ||
104 ipv4_is_local_multicast(iph->daddr)) {
116 fl4.daddr = iph->daddr;
123 fl4.daddr = iph->saddr;
124 fl4.saddr = get_saddr(iph->daddr);
/linux-master/net/ipv4/
H A Dxfrm4_policy.c23 const xfrm_address_t *daddr,
29 fl4->daddr = daddr->a4;
45 const xfrm_address_t *daddr,
50 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark);
54 xfrm_address_t *saddr, xfrm_address_t *daddr,
60 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr, mark);
20 __xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4, int tos, int oif, const xfrm_address_t *saddr, const xfrm_address_t *daddr, u32 mark) argument
43 xfrm4_dst_lookup(struct net *net, int tos, int oif, const xfrm_address_t *saddr, const xfrm_address_t *daddr, u32 mark) argument
53 xfrm4_get_saddr(struct net *net, int oif, xfrm_address_t *saddr, xfrm_address_t *daddr, u32 mark) argument
H A Droute.c150 const void *daddr);
151 static void ipv4_confirm_neigh(const struct dst_entry *dst, const void *daddr);
403 const void *daddr)
418 pkey = skb ? ip_hdr(skb)->daddr : *((__be32 *) daddr);
430 static void ipv4_confirm_neigh(const struct dst_entry *dst, const void *daddr) argument
434 const __be32 *pkey = daddr;
440 } else if (!daddr ||
490 hash = siphash_3u32((__force u32)iph->daddr,
516 prot, flow_flags, iph->daddr, ip
401 ipv4_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr) argument
537 __be32 daddr = inet->inet_daddr; local
603 fnhe_hashfun(__be32 daddr) argument
627 update_or_create_fnhe(struct fib_nh_common *nhc, __be32 daddr, __be32 gw, u32 pmtu, bool lock, unsigned long expires) argument
800 __be32 daddr = iph->daddr; local
1310 ip_del_fnhe(struct fib_nh_common *nhc, __be32 daddr) argument
1344 find_exception(struct fib_nh_common *nhc, __be32 daddr) argument
1376 ip_mtu_from_fib_result(struct fib_result *res, __be32 daddr) argument
1401 rt_bind_exception(struct rtable *rt, struct fib_nh_exception *fnhe, __be32 daddr, const bool do_cache) argument
1548 rt_set_nexthop(struct rtable *rt, __be32 daddr, const struct fib_result *res, struct fib_nh_exception *fnhe, struct fib_info *fi, u16 type, u32 itag, const bool do_cache) argument
1669 ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct in_device *in_dev, u32 *itag) argument
1700 ip_route_input_mc(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, int our) argument
1742 ip_handle_martian_source(struct net_device *dev, struct in_device *in_dev, struct sk_buff *skb, __be32 daddr, __be32 saddr) argument
1768 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument
2116 ip_mkroute_input(struct sk_buff *skb, struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos, struct flow_keys *hkeys) argument
2139 ip_route_use_hint(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, const struct sk_buff *hint) argument
2204 ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct fib_result *res) argument
2418 ip_route_input_rcu(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct fib_result *res) argument
2468 ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev) argument
[all...]
H A Dsyncookies.c45 static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, argument
49 return siphash_4u32((__force u32)saddr, (__force u32)daddr,
84 static __u32 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, argument
90 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24)
91 * + (HASH(sec2,saddr,sport,daddr,dport,count,sec2) % 2^24).
98 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) +
100 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data)
113 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, argument
119 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
127 cookie_hash(saddr, daddr, spor
[all...]
/linux-master/net/ipv6/netfilter/
H A Dnft_fib_ipv6.c30 fl6->daddr = iph->daddr;
37 fl6->daddr = iph->saddr;
38 fl6->saddr = iph->daddr;
41 if (ipv6_addr_type(&fl6->daddr) & IPV6_ADDR_LINKLOCAL) {
80 if (dev && nf_ipv6_chk_addr(nft_net(pkt), &fl6.daddr, dev, true))
94 if (ipv6_anycast_destination((struct dst_entry *)rt, &fl6.daddr))
104 addrtype = ipv6_addr_type(&fl6.daddr);
153 return ipv6_addr_type(&iph->daddr) & IPV6_ADDR_LINKLOCAL;
/linux-master/net/dccp/
H A Dtrace.h23 __array(__u8, daddr, sizeof(struct sockaddr_in6))
44 memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
69 __entry->saddr, __entry->daddr, __entry->size,
/linux-master/net/bridge/
H A Dbr_arp_nd_proxy.c261 u8 *daddr; local
280 daddr = eth_hdr(request)->h_source;
291 daddr = ns->opt + i + sizeof(struct nd_opt_hdr);
297 ether_addr_copy(eth_hdr(reply)->h_dest, daddr);
313 pip6->daddr = ipv6_hdr(request)->saddr;
333 &pip6->daddr,
357 dev->name, &pip6->daddr, daddr, &pip6->saddr, n->ha);
404 struct in6_addr *saddr, *daddr; local
425 daddr
[all...]
/linux-master/include/uapi/linux/netfilter_bridge/
H A Debt_ip.h36 __be32 daddr; member in struct:ebt_ip_info
H A Debt_802_3.h47 __u8 daddr[ETH_ALEN]; member in struct:ebt_802_3_hdr
H A Debt_arp.h28 __be32 daddr; member in struct:ebt_arp_info
/linux-master/net/bridge/netfilter/
H A Debt_arp.c41 __be32 saddr, daddr; local
52 sizeof(daddr), &daddr);
61 info->daddr != (*dap & info->dmsk)))
/linux-master/include/linux/
H A Dnetfilter_ipv4.h13 __be32 daddr; member in struct:ip_rt_info

Completed in 273 milliseconds

1234567891011>>