/external/qemu/slirp/ |
D | tftp.c | 135 struct sockaddr_in saddr, daddr; in tftp_send_oack() local 157 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_oack() 158 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_oack() 165 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_oack() 176 struct sockaddr_in saddr, daddr; in tftp_send_error() local 197 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_error() 198 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_error() 208 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_error() 219 struct sockaddr_in saddr, daddr; in tftp_send_data() local 243 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_data() [all …]
|
D | bootp.c | 158 struct sockaddr_in saddr, daddr; in bootp_reply() local 221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); in bootp_reply() 222 saddr.sin_port = htons(BOOTP_SERVER); in bootp_reply() 233 rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */ in bootp_reply() 260 memcpy(q, &saddr.sin_addr, 4); in bootp_reply() 273 memcpy(q, &saddr.sin_addr, 4); in bootp_reply() 316 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in bootp_reply()
|
D | udp.c | 256 struct sockaddr_in *saddr, struct sockaddr_in *daddr, in udp_output2() argument 265 DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr); in udp_output2() 284 ui->ui_src = saddr->sin_addr; in udp_output2() 286 ui->ui_sport = saddr->sin_port; in udp_output2() 314 struct sockaddr_in saddr, daddr; in udp_output() local 316 saddr = *addr; in udp_output() 319 saddr.sin_addr.s_addr = alias_addr.s_addr; in udp_output() 322 saddr.sin_addr.s_addr = so->so_faddr.s_addr; in udp_output() 327 return udp_output2(so, m, &saddr, &daddr, so->so_iptos); in udp_output()
|
/external/grub/netboot/ |
D | eepro.c | 507 unsigned short saddr[ETH_ALEN/2]; in eepro_probe1() member 518 station_addr.saddr[2] = read_eeprom(2); in eepro_probe1() 519 if (station_addr.saddr[2] == 0x0000 || station_addr.saddr[2] == 0xFFFF) { in eepro_probe1() 526 station_addr.saddr[2] = read_eeprom(2); in eepro_probe1() 528 station_addr.saddr[1] = read_eeprom(3); in eepro_probe1() 529 station_addr.saddr[0] = read_eeprom(4); in eepro_probe1() 535 } else if (station_addr.saddr[0] == SA_ADDR1) { in eepro_probe1() 542 station_addr.saddr[0] = swap16(station_addr.saddr[0]); in eepro_probe1() 543 station_addr.saddr[1] = swap16(station_addr.saddr[1]); in eepro_probe1() 544 station_addr.saddr[2] = swap16(station_addr.saddr[2]); in eepro_probe1()
|
/external/kernel-headers/original/linux/ |
D | random.h | 55 extern u32 secure_ipv4_port_ephemeral(__u32 saddr, __u32 daddr, __u16 dport); 56 extern u32 secure_ipv6_port_ephemeral(const __u32 *saddr, const __u32 *daddr, 58 extern __u32 secure_tcp_sequence_number(__u32 saddr, __u32 daddr, 60 extern __u32 secure_tcpv6_sequence_number(__u32 *saddr, __u32 *daddr, 62 extern u64 secure_dccp_sequence_number(__u32 saddr, __u32 daddr,
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 882 saddr2str(saddr) in saddr2str() argument 883 const struct sockaddr *saddr; in saddr2str() 888 if (saddr == NULL) 891 if (saddr->sa_family == AF_UNSPEC) 894 GETNAMEINFO(saddr, addr, port); 902 saddrwop2str(saddr) in saddrwop2str() argument 903 const struct sockaddr *saddr; in saddrwop2str() 908 if (saddr == NULL) 911 GETNAMEINFO_NULL(saddr, addr); 936 naddrwop2str_fromto(const char *format, const struct netaddr *saddr, in naddrwop2str_fromto() argument [all …]
|
D | pfkey.c | 2220 struct sadb_address *saddr, *daddr; local 2236 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; 2247 saddr + 1, 2249 saddr->sadb_address_prefixlen, 2251 saddr->sadb_address_proto, 2257 saddr + 1, 2259 saddr->sadb_address_prefixlen, 2261 saddr->sadb_address_proto, 2342 struct sadb_address *saddr, *daddr; local 2358 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; [all …]
|
D | sockmisc.h | 72 const struct sockaddr *saddr, 80 extern char *naddrwop2str_fromto __P((const char *format, const struct netaddr *saddr, 82 extern int naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr);
|
/external/dbus/tools/ |
D | dbus-cleanup-sockets.c | 204 struct sockaddr_un saddr; in open_socket() local 231 memset (&saddr, '\0', sizeof (saddr)); /* nul-terminates the sun_path */ in open_socket() 233 saddr.sun_family = AF_UNIX; in open_socket() 234 strncpy (saddr.sun_path, se->name, sizeof (saddr.sun_path) - 1); in open_socket() 238 ret = connect (se->fd, (struct sockaddr*) &saddr, sizeof (saddr)); in open_socket()
|
/external/qemu/slirp-android/ |
D | tftp.c | 135 SockAddress saddr, daddr; in tftp_send_oack() local 157 sock_address_init_inet( &saddr, in tftp_send_oack() 167 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_oack() 178 SockAddress saddr, daddr; in tftp_send_error() local 199 sock_address_init_inet( &saddr, in tftp_send_error() 212 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_error() 223 SockAddress saddr, daddr; in tftp_send_data() local 247 sock_address_init_inet( &saddr, in tftp_send_data() 270 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_data()
|
D | udp.c | 258 const SockAddress* saddr, in udp_output2_() argument 263 uint32_t saddr_ip = sock_address_get_ip(saddr); in udp_output2_() 265 int saddr_port = sock_address_get_port(saddr); in udp_output2_() 320 SockAddress saddr, daddr; in udp_output_() local 333 sock_address_init_inet( &saddr, saddr_ip, saddr_port ); in udp_output_() 336 return udp_output2_(so, m, &saddr, &daddr, so->so_iptos); in udp_output_()
|
D | bootp.c | 163 SockAddress saddr, daddr; in bootp_reply() local 226 sock_address_init_inet( &saddr, special_addr_ip | CTL_ALIAS, in bootp_reply() 236 rbp->bp_siaddr = htonl(sock_address_get_ip(&saddr)); /* Server IP address */ in bootp_reply() 243 uint32_t saddr_ip = htonl(sock_address_get_ip(&saddr)); in bootp_reply() 320 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in bootp_reply()
|
/external/iptables/extensions/ |
D | libipt_policy.c | 189 if (e->match.saddr) in parse() 198 e->match.saddr = 1; in parse() 199 e->invert.saddr = invert; in parse() 200 e->saddr.a4 = addr[0]; in parse() 291 !(e->match.reqid || e->match.spi || e->match.saddr || in final_check() 296 if ((e->match.saddr || e->match.daddr) in final_check() 366 if (e->match.saddr) { in print_entry() 367 PRINT_INVERT(e->invert.saddr); in print_entry() 369 addr_to_dotted((struct in_addr *)&e->saddr), in print_entry()
|
D | libip6t_policy.c | 229 if (e->match.saddr) in parse() 238 e->match.saddr = 1; in parse() 239 e->invert.saddr = invert; in parse() 240 in6addrcpy(&e->saddr.a6, addr); in parse() 331 !(e->match.reqid || e->match.spi || e->match.saddr || in final_check() 336 if ((e->match.saddr || e->match.daddr) in final_check() 406 if (e->match.saddr) { in print_entry() 407 PRINT_INVERT(e->invert.saddr); in print_entry() 409 addr_to_numeric((struct in6_addr *)&e->saddr), in print_entry()
|
/external/qemu/ |
D | net.c | 214 struct sockaddr_in *saddr, in parse_host_src_port() argument 243 if (parse_host_port(saddr, src_str2) < 0) in parse_host_src_port() 254 int parse_host_port(struct sockaddr_in *saddr, const char *str) in parse_host_port() argument 264 saddr->sin_family = AF_INET; in parse_host_port() 266 saddr->sin_addr.s_addr = 0; in parse_host_port() 269 if (!inet_aton(buf, &saddr->sin_addr)) in parse_host_port() 274 saddr->sin_addr = *(struct in_addr *)he->h_addr; in parse_host_port() 280 saddr->sin_port = htons(port); in parse_host_port() 1668 struct sockaddr_in saddr; in net_socket_fd_init_dgram() local 1679 if (getsockname(fd, (struct sockaddr *) &saddr, &saddr_len) == 0) { in net_socket_fd_init_dgram() [all …]
|
D | net-android.c | 243 SockAddress *saddr, in parse_host_src_port() argument 272 if (parse_host_port(saddr, src_str2) < 0) in parse_host_src_port() 283 int parse_host_port(SockAddress *saddr, const char *str) in parse_host_port() argument 301 if (sock_address_init_resolve(saddr, buf, 0, 0) < 0) in parse_host_port() 303 ip = sock_address_get_ip(saddr); in parse_host_port() 309 sock_address_init_inet(saddr, ip, port); in parse_host_port() 1782 SockAddress saddr; in net_socket_fd_init_dgram() local 1792 if (socket_get_address(fd, &saddr) == 0) { in net_socket_fd_init_dgram() 1794 if (sock_address_get_ip(&saddr) == 0) { in net_socket_fd_init_dgram() 1800 newfd = net_socket_mcast_create(&saddr); in net_socket_fd_init_dgram() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/ |
D | l2_packet_freebsd.c | 251 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 266 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 267 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 268 os_strlcpy(buf, inet_ntoa(saddr->sin_addr), in l2_packet_get_ip_addr()
|
D | l2_packet_linux.c | 171 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 188 saddr = aliasing_hide_typecast(&ifr.ifr_addr, struct sockaddr_in); in l2_packet_get_ip_addr() 189 if (saddr->sin_family != AF_INET) in l2_packet_get_ip_addr() 191 res = os_strlcpy(buf, inet_ntoa(saddr->sin_addr), len); in l2_packet_get_ip_addr()
|
D | l2_packet_winpcap.c | 305 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 320 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 321 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 322 os_strlcpy(buf, inet_ntoa(saddr->sin_addr), in l2_packet_get_ip_addr()
|
D | l2_packet_pcap.c | 342 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 357 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 358 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 359 os_strlcpy(buf, inet_ntoa(saddr->sin_addr), in l2_packet_get_ip_addr()
|
/external/wpa_supplicant/ |
D | l2_packet_freebsd.c | 248 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 263 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 264 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 266 inet_ntoa(saddr->sin_addr)); in l2_packet_get_ip_addr()
|
D | l2_packet_linux.c | 170 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 186 saddr = (struct sockaddr_in *) &ifr.ifr_addr; in l2_packet_get_ip_addr() 187 if (saddr->sin_family != AF_INET) in l2_packet_get_ip_addr() 189 os_snprintf(buf, len, "%s", inet_ntoa(saddr->sin_addr)); in l2_packet_get_ip_addr()
|
D | l2_packet_pcap.c | 342 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 357 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 358 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 360 inet_ntoa(saddr->sin_addr)); in l2_packet_get_ip_addr()
|
D | l2_packet_winpcap.c | 305 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 320 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 321 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 323 inet_ntoa(saddr->sin_addr)); in l2_packet_get_ip_addr()
|
/external/iproute2/include/linux/ |
D | xfrm.h | 51 xfrm_address_t saddr; member 226 xfrm_address_t saddr; member 331 xfrm_address_t saddr; member 358 xfrm_address_t saddr; member 394 xfrm_address_t saddr; member
|