Searched refs:addr (Results 1 - 25 of 51) sorted by relevance

123

/systemd/src/basic/
H A Dether-addr-util.c24 #include "ether-addr-util.h"
27 char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]) { argument
28 assert(addr);
36 addr->ether_addr_octet[0],
37 addr->ether_addr_octet[1],
38 addr->ether_addr_octet[2],
39 addr->ether_addr_octet[3],
40 addr->ether_addr_octet[4],
41 addr->ether_addr_octet[5]);
H A Dsigbus.c42 static void sigbus_push(void *addr) { argument
45 assert(addr);
49 if (__sync_bool_compare_and_swap(&sigbus_queue[u], NULL, addr)) {
86 void *addr; local
88 addr = sigbus_queue[u];
89 if (!addr)
92 if (__sync_bool_compare_and_swap(&sigbus_queue[u], addr, NULL)) {
94 *ret = addr;
H A Din-addr-util.h48 unsigned char in_addr_netmask_to_prefixlen(const struct in_addr *addr);
49 struct in_addr* in_addr_prefixlen_to_netmask(struct in_addr *addr, unsigned char prefixlen);
50 int in_addr_default_prefixlen(const struct in_addr *addr, unsigned char *prefixlen);
51 int in_addr_default_subnet_mask(const struct in_addr *addr, struct in_addr *mask);
52 int in_addr_mask(int family, union in_addr_union *addr, unsigned char prefixlen);
H A Din-addr-util.c27 #include "in-addr-util.h"
264 unsigned char in_addr_netmask_to_prefixlen(const struct in_addr *addr) { argument
265 assert(addr);
267 return 32 - u32ctz(be32toh(addr->s_addr));
270 struct in_addr* in_addr_prefixlen_to_netmask(struct in_addr *addr, unsigned char prefixlen) { argument
271 assert(addr);
276 addr->s_addr = 0;
278 addr->s_addr = htobe32((0xffffffff << (32 - prefixlen)) & 0xffffffff);
280 return addr;
283 int in_addr_default_prefixlen(const struct in_addr *addr, unsigne argument
307 in_addr_default_subnet_mask(const struct in_addr *addr, struct in_addr *mask) argument
322 in_addr_mask(int family, union in_addr_union *addr, unsigned char prefixlen) argument
[all...]
H A Dether-addr-util.h29 char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]);
H A Dselinux-util.h49 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
H A Dnss-util.h59 const void* addr, socklen_t len, \
66 const void* addr, socklen_t len, \
119 const void* addr, socklen_t len, \
125 addr, len, \
/systemd/src/test/
H A Dtest-sigbus.c29 void *addr = NULL; local
34 assert_se(sigbus_pop(&addr) == 0);
43 assert_se(sigbus_pop(&addr) == 0);
46 assert_se(sigbus_pop(&addr) == 0);
49 assert_se(sigbus_pop(&addr) == 0);
54 assert_se(sigbus_pop(&addr) > 0);
55 assert_se(addr == p + page_size() * 8);
56 assert_se(sigbus_pop(&addr) > 0);
57 assert_se(addr == p + page_size() * 10);
58 assert_se(sigbus_pop(&addr)
[all...]
/systemd/src/systemd/
H A Dsd-dhcp-lease.h39 int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr);
43 int sd_dhcp_lease_get_broadcast(sd_dhcp_lease *lease, struct in_addr *addr);
44 int sd_dhcp_lease_get_netmask(sd_dhcp_lease *lease, struct in_addr *addr);
45 int sd_dhcp_lease_get_router(sd_dhcp_lease *lease, struct in_addr *addr);
46 int sd_dhcp_lease_get_next_server(sd_dhcp_lease *lease, struct in_addr *addr);
47 int sd_dhcp_lease_get_server_identifier(sd_dhcp_lease *lease, struct in_addr *addr);
48 int sd_dhcp_lease_get_dns(sd_dhcp_lease *lease, const struct in_addr **addr);
49 int sd_dhcp_lease_get_ntp(sd_dhcp_lease *lease, const struct in_addr **addr);
H A Dsd-dhcp6-lease.h35 struct in6_addr *addr,
H A Dsd-network.h102 int sd_network_link_get_dns(int ifindex, char ***addr);
106 int sd_network_link_get_ntp(int ifindex, char ***addr);
H A Dsd-ipv4acd.h46 int sd_ipv4acd_set_mac(sd_ipv4acd *ll, const struct ether_addr *addr);
H A Dsd-ipv4ll.h45 int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr);
/systemd/src/network/
H A Dnetworkd-dhcp6.c66 _cleanup_address_free_ Address *addr = NULL; local
68 r = address_new(&addr);
72 addr->family = AF_INET6;
73 memcpy(&addr->in_addr.in6, ip6_addr, sizeof(*ip6_addr));
75 addr->flags = IFA_F_NOPREFIXROUTE;
76 addr->prefixlen = 128;
78 addr->cinfo.ifa_prefered = lifetime_preferred;
79 addr->cinfo.ifa_valid = lifetime_valid;
83 SD_NDISC_ADDRESS_FORMAT_VAL(addr->in_addr.in6),
84 addr
[all...]
/systemd/src/libsystemd-network/
H A Ddhcp6-option.c87 DHCP6Address *addr; local
119 LIST_FOREACH(addresses, addr, ia->addresses) {
121 sizeof(addr->iaaddr));
125 memcpy(*buf, &addr->iaaddr, sizeof(addr->iaaddr));
127 *buf += sizeof(addr->iaaddr);
128 *buflen -= sizeof(addr->iaaddr);
130 ia_addrlen += sizeof(DHCP6Option) + sizeof(addr->iaaddr);
192 DHCP6Address *addr; local
202 sizeof(addr
[all...]
H A Dsd-ipv4ll.c31 #include "in-addr-util.h"
136 int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr) { argument
145 seed = siphash24(&addr->ether_addr_octet, ETH_ALEN, HASH_KEY.bytes);
154 return sd_ipv4acd_set_mac(ll->acd, addr);
233 uint32_t addr; local
240 addr = be32toh(address->s_addr);
242 if ((addr & 0x0000FF00) == 0x0000 ||
243 (addr & 0x0000FF00) == 0xFF00)
267 be32_t addr; local
278 addr
[all...]
H A Dlldp-port.c87 const struct ether_addr *addr,
94 assert_return(addr, -EINVAL);
107 memcpy(&p->mac, addr, ETH_ALEN);
85 lldp_port_new(int ifindex, const char *ifname, const struct ether_addr *addr, void *userdata, lldp_port **ret) argument
H A Dlldp-port.h60 const struct ether_addr *addr,
H A Dsd-dhcp-lease.c37 #include "in-addr-util.h"
44 int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) { argument
46 assert_return(addr, -EINVAL);
51 addr->s_addr = lease->address;
55 int sd_dhcp_lease_get_broadcast(sd_dhcp_lease *lease, struct in_addr *addr) { argument
57 assert_return(addr, -EINVAL);
62 addr->s_addr = lease->broadcast;
110 int sd_dhcp_lease_get_dns(sd_dhcp_lease *lease, const struct in_addr **addr) { argument
112 assert_return(addr, -EINVAL);
117 *addr
121 sd_dhcp_lease_get_ntp(sd_dhcp_lease *lease, const struct in_addr **addr) argument
165 sd_dhcp_lease_get_router(sd_dhcp_lease *lease, struct in_addr *addr) argument
176 sd_dhcp_lease_get_netmask(sd_dhcp_lease *lease, struct in_addr *addr) argument
187 sd_dhcp_lease_get_server_identifier(sd_dhcp_lease *lease, struct in_addr *addr) argument
198 sd_dhcp_lease_get_next_server(sd_dhcp_lease *lease, struct in_addr *addr) argument
421 struct in_addr addr; local
[all...]
H A Dtest-ipv4ll-manual.c31 #include "in-addr-util.h"
39 struct in_addr addr = {}; local
43 if (sd_ipv4ll_get_address(ll, &addr) >= 0)
44 assert_se(in_addr_to_string(AF_INET, (const union in_addr_union*) &addr, &address) >= 0);
H A Dsd-ndisc.c32 #include "in-addr-util.h"
69 struct in6_addr addr; member in struct:NDiscPrefix
281 const struct in6_addr *addr,
286 assert_return(addr, -EINVAL);
293 if (memcmp(prefix, addr, bytes) != 0 ||
294 (prefix->s6_addr[bytes] & mask) != (addr->s6_addr[bytes] & mask))
300 static int ndisc_prefix_match(sd_ndisc *nd, const struct in6_addr *addr, argument
318 if (prefix_match(&prefix->addr, prefix->len, addr, addr_len) >= 0) {
368 memcpy(&prefix->addr,
280 prefix_match(const struct in6_addr *prefix, uint8_t prefixlen, const struct in6_addr *addr, uint8_t addr_prefixlen) argument
552 _cleanup_free_ char *addr = NULL; local
[all...]
H A Dsd-ipv4acd.c32 #include "in-addr-util.h"
270 union in_addr_union addr = { .in.s_addr = ll->address }; local
272 r = in_addr_to_string(AF_INET, &addr, &address);
333 union in_addr_union addr = { .in.s_addr = ll->address }; local
340 r = in_addr_to_string(AF_INET, &addr, &address);
413 int sd_ipv4acd_set_mac(sd_ipv4acd *ll, const struct ether_addr *addr) { argument
415 assert_return(addr, -EINVAL);
418 memcpy(&ll->mac_addr, addr, ETH_ALEN);
475 static bool ether_addr_is_nul(const struct ether_addr *addr) { argument
478 assert(addr);
[all...]
/systemd/src/boot/efi/
H A Dlinux.c90 EFI_PHYSICAL_ADDRESS addr; local
100 addr = 0x3fffffff;
102 EFI_SIZE_TO_PAGES(0x4000), &addr);
105 boot_setup = (struct SetupHeader *)(UINTN)addr;
113 addr = 0xA0000;
115 EFI_SIZE_TO_PAGES(cmdline_len + 1), &addr);
118 CopyMem((VOID *)(UINTN)addr, cmdline, cmdline_len);
119 ((CHAR8 *)addr)[cmdline_len] = 0;
120 boot_setup->cmd_line_ptr = (UINT32)addr;
/systemd/src/libsystemd/sd-resolve/
H A Dtest-resolve.c47 _cleanup_free_ char *addr = NULL; local
49 assert_se(sockaddr_pretty(i->ai_addr, i->ai_addrlen, false, true, &addr) == 0);
50 puts(addr);
/systemd/src/nss-myhostname/
H A Dnss-myhostname.c136 memcpy(r_tuple->addr, LOCALADDRESS_IPV6, 16);
147 *(uint32_t*) r_tuple->addr = local_address_ipv4;
161 memcpy(r_tuple->addr, &a->address, 16);
399 const void* addr, socklen_t len,
417 assert(addr);
436 if ((*(uint32_t*) addr) == LOCALADDRESS_IPV4)
439 if ((*(uint32_t*) addr) == htonl(INADDR_LOOPBACK)) {
448 if (memcmp(addr, LOCALADDRESS_IPV6, 16) == 0) {
461 if (memcmp(addr, &a->address, FAMILY_ADDRESS_SIZE(af)) == 0)
474 if (memcmp(addr,
398 _nss_myhostname_gethostbyaddr2_r( const void* addr, socklen_t len, int af, struct hostent *host, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
[all...]

Completed in 61 milliseconds

123