Home
last modified time | relevance | path

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

123456

/external/iproute2/ip/
Dtcp_metrics.c77 inet_prefix daddr; member
98 inet_prefix daddr, saddr; in process_msg() local
116 if (f.daddr.family && f.daddr.family != AF_INET) in process_msg()
119 memcpy(&daddr.data, RTA_DATA(a), 4); in process_msg()
120 daddr.bytelen = 4; in process_msg()
125 if (f.daddr.family && f.daddr.family != AF_INET6) in process_msg()
128 memcpy(&daddr.data, RTA_DATA(a), 16); in process_msg()
129 daddr.bytelen = 16; in process_msg()
155 if (f.daddr.family && f.daddr.bitlen >= 0 && in process_msg()
156 inet_addr_match(&daddr, &f.daddr, f.daddr.bitlen)) in process_msg()
[all …]
Dlink_vti6.c63 struct in6_addr daddr = IN6ADDR_ANY_INIT; in vti6_parse_opt() local
106 memcpy(&daddr, RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_parse_opt()
169 memcpy(&daddr, addr.data, addr.bytelen); in vti6_parse_opt()
201 if (memcmp(&daddr, &in6addr_any, sizeof(in6addr_any))) in vti6_parse_opt()
202 addattr_l(n, 1024, IFLA_VTI_REMOTE, &daddr, sizeof(daddr)); in vti6_parse_opt()
215 struct in6_addr daddr; in vti6_print_opt() local
223 memcpy(&daddr, RTA_DATA(tb[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_print_opt()
225 remote = format_host(AF_INET6, 16, &daddr); in vti6_print_opt()
Diptunnel.c131 p->iph.daddr = get_addr32(*argv); in parse_args()
133 p->iph.daddr = htonl(INADDR_ANY); in parse_args()
228 if (p->i_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
229 p->i_key = p->iph.daddr; in parse_args()
232 if (p->o_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
233 p->o_key = p->iph.daddr; in parse_args()
236 if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { in parse_args()
307 p->iph.daddr ? format_host_r(AF_INET, 4, &p->iph.daddr, s1, sizeof(s1)) : "any", in print_tunnel()
429 (p->iph.daddr && p1.iph.daddr != p->iph.daddr) || in do_tunnels_list()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_lib.h77 struct sockaddr_in saddr, daddr; in pair_udp_open() local
91 memset(&daddr, 0, sizeof(daddr)); in pair_udp_open()
92 daddr.sin_family = AF_INET; in pair_udp_open()
93 daddr.sin_port = htons(port + 1); in pair_udp_open()
94 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
97 if (bind(fds[1], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
105 if (connect(fds[0], (void *) &daddr, sizeof(daddr))) { in pair_udp_open()
Dreuseport_dualstack.c75 struct sockaddr_in saddr, daddr; in send_from_v4() local
82 daddr.sin_family = AF_INET; in send_from_v4()
83 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_v4()
84 daddr.sin_port = htons(PORT); in send_from_v4()
93 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr))) in send_from_v4()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dconnect6_prog.c40 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog()
41 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog()
42 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog()
43 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog()
59 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog()
60 sk->src_ip6[1] != tuple.ipv6.daddr[1] || in connect_v6_prog()
61 sk->src_ip6[2] != tuple.ipv6.daddr[2] || in connect_v6_prog()
62 sk->src_ip6[3] != tuple.ipv6.daddr[3] || in connect_v6_prog()
Dtest_xdp_loop.c100 vip.daddr.v4 = iph->daddr; in handle_ipv4()
133 iph->daddr = tnl->daddr.v4; in handle_ipv4()
170 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
202 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
Dtest_xdp.c104 vip.daddr.v4 = iph->daddr; in handle_ipv4()
137 iph->daddr = tnl->daddr.v4; in handle_ipv4()
174 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
206 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
Dtest_lwt_ip_encap.c32 hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
35 hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
71 hdr.ip6hdr.daddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()
72 hdr.ip6hdr.daddr.s6_addr[1] = 0x10; in bpf_lwt_encap_gre6()
73 hdr.ip6hdr.daddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()
Dtest_tcp_estats.c180 __be32 *saddr, __be32 *daddr) in conn_id_ipv4_init() argument
185 unaligned_u32_set(conn_id->remaddress.data, (__u8 *)daddr); in conn_id_ipv4_init()
189 __be32 *saddr, __be32 *daddr) in conn_id_ipv6_init() argument
202 (__u8 *)(daddr)); in conn_id_ipv6_init()
204 (__u8 *)(daddr + 1)); in conn_id_ipv6_init()
206 (__u8 *)(daddr + 2)); in conn_id_ipv6_init()
208 (__u8 *)(daddr + 3)); in conn_id_ipv6_init()
Dtest_tcp_check_syncookie_kern.c78 tup.ipv4.daddr = ipv4h->daddr; in check_syncookie()
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr)); in check_syncookie()
/external/libnl/lib/xfrm/
Dselector.c64 nl_addr_put (sel->daddr); in sel_destroy()
106 new->daddr = nl_addr_clone(sel->daddr); in xfrmnl_sel_clone()
165 if ((nl_addr_cmp_prefix (a->daddr, b->daddr) != 0) || in xfrmnl_sel_cmp()
185 nl_addr2str (sel->daddr, dst, sizeof (dst)), nl_af2str (sel->family, buf, 128)); in xfrmnl_sel_dump()
203 return sel->daddr; in xfrmnl_sel_get_daddr()
212 sel->daddr = addr; in xfrmnl_sel_set_daddr()
Dtemplate.c58 nl_addr_put (utmpl->id.daddr); in xfrmnl_user_tmpl_free()
100 new->id.daddr = nl_addr_clone (utmpl->id.daddr); in xfrmnl_user_tmpl_clone()
147 if ((nl_addr_cmp_prefix (a->id.daddr, b->id.daddr) != 0) || in xfrmnl_user_tmpl_cmp()
171 nl_addr2str (tmpl->id.daddr, dst, sizeof (dst)), in xfrmnl_user_tmpl_dump()
191 return utmpl->id.daddr; in xfrmnl_user_tmpl_get_daddr()
200 utmpl->id.daddr = addr; in xfrmnl_user_tmpl_set_daddr()
Dae.c155 nl_addr_put (ae->sa_id.daddr); in xfrm_ae_free_data()
167 if (src->sa_id.daddr) in xfrm_ae_clone()
168 if ((dst->sa_id.daddr = nl_addr_clone (src->sa_id.daddr)) == NULL) in xfrm_ae_clone()
195 diff |= XFRM_AE_DIFF(DADDR, nl_addr_cmp(a->sa_id.daddr, b->sa_id.daddr)); in xfrm_ae_compare()
245 __ADD(XFRM_AE_ATTR_DADDR, daddr),
300 nl_addr2str(ae->sa_id.daddr, dst, sizeof(dst))); in xfrm_ae_dump_line()
378 …memcpy (&ae_id.sa_id.daddr, nl_addr_get_binary_addr (tmpl->sa_id.daddr), sizeof (uint8_t) * nl_add… in build_xfrm_ae_message()
499 …ae->sa_id.daddr = nl_addr_build(ae_id->sa_id.family, &ae_id->sa_id.daddr, sizeof (ae_id->sa_id.dad… in xfrmnl_ae_parse()
592 int xfrmnl_ae_build_get_request(struct nl_addr* daddr, unsigned int spi, unsigned int protocol, in xfrmnl_ae_build_get_request() argument
599 if (!daddr || !spi) in xfrmnl_ae_build_get_request()
[all …]
Dsa.c106 nl_addr_put (sa->id.daddr); in xfrm_sa_free_data()
144 if (src->id.daddr) in xfrm_sa_clone()
145 if ((dst->id.daddr = nl_addr_clone (src->id.daddr)) == NULL) in xfrm_sa_clone()
225 diff |= XFRM_SA_DIFF(DADDR, nl_addr_cmp(a->id.daddr, b->id.daddr)); in xfrm_sa_compare()
310 __ADD(XFRM_SA_ATTR_DADDR, daddr),
403 nl_addr2str(sa->id.daddr, dst, sizeof(dst)), in xfrm_sa_dump_line()
603 struct xfrmnl_sa* xfrmnl_sa_get(struct nl_cache* cache, struct nl_addr* daddr, in xfrmnl_sa_get() argument
615 !nl_addr_cmp(sa->id.daddr, daddr)) in xfrmnl_sa_get()
697 …addr = nl_addr_build (sa_info->sel.family, &sa_info->sel.daddr.a4, sizeof (sa_info->sel.daddr.a… in xfrmnl_sa_parse()
699 …addr = nl_addr_build (sa_info->sel.family, &sa_info->sel.daddr.a6, sizeof (sa_info->sel.daddr.a… in xfrmnl_sa_parse()
[all …]
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c71 static struct sockaddr_in daddr; variable
191 static void print_pktinfo(int family, int ifindex, void *saddr, void *daddr) in print_pktinfo() argument
198 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown"); in print_pktinfo()
344 iph->saddr = daddr.sin_addr.s_addr; /* set for udp csum calc */ in fill_header_ipv4()
345 iph->daddr = daddr.sin_addr.s_addr; in fill_header_ipv4()
365 ip6h->daddr = daddr6.sin6_addr; in fill_header_ipv6()
430 if (connect(fd, (void *) &daddr, sizeof(daddr))) in do_test()
498 msg.msg_name = (void *)&daddr; in do_test()
499 msg.msg_namelen = sizeof(daddr); in do_test()
674 memcpy(&daddr, cur->ai_addr, sizeof(daddr)); in resolve_hostname()
[all …]
/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_iprange.txlate5 nft add rule ip filter INPUT ip daddr 192.168.25.149-192.168.25.151 counter accept
8 nft add rule ip filter INPUT ip saddr 4.4.4.4-7.7.7.7 ip daddr 3.3.3.3-6.6.6.6 counter accept
11 nft add rule ip6 filter INPUT ip6 daddr != ::2d01-::2d03 counter accept
14 nft add rule ip6 filter INPUT ip6 saddr ::2d01-::2d03 ip6 daddr != ::2d01-::2d03 counter accept
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()
Dlibxt_addrtype.txlate5 nft add rule ip filter INPUT fib daddr type local counter
8 nft add rule ip filter INPUT fib daddr type != { local, anycast } counter
11 nft add rule ip filter INPUT fib daddr . iif type { local, anycast } counter
Dlibebt_dnat.txlate2 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff accept count…
5 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff accept count…
8 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff continue cou…
/external/iproute2/tc/
Dm_skbmod.c61 char *daddr = NULL; in parse_skbmod() local
91 daddr = *argv; in parse_skbmod()
92 if (sscanf(daddr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", in parse_skbmod()
96 daddr); in parse_skbmod()
100 fprintf(stderr, "dst MAC address <%s>\n", daddr); in parse_skbmod()
150 if (daddr) in parse_skbmod()
Dm_ife.c73 char *daddr = NULL; in parse_ife() local
132 daddr = *argv; in parse_ife()
133 if (sscanf(daddr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", in parse_ife()
137 daddr); in parse_ife()
139 fprintf(stderr, "dst MAC address <%s>\n", daddr); in parse_ife()
188 if (daddr) in parse_ife()
/external/bcc/tools/
Dtcptop.py196 daddr=inet_ntop(AF_INET, pack("I", k.daddr)),
203 daddr=inet_ntop(AF_INET6, k.daddr),
257 k.daddr + ":" + str(k.dport),
284 k.daddr + ":" + str(k.dport),
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_policy.h26 daddr:1, member
46 union nf_inet_addr daddr; member
53 union xt_policy_addr daddr;

123456