Home
last modified time | relevance | path

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

123

/external/iproute2/ip/
Dtcp_metrics.c77 inet_prefix daddr; member
99 inet_prefix daddr, saddr; in process_msg() local
118 if (f.daddr.family && f.daddr.family != AF_INET) in process_msg()
120 memcpy(&daddr.data, RTA_DATA(a), 4); in process_msg()
121 daddr.bytelen = 4; in process_msg()
128 if (f.daddr.family && f.daddr.family != AF_INET6) in process_msg()
130 memcpy(&daddr.data, RTA_DATA(a), 16); in process_msg()
131 daddr.bytelen = 16; in process_msg()
159 if (f.daddr.family && f.daddr.bitlen >= 0 && in process_msg()
160 inet_addr_match(&daddr, &f.daddr, f.daddr.bitlen)) in process_msg()
[all …]
Dlink_vti6.c55 struct in6_addr daddr; in vti6_parse_opt() local
105 memcpy(&daddr, RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_parse_opt()
164 memcpy(&daddr, addr.data, addr.bytelen); in vti6_parse_opt()
189 addattr_l(n, 1024, IFLA_VTI_REMOTE, &daddr, sizeof(daddr)); in vti6_parse_opt()
203 struct in6_addr daddr; in vti6_print_opt() local
209 memcpy(&daddr, RTA_DATA(tb[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_print_opt()
211 remote = format_host(AF_INET6, 16, &daddr, s1, sizeof(s1)); in vti6_print_opt()
Diplink_geneve.c39 __u32 daddr = 0; in geneve_parse_opt() local
54 if (!inet_get_addr(*argv, &daddr, &daddr6)) { in geneve_parse_opt()
58 if (IN6_IS_ADDR_MULTICAST(&daddr6) || IN_MULTICAST(ntohl(daddr))) in geneve_parse_opt()
99 if (!daddr && memcmp(&daddr6, &in6addr_any, sizeof(daddr6)) == 0) { in geneve_parse_opt()
105 if (daddr) in geneve_parse_opt()
106 addattr_l(n, 1024, IFLA_GENEVE_REMOTE, &daddr, 4); in geneve_parse_opt()
Diptunnel.c133 p->iph.daddr = get_addr32(*argv); in parse_args()
135 p->iph.daddr = htonl(INADDR_ANY); in parse_args()
230 if (p->i_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
231 p->i_key = p->iph.daddr; in parse_args()
234 if (p->o_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
235 p->o_key = p->iph.daddr; in parse_args()
238 if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { in parse_args()
311 p->iph.daddr ? format_host(AF_INET, 4, &p->iph.daddr, s1, sizeof(s1)) : "any", in print_tunnel()
435 (p->iph.daddr && p1.iph.daddr != p->iph.daddr) || in do_tunnels_list()
Dlink_gre.c67 unsigned daddr = 0; in gre_parse_opt() local
129 daddr = rta_getattr_u32(greinfo[IFLA_GRE_REMOTE]); in gre_parse_opt()
227 daddr = get_addr32(*argv); in gre_parse_opt()
305 if (!ikey && IN_MULTICAST(ntohl(daddr))) { in gre_parse_opt()
306 ikey = daddr; in gre_parse_opt()
309 if (!okey && IN_MULTICAST(ntohl(daddr))) { in gre_parse_opt()
310 okey = daddr; in gre_parse_opt()
313 if (IN_MULTICAST(ntohl(daddr)) && !saddr) { in gre_parse_opt()
323 addattr_l(n, 1024, IFLA_GRE_REMOTE, &daddr, 4); in gre_parse_opt()
Dlink_vti.c61 unsigned daddr = 0; in vti_parse_opt() local
109 daddr = *(__u32 *)RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]); in vti_parse_opt()
166 daddr = get_addr32(*argv); in vti_parse_opt()
192 addattr_l(n, 1024, IFLA_VTI_REMOTE, &daddr, 4); in vti_parse_opt()
Diplink_vxlan.c54 __u32 daddr = 0; in vxlan_parse_opt() local
98 if (!inet_get_addr(*argv, &daddr, &daddr6)) { in vxlan_parse_opt()
102 if (IN6_IS_ADDR_MULTICAST(&daddr6) || IN_MULTICAST(ntohl(daddr))) in vxlan_parse_opt()
241 if ((gaddr && daddr) || in vxlan_parse_opt()
259 else if (daddr) in vxlan_parse_opt()
260 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &daddr, 4); in vxlan_parse_opt()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_lib.h91 struct sockaddr_in saddr, daddr; in pair_udp_open() local
105 memset(&daddr, 0, sizeof(daddr)); in pair_udp_open()
106 daddr.sin_family = AF_INET; in pair_udp_open()
107 daddr.sin_port = htons(port + 1); in pair_udp_open()
108 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
111 if (bind(fds[1], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
119 if (connect(fds[0], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
Dreuseport_dualstack.c74 struct sockaddr_in saddr, daddr; in send_from_v4() local
81 daddr.sin_family = AF_INET; in send_from_v4()
82 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_v4()
83 daddr.sin_port = htons(PORT); in send_from_v4()
92 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr))) in send_from_v4()
Dreuseport_bpf_numa.c106 struct sockaddr_storage saddr, daddr; in send_from_node() local
118 daddr4 = (struct sockaddr_in *)&daddr; in send_from_node()
129 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_node()
148 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr))) in send_from_node()
Dreuseport_bpf_cpu.c95 struct sockaddr_storage saddr, daddr; in send_from_cpu() local
108 daddr4 = (struct sockaddr_in *)&daddr; in send_from_cpu()
119 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_cpu()
140 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr))) in send_from_cpu()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c76 static struct sockaddr_in daddr; variable
157 static void print_pktinfo(int family, int ifindex, void *saddr, void *daddr) in print_pktinfo() argument
164 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown"); in print_pktinfo()
302 if (connect(fd, (void *) &daddr, sizeof(daddr))) in do_test()
347 iph->daddr = daddr.sin_addr.s_addr; in do_test()
364 val = sendto(fd, buf, total_len, 0, (void *) &daddr, sizeof(daddr)); in do_test()
480 memcpy(&daddr, cur->ai_addr, sizeof(daddr)); in resolve_hostname()
481 daddr.sin_port = htons(dest_port); in resolve_hostname()
/external/iptables/extensions/
Dlibxt_connlimit.t12 …imit --connlimit-above 10 --connlimit-daddr;-m connlimit --connlimit-above 10 --connlimit-mask 32 …
13 -m connlimit --connlimit-above 10 --connlimit-saddr --connlimit-daddr;;FAIL
15 -m connlimit --connlimit-above 10 --connlimit-mask 32 --connlimit-daddr;=;OK
Dlibxt_policy.c137 if (e->match.daddr) in policy_parse()
140 e->match.daddr = 1; in policy_parse()
141 e->invert.daddr = cb->invert; in policy_parse()
142 memcpy(&e->daddr, &cb->val.haddr, sizeof(cb->val.haddr)); in policy_parse()
212 e->match.daddr || e->match.proto || e->match.mode)) in policy_check()
219 if ((e->match.saddr || e->match.daddr) in policy_check()
283 if (e->match.daddr) { in print_entry()
284 PRINT_INVERT(e->invert.daddr); in print_entry()
287 xtables_ip6addr_to_numeric(&e->daddr.a6), in print_entry()
291 xtables_ipaddr_to_numeric(&e->daddr.a4), in print_entry()
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_policy.h24 daddr:1, member
44 union nf_inet_addr daddr; member
51 union xt_policy_addr daddr;
/external/ipsec-tools/src/racoon/
Dpfkey.c2220 struct sadb_address *saddr, *daddr; local
2237 daddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_DST];
2248 daddr + 1,
2250 daddr->sadb_address_prefixlen,
2258 daddr + 1,
2260 daddr->sadb_address_prefixlen,
2342 struct sadb_address *saddr, *daddr; local
2359 daddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_DST];
2370 daddr + 1,
2372 daddr->sadb_address_prefixlen,
[all …]
Dsockmisc.h73 const struct sockaddr *daddr));
81 const struct netaddr *daddr));
/external/valgrind/lackey/
Dlk_main.c546 void addEvent_Dr_guarded ( IRSB* sb, IRAtom* daddr, Int dsize, IRAtom* guard ) in addEvent_Dr_guarded() argument
550 tl_assert(isIRAtom(daddr)); in addEvent_Dr_guarded()
557 evt->addr = daddr; in addEvent_Dr_guarded()
566 void addEvent_Dr ( IRSB* sb, IRAtom* daddr, Int dsize ) in addEvent_Dr() argument
568 addEvent_Dr_guarded(sb, daddr, dsize, NULL); in addEvent_Dr()
573 void addEvent_Dw_guarded ( IRSB* sb, IRAtom* daddr, Int dsize, IRAtom* guard ) in addEvent_Dw_guarded() argument
577 tl_assert(isIRAtom(daddr)); in addEvent_Dw_guarded()
584 evt->addr = daddr; in addEvent_Dw_guarded()
594 void addEvent_Dw ( IRSB* sb, IRAtom* daddr, Int dsize ) in addEvent_Dw() argument
599 tl_assert(isIRAtom(daddr)); in addEvent_Dw()
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv6_sender.c64 struct in6_addr daddr; member
281 pkt.hdr.ip6_dst = info_p->daddr; in create_mld_query()
304 if (memcmp(&info_p->daddr, &in6addr_allnodes, sizeof(struct in6_addr)) in create_mld_query()
308 query_p->addr = info_p->daddr; in create_mld_query()
380 pkt.hdr.ip6_dst = info_p->daddr; in create_echo_request()
485 info_p->daddr = opt_addr; in parse_options()
597 info_p->daddr = in6addr_allnodes; in parse_options()
599 calc_hd_mcastaddr(&info_p->daddr_ll, &info_p->daddr); in parse_options()
Dns-icmpv4_sender.c64 struct in_addr daddr; member
211 fake_p->daddr = opt_addr; in parse_options()
376 pkt.hdr.daddr = fake_p->daddr.s_addr; in create_clean_packet()
515 bitsize = sizeof(pkt->hdr.daddr) * 8; in thrust_fakes()
517 pkt->hdr.daddr ^= seed; in thrust_fakes()
/external/iptables/include/linux/netfilter/
Dxt_policy.h22 daddr:1, member
39 union xt_policy_addr daddr; member
/external/iproute2/include/linux/
Dxfrm.h25 xfrm_address_t daddr; member
49 xfrm_address_t daddr; member
385 xfrm_address_t daddr; member
490 xfrm_address_t daddr; member
/external/kernel-headers/original/uapi/linux/
Dxfrm.h25 xfrm_address_t daddr; member
49 xfrm_address_t daddr; member
386 xfrm_address_t daddr; member
491 xfrm_address_t daddr; member
Dirda.h133 __u32 daddr; /* Address of remote device */ member
160 __u32 daddr; /* Address of device (for some queries only) */ member
/external/tcpdump/
Dprint-esp.c108 union inaddr_u daddr; member
509 if (strtoaddr6(spikey, &sa1.daddr.in6) == 1) { in esp_print_decode_onesecret()
511 } else if (strtoaddr(spikey, &sa1.daddr.in4) == 1) { in esp_print_decode_onesecret()
662 UNALIGNED_MEMCMP(&sa->daddr.in6, &ip6->ip6_dst, in esp_print()
678 UNALIGNED_MEMCMP(&sa->daddr.in4, &ip->ip_dst, in esp_print()

123