Searched defs:daddr (Results 1 - 25 of 116) sorted by relevance

12345

/net/802/
H A Dfc.c38 const void *daddr, const void *saddr, unsigned int len)
70 if(daddr)
72 memcpy(fch->daddr,daddr,dev->addr_len);
92 return arp_find(fch->daddr, skb);
36 fc_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
H A Dfddi.c49 * daddr=NULL means leave destination address (eg unresolved arp)
54 const void *daddr, const void *saddr, unsigned int len)
81 if (daddr != NULL)
83 memcpy(fddi->daddr, daddr, dev->addr_len);
104 return arp_find(fddi->daddr, skb);
148 if (*fddi->daddr & 0x01)
150 if (memcmp(fddi->daddr, dev->broadcast, FDDI_K_ALEN) == 0)
158 if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN))
52 fddi_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
H A Dhippi.c43 * daddr=NULL means leave destination address (eg unresolved arp)
48 const void *daddr, const void *saddr, unsigned int len)
82 if (daddr)
84 memcpy(hip->le.dest_switch_addr, daddr + 3, 3);
85 memcpy(&hcb->ifield, daddr + 2, 4);
116 return arp_find(hip->le.daddr, skb);
46 hippi_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
/net/ipv4/
H A Ddatagram.c76 inet->inet_daddr = fl4->daddr;
93 __be32 daddr = inet->inet_daddr; local
103 daddr = inet_opt->opt.faddr;
104 rt = ip_route_output_ports(sock_net(sk), &fl4, sk, daddr,
H A Dxfrm4_state.c29 sel->daddr.a4 = fl4->daddr;
44 const xfrm_address_t *daddr, const xfrm_address_t *saddr)
47 if (x->id.daddr.a4 == 0)
48 x->id.daddr.a4 = daddr->a4;
43 xfrm4_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr) argument
H A Dnetfilter.c40 fl4.daddr = iph->daddr;
86 __be32 daddr; member in struct:ip_rt_info
101 rt_info->daddr = iph->daddr;
117 iph->daddr == rt_info->daddr &&
135 !csum_tcpudp_magic(iph->saddr, iph->daddr,
146 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr,
168 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protoco
[all...]
/net/ipv6/
H A Dip6_checksum.c8 const struct in6_addr *daddr,
34 sum += (__force u32)daddr->s6_addr32[0];
35 carry = (sum < (__force u32)daddr->s6_addr32[0]);
38 sum += (__force u32)daddr->s6_addr32[1];
39 carry = (sum < (__force u32)daddr->s6_addr32[1]);
42 sum += (__force u32)daddr->s6_addr32[2];
43 carry = (sum < (__force u32)daddr->s6_addr32[2]);
46 sum += (__force u32)daddr->s6_addr32[3];
47 carry = (sum < (__force u32)daddr->s6_addr32[3]);
86 !csum_ipv6_magic(&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr,
7 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, unsigned short proto, __wsum csum) argument
[all...]
H A Dxfrm6_input.c27 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr);
58 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, argument
89 dst = daddr;
94 dst = daddr;
H A Dinet6_hashtables.c72 const struct in6_addr *daddr,
82 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport);
92 if (likely(INET6_MATCH(sk, net, saddr, daddr, ports, dif))) {
95 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr,
111 if (likely(INET6_TW_MATCH(sk, net, saddr, daddr,
117 if (unlikely(!INET6_TW_MATCH(sk, net, saddr, daddr,
136 const struct in6_addr *daddr,
147 if (!ipv6_addr_equal(&np->rcv_saddr, daddr))
162 const __be16 sport, const struct in6_addr *daddr,
178 score = compute_score(sk, net, hnum, daddr, di
68 __inet6_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif) argument
134 compute_score(struct sock *sk, struct net *net, const unsigned short hnum, const struct in6_addr *daddr, const int dif) argument
160 inet6_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const unsigned short hnum, const int dif) argument
217 inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport, const int dif) argument
240 const struct in6_addr *daddr = &np->rcv_saddr; local
[all...]
H A Dnetfilter.c30 .daddr = iph->daddr,
75 struct in6_addr daddr; member in struct:ip6_rt_info
88 rt_info->daddr = iph->daddr;
101 if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
141 if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
152 csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
180 &ip6h->daddr,
[all...]
H A Dping.c111 struct in6_addr *daddr; local
138 daddr = &(u->sin6_addr);
143 daddr = &np->daddr;
149 addr_type = ipv6_addr_type(daddr);
161 fl6.daddr = *daddr;
168 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
173 dst = ip6_sk_dst_lookup_flow(sk, &fl6, daddr, 1);
182 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
[all...]
H A Dxfrm6_state.c30 *(struct in6_addr *)&sel->daddr = fl6->daddr;
45 const xfrm_address_t *daddr, const xfrm_address_t *saddr)
48 if (ipv6_addr_any((struct in6_addr*)&x->id.daddr))
49 memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr));
44 xfrm6_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr) argument
/net/llc/
H A Dllc_if.c82 struct llc_addr laddr, daddr; local
88 daddr.lsap = dsap;
89 memcpy(daddr.mac, dmac, sizeof(daddr.mac));
91 existing = llc_lookup_established(llc->sap, &daddr, &laddr);
/net/bridge/netfilter/
H A Debt_arp.c40 __be32 saddr, daddr; local
51 sizeof(daddr), &daddr);
58 FWINV(info->daddr != (*dap & info->dmsk), EBT_ARP_DST_IP))
/net/core/
H A Dsecure_seq.c38 __u32 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr, argument
47 secret[i] = net_secret[i] + (__force u32)daddr[i];
59 u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, argument
68 secret[i] = net_secret[i] + (__force u32) daddr[i];
81 __u32 secure_ip_id(__be32 daddr) argument
85 hash[0] = (__force __u32) daddr;
95 __u32 secure_ipv6_id(const __be32 daddr[4]) argument
99 memcpy(hash, daddr, 16);
105 __u32 secure_tcp_sequence_number(__be32 saddr, __be32 daddr, argument
111 hash[1] = (__force u32)daddr;
120 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport) argument
137 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) argument
159 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, __be16 sport, __be16 dport) argument
[all...]
/net/ax25/
H A Dax25_ip.c50 unsigned short type, const void *daddr,
63 if (daddr != NULL)
64 memcpy(buff, daddr, dev->addr_len); /* Address specified */
97 if (daddr != NULL)
221 unsigned short type, const void *daddr,
49 ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
220 ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
/net/ipv4/netfilter/
H A Diptable_mangle.c45 __be32 saddr, daddr; local
58 daddr = iph->daddr;
68 iph->daddr != daddr ||
H A Diptable_nat.c159 __be32 daddr = ip_hdr(skb)->daddr; local
163 daddr != ip_hdr(skb)->daddr)
/net/ipv6/netfilter/
H A Dip6table_mangle.c38 struct in6_addr saddr, daddr; local
53 memcpy(&daddr, &ipv6_hdr(skb)->daddr, sizeof(daddr));
65 !ipv6_addr_equal(&ipv6_hdr(skb)->daddr, &daddr) ||
H A Dip6table_nat.c162 struct in6_addr daddr = ipv6_hdr(skb)->daddr; local
166 ipv6_addr_cmp(&daddr, &ipv6_hdr(skb)->daddr))
/net/netrom/
H A Dnr_dev.c100 const void *daddr, const void *saddr, unsigned int len)
110 if (daddr != NULL)
111 memcpy(buff, daddr, dev->addr_len);
125 if (daddr != NULL)
98 nr_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
/net/rose/
H A Drose_dev.c40 const void *daddr, const void *saddr, unsigned int len)
50 if (daddr != NULL)
38 rose_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
/net/xfrm/
H A Dxfrm_hash.h17 static inline unsigned int __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, argument
20 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4;
24 static inline unsigned int __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, argument
27 return ntohl(daddr->a6[2] ^ daddr->a6[3] ^
31 static inline unsigned int __xfrm_dst_hash(const xfrm_address_t *daddr, argument
39 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr);
42 h ^= __xfrm6_daddr_saddr_hash(daddr, saddr);
48 static inline unsigned int __xfrm_src_hash(const xfrm_address_t *daddr, argument
56 h ^= __xfrm4_daddr_saddr_hash(daddr, sadd
66 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, unsigned int hmask) argument
89 const xfrm_address_t *daddr = &sel->daddr; local
114 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) argument
[all...]
H A Dxfrm_input.c112 xfrm_address_t *daddr; local
140 daddr = (xfrm_address_t *)(skb_network_header(skb) +
156 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family);
251 daddr = &x->id.daddr;
/net/ethernet/
H A Deth.c70 * @daddr: destination address (NULL leave destination address)
80 const void *daddr, const void *saddr, unsigned int len)
97 if (daddr) {
98 memcpy(eth->h_dest, daddr, ETH_ALEN);
78 eth_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument

Completed in 278 milliseconds

12345