Home
last modified time | relevance | path

Searched refs:defaultMask (Results 1 – 4 of 4) sorted by relevance

/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6_address.cpp462 sockaddr_in6 *defaultMask = (sockaddr_in6 *)_defaultMask; in ipv6_set_to_defaults() local
466 if (address == NULL || defaultMask == NULL) in ipv6_set_to_defaults()
469 defaultMask->sin6_len = sizeof(sockaddr_in); in ipv6_set_to_defaults()
470 defaultMask->sin6_family = AF_INET6; in ipv6_set_to_defaults()
471 defaultMask->sin6_port = 0; in ipv6_set_to_defaults()
473 memcpy(defaultMask->sin6_addr.s6_addr, in ipv6_set_to_defaults()
477 memset(defaultMask->sin6_addr.s6_addr, 0xff, sizeof(in6_addr)); in ipv6_set_to_defaults()
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4_address.cpp415 sockaddr_in *defaultMask = (sockaddr_in *)_defaultMask; in ipv4_set_to_defaults() local
420 if (address == NULL || (defaultMask == NULL && defaultBroadcast == NULL)) in ipv4_set_to_defaults()
440 if (defaultMask != NULL) { in ipv4_set_to_defaults()
441 defaultMask->sin_len = sizeof(sockaddr_in); in ipv4_set_to_defaults()
442 defaultMask->sin_family = AF_INET; in ipv4_set_to_defaults()
443 defaultMask->sin_port = 0; in ipv4_set_to_defaults()
444 defaultMask->sin_addr.s_addr = net; in ipv4_set_to_defaults()
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixAddress.cpp225 unix_set_to_defaults(sockaddr *defaultMask, sockaddr *defaultBroadcast, in unix_set_to_defaults() argument
232 if (defaultMask != NULL) in unix_set_to_defaults()
233 error = unix_set_to_empty_address(defaultMask); in unix_set_to_defaults()
/haiku/headers/private/net/
H A Dnet_datalink.h160 status_t (*set_to_defaults)(struct sockaddr* defaultMask,