Home
last modified time | relevance | path

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

/libuv/src/unix/
H A Dbsd-ifaddrs.c71 uv_interface_address_t* address; in uv_interface_addresses() local
102 address = *addresses; in uv_interface_addresses()
108 address->name = uv__strdup(ent->ifa_name); in uv_interface_addresses()
111 address->address.address6 = *((struct sockaddr_in6*) ent->ifa_addr); in uv_interface_addresses()
113 address->address.address4 = *((struct sockaddr_in*) ent->ifa_addr); in uv_interface_addresses()
117 memset(&address->netmask, 0, sizeof(address->netmask)); in uv_interface_addresses()
126 address++; in uv_interface_addresses()
135 address = *addresses; in uv_interface_addresses()
138 if (strcmp(address->name, ent->ifa_name) == 0) { in uv_interface_addresses()
141 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv_interface_addresses()
[all …]
H A Dibmi.c395 uv_interface_address_t* address; in uv_interface_addresses() local
428 address = *addresses; in uv_interface_addresses()
439 address->name = uv__strdup(cur->ifa_name); in uv_interface_addresses()
444 address->address.address6 = *((struct sockaddr_in6*)cur->ifa_addr); in uv_interface_addresses()
448 address->address.address4 = *((struct sockaddr_in*)cur->ifa_addr); in uv_interface_addresses()
450 address->netmask.netmask4.sin_family = AF_INET; in uv_interface_addresses()
453 if (!address->is_internal) { in uv_interface_addresses()
455 size_t name_len = strlen(address->name); in uv_interface_addresses()
473 rc = get_ibmi_physical_address(address->name, &address->phys_addr); in uv_interface_addresses()
480 char* temp_name = uv__strdup(address->name); in uv_interface_addresses()
[all …]
H A Dsunos.c781 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv__set_phys_addr()
788 if (address->address.address4.sin_family == AF_INET) { in uv__set_phys_addr()
790 sin->sin_addr.s_addr = address->address.address4.sin_addr.s_addr; in uv__set_phys_addr()
791 } else if (address->address.address4.sin_family == AF_INET6) { in uv__set_phys_addr()
794 address->address.address6.sin6_addr.s6_addr, in uv__set_phys_addr()
795 sizeof(address->address.address6.sin6_addr.s6_addr)); in uv__set_phys_addr()
808 memcpy(address->phys_addr, arpreq.arp_ha.sa_data, sizeof(address->phys_addr)); in uv__set_phys_addr()
854 address = *addresses; in uv_interface_addresses()
863 address->address.address6 = *((struct sockaddr_in6*) ent->ifa_addr); in uv_interface_addresses()
865 address->address.address4 = *((struct sockaddr_in*) ent->ifa_addr); in uv_interface_addresses()
[all …]
H A Dos390.c347 address = *addresses; in uv__interface_addresses_v6()
377 address->name[i] = '\0'; in uv__interface_addresses_v6()
378 __e2a_s(address->name); in uv__interface_addresses_v6()
381 address->address.address6 = *((struct sockaddr_in6*) &p->__nif6e_addr); in uv__interface_addresses_v6()
394 address++; in uv__interface_addresses_v6()
501 address = *addresses; in uv_interface_addresses()
506 address += count_v6; in uv_interface_addresses()
550 address->name[i] = '\0'; in uv_interface_addresses()
551 __e2a_s(address->name); in uv_interface_addresses()
554 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
[all …]
H A Daix.c1117 uv_interface_address_t* address; in uv_interface_addresses() local
1190 address = *addresses; in uv_interface_addresses()
1213 address->name = uv__strdup(p->ifr_name); in uv_interface_addresses()
1216 address->address.address6 = *((struct sockaddr_in6*) &p->ifr_addr); in uv_interface_addresses()
1218 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
1237 address->netmask.netmask4.sin_family = AF_INET; in uv_interface_addresses()
1242 address++; in uv_interface_addresses()
1255 address = *addresses; in uv_interface_addresses()
1257 if (strcmp(address->name, p->ifr_name) == 0) { in uv_interface_addresses()
1259 memcpy(address->phys_addr, LLADDR(sa_addr), sizeof(address->phys_addr)); in uv_interface_addresses()
[all …]
H A Dlinux.c1944 uv_interface_address_t* address; in uv_interface_addresses() local
1974 address = *addresses; in uv_interface_addresses()
1980 address->name = uv__strdup(ent->ifa_name); in uv_interface_addresses()
1983 address->address.address6 = *((struct sockaddr_in6*) ent->ifa_addr); in uv_interface_addresses()
1985 address->address.address4 = *((struct sockaddr_in*) ent->ifa_addr); in uv_interface_addresses()
1994 address->is_internal = !!(ent->ifa_flags & IFF_LOOPBACK); in uv_interface_addresses()
1996 address++; in uv_interface_addresses()
2004 address = *addresses; in uv_interface_addresses()
2010 (address->name[namelen] == 0 || address->name[namelen] == ':')) { in uv_interface_addresses()
2012 memcpy(address->phys_addr, sll->sll_addr, sizeof(address->phys_addr)); in uv_interface_addresses()
[all …]
H A Dtcp.c244 if (uv__is_ipv6_link_local((struct sockaddr*) &ifa->address)) { in uv__ipv6_link_local_scope_id()
245 rv = ifa->address.address6.sin6_scope_id; in uv__ipv6_link_local_scope_id()
/libuv/test/
H A Dtest-ip6-addr.c41 uv_interface_address_t* address; in TEST_IMPL() local
57 address = addresses + ix; in TEST_IMPL()
59 if (address->address.address6.sin6_family != AF_INET6) in TEST_IMPL()
63 &address->address.address6.sin6_addr, in TEST_IMPL()
71 iface_index = address->address.address6.sin6_scope_id; in TEST_IMPL()
72 device_name = address->name; in TEST_IMPL()
H A Dtest-platform-output.c170 if (interfaces[i].address.address4.sin_family == AF_INET) { in TEST_IMPL()
171 uv_ip4_name(&interfaces[i].address.address4, buffer, sizeof(buffer)); in TEST_IMPL()
172 } else if (interfaces[i].address.address4.sin_family == AF_INET6) { in TEST_IMPL()
173 uv_ip6_name(&interfaces[i].address.address6, buffer, sizeof(buffer)); in TEST_IMPL()
H A Dtest-tcp-connect6-error.c101 if (p->address.address6.sin6_family == AF_INET6) in TEST_IMPL()
102 if (!memcmp(&p->address.address6.sin6_addr, "\xfe\x80", 2)) in TEST_IMPL()
H A Dtest-udp-multicast-join6.c160 supported = (AF_INET6 == addr[i].address.address6.sin6_family && in can_ipv6_external()
H A Dtask.h355 supported = (AF_INET6 == addr[i].address.address6.sin6_family); in can_ipv6()
/libuv/docs/code/interfaces/
H A Dmain.c19 if (interface_a.address.address4.sin_family == AF_INET) { in main()
20 uv_ip4_name(&interface_a.address.address4, buf, sizeof(buf)); in main()
23 else if (interface_a.address.address4.sin_family == AF_INET6) { in main()
24 uv_ip6_name(&interface_a.address.address6, buf, sizeof(buf)); in main()
/libuv/docs/src/
H A Dudp.rst125 Membership type for a multicast address.
194 Bind the UDP handle to an IP address and port.
200 with the address and port to bind to.
234 with the address and port to associate to.
277 Set membership for a multicast address
284 :param interface_addr: Interface address.
299 :param interface_addr: Interface address.
301 :param source_addr: Source address.
345 :param interface_addr: interface address.
401 address and port of the remote peer.
[all …]
H A Derrors.rst32 address already in use
36 address not available
40 address family not supported
48 address family not supported
80 no address
136 destination address required
144 bad address in system call argument
320 no such device or address
H A Dtcp.rst26 /* Used with uv_tcp_bind, when an IPv6 address is used. */
106 Bind the handle to an address and port.
137 Get the current address to which the handle is bound. `name` must point to
143 Get the address of the peer connected to the handle. `name` must point to
153 On Windows if the `addr` is initialized to point to an unspecified address
H A Dmisc.rst181 } address;
412 Gets address information about the network interfaces on the system. An
438 Convert a binary structure containing an IPv4 address to a string.
442 Convert a binary structure containing an IPv6 address to a string.
446 Convert a binary structure containing an IPv4 address or an IPv6 address to a string.
498 address. On Windows, returns the numeric `ifindex` as a string. On all other
693 The format is `[flags] handle-type handle-address`. For `flags`:
H A Ddns.rst78 `hints` is a pointer to a struct addrinfo with additional address type
H A Dfs.rst577 aligned. Buffer size and address should be a multiple of the physical sector
/libuv/docs/src/guide/
H A Dnetworking.rst47 a human readable IP address, port pair to the sockaddr_in structure required by
104 address from a `DHCP`_ server -- DHCP Discover.
120 The IP address ``0.0.0.0`` is used to bind to all interfaces. The IP
121 address ``255.255.255.255`` is a broadcast address meaning that packets
242 times, with each address being reported once.
/libuv/
H A DCONTRIBUTING.md89 Make sure git knows your name and email address:
162 to address, apply your changes in a separate commit and push that to your
H A DCMakeLists.txt55 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
56 …MAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
57 …set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
59 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fsanitize=address")
H A DChangeLog109 * mailmap: update saghul's main email address (Saúl Ibarra Corretgé)
1483 * nfci: address some style nits (Jameson Nash)
1740 * win: address some style nits (Jameson Nash)
1810 * unix: cache address of dlsym("mkostemp") (Ben Noordhuis)
2199 * linux: set correct mac address for IP-aliases (Santiago Gimeno)
3155 * aix: add netmask, mac address into net interfaces (Gireesh Punathil)
5190 * windows: fix winsock status codes for address errors (Raul Martins)
5836 * unix, windows: fix ipv6 link-local address parsing (Ben Noordhuis)
/libuv/src/win/
H A Dutil.c837 uv_address->address.address6 = *((struct sockaddr_in6 *) sa); in uv_interface_addresses()
848 uv_address->address.address4 = *((struct sockaddr_in *) sa); in uv_interface_addresses()
/libuv/include/
H A Duv.h1206 } address; member

Completed in 86 milliseconds