Home
last modified time | relevance | path

Searched refs:ifr_addr (Results 1 – 13 of 13) sorted by relevance

/haiku/headers/posix/net/
H A Dif.h36 struct sockaddr ifr_addr; member
101 (IF_NAMESIZE + (request).ifr_addr.sa_len > (int)sizeof(struct ifreq) \
102 ? IF_NAMESIZE + (request).ifr_addr.sa_len : sizeof(struct ifreq))
/haiku/src/bin/network/traceroute/
H A Difaddrlist.c102 n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name); in ifaddrlist()
107 if (ifrp->ifr_addr.sa_family != AF_INET) in ifaddrlist()
150 sin = (struct sockaddr_in *)&ifr.ifr_addr; in ifaddrlist()
/haiku/src/kits/network/libnetapi/
H A DNetworkInterface.cpp438 memcpy(&request.ifr_addr, &address.Address().SockAddr(), in RemoveAddress()
450 memcpy(&request.ifr_addr, &address.SockAddr(), address.Length()); in RemoveAddress()
481 address.SetTo(request.ifr_addr); in GetHardwareAddress()
H A DNetworkRoster.cpp141 request.ifr_addr.sa_family = AF_UNSPEC; in RemoveInterface()
H A DNetworkDevice.cpp702 address.SetTo(request.ifr_addr); in GetHardwareAddress()
/haiku/src/system/kernel/fs/
H A Dvfs_net_boot.cpp204 sockaddr_dl& link = *(sockaddr_dl*)&request.ifr_addr; in _ScanDevice()
232 sockaddr_in& address = *(sockaddr_in*)&request.ifr_addr; in _ScanDevice()
/haiku/src/add-ons/kernel/network/stack/
H A Ddatalink.cpp274 if (request.ifr_addr.sa_family != AF_UNSPEC in datalink_control()
275 && request.ifr_addr.sa_len != 0) { in datalink_control()
796 = get_interface_address(&request.ifr_addr); in interface_protocol_control()
804 size_t maxLength = length - offsetof(ifreq, ifr_addr); in interface_protocol_control()
808 &((struct ifreq*)argument)->ifr_addr, maxLength); in interface_protocol_control()
H A Dlink.cpp433 return user_memcpy(&((struct ifreq*)value)->ifr_addr, in link_control()
H A Dinterfaces.cpp877 size_t size = max_c(request.ifr_addr.sa_len, sizeof(sockaddr)); in Control()
881 if (user_memcpy(&newAddress, &userRequest->ifr_addr, size) != B_OK) in Control()
/haiku/src/libs/uuid/
H A Dgen_uuid.c179 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
206 sdlp = (struct sockaddr_dl *) &ifrp->ifr_addr; in get_node_id()
/haiku/src/system/libnetwork/
H A Dgetifaddrs.cpp82 current->ifa_addr = copy_address(interfaces[0].ifr_addr); in _getifaddrs()
/haiku/src/bin/debug/strace/
H A DNetworkTypes.cpp539 int size = IF_NAMESIZE + ifr->ifr_addr.sa_len; in format_pointer()
548 + format_pointer(context, &ifr->ifr_addr) + "}}"; in format_pointer()
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetaddrinfo.c947 memcpy(&ifr6.ifr_addr, ai.ai_addr, ai.ai_addrlen); in set_source()