/systemd/src/systemd/ |
H A D | sd-dhcp-lease.h | 39 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); 59 int sd_dhcp_route_get_destination(sd_dhcp_route *route, struct in_addr *destination); 61 int sd_dhcp_route_get_gateway(sd_dhcp_route *route, struct in_addr *gatewa [all...] |
H A D | sd-ipv4acd.h | 44 int sd_ipv4acd_get_address(sd_ipv4acd *ll, struct in_addr *address); 48 int sd_ipv4acd_set_address(sd_ipv4acd *ll, const struct in_addr *address);
|
H A D | sd-ipv4ll.h | 43 int sd_ipv4ll_get_address(sd_ipv4ll *ll, struct in_addr *address); 47 int sd_ipv4ll_set_address(sd_ipv4ll *ll, const struct in_addr *address);
|
H A D | sd-dhcp-server.h | 49 int sd_dhcp_server_configure_pool(sd_dhcp_server *server, struct in_addr *address, unsigned char prefixlen, uint32_t offset, uint32_t size); 52 int sd_dhcp_server_set_dns(sd_dhcp_server *server, const struct in_addr ntp[], unsigned n); 53 int sd_dhcp_server_set_ntp(sd_dhcp_server *server, const struct in_addr dns[], unsigned n);
|
/systemd/src/basic/ |
H A D | in-addr-util.h | 30 struct in_addr in; 48 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);
|
H A D | in-addr-util.c | 264 unsigned char in_addr_netmask_to_prefixlen(const struct in_addr *addr) { 270 struct in_addr* in_addr_prefixlen_to_netmask(struct in_addr *addr, unsigned char prefixlen) { 283 int in_addr_default_prefixlen(const struct in_addr *addr, unsigned char *prefixlen) { 307 int in_addr_default_subnet_mask(const struct in_addr *addr, struct in_addr *mask) { 326 struct in_addr mask;
|
/systemd/src/libsystemd-network/ |
H A D | dhcp-lease-internal.h | 33 struct in_addr dst_addr; 34 struct in_addr gw_addr; 66 struct in_addr *dns; 69 struct in_addr *ntp;
|
H A D | sd-ipv4ll.c | 184 int sd_ipv4ll_get_address(sd_ipv4ll *ll, struct in_addr *address){ 232 static bool ipv4ll_address_is_valid(const struct in_addr *address) { 249 int sd_ipv4ll_set_address(sd_ipv4ll *ll, const struct in_addr *address) { 266 struct in_addr in_addr; local 283 in_addr.s_addr = addr; 285 r = sd_ipv4ll_set_address(ll, &in_addr);
|
H A D | network-internal.h | 68 void serialize_in_addrs(FILE *f, const struct in_addr *addresses, size_t size); 69 int deserialize_in_addrs(struct in_addr **addresses, const char *string);
|
H A D | sd-dhcp-lease.c | 44 int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) { 55 int sd_dhcp_lease_get_broadcast(sd_dhcp_lease *lease, struct in_addr *addr) { 110 int sd_dhcp_lease_get_dns(sd_dhcp_lease *lease, const struct in_addr **addr) { 121 int sd_dhcp_lease_get_ntp(sd_dhcp_lease *lease, const struct in_addr **addr) { 165 int sd_dhcp_lease_get_router(sd_dhcp_lease *lease, struct in_addr *addr) { 176 int sd_dhcp_lease_get_netmask(sd_dhcp_lease *lease, struct in_addr *addr) { 187 int sd_dhcp_lease_get_server_identifier(sd_dhcp_lease *lease, struct in_addr *addr) { 198 int sd_dhcp_lease_get_next_server(sd_dhcp_lease *lease, struct in_addr *addr) { 388 static int lease_parse_in_addrs(const uint8_t *option, size_t len, struct in_addr **ret, size_t *n_ret) { 398 struct in_addr *addresse [all...] |
H A D | dhcp-server-internal.h | 63 struct in_addr *ntp, *dns;
|
H A D | network-internal.c | 338 void serialize_in_addrs(FILE *f, const struct in_addr *addresses, size_t size) { 350 int deserialize_in_addrs(struct in_addr **ret, const char *string) { 351 _cleanup_free_ struct in_addr *addresses = NULL; 361 struct in_addr *new_addresses; 364 new_addresses = realloc(addresses, (size + 1) * sizeof(struct in_addr)); 449 struct in_addr dest, gw;
|
H A D | test-acd.c | 53 static int client_run(int ifindex, const struct in_addr *pa, const struct ether_addr *ha, sd_event *e) {
|
H A D | test-dhcp-server.c | 28 static void test_pool(struct in_addr *address, unsigned size, int ret) { 38 struct in_addr address_lo = { 41 struct in_addr address_any = { 121 struct in_addr address_lo = {
|
/systemd/src/network/ |
H A D | networkd-address.h | 47 struct in_addr broadcast; 50 union in_addr_union in_addr; member in struct:Address 61 int address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret); 62 int address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret); 63 int address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
|
H A D | networkd-address-pool.c | 46 p->in_addr = *u; 107 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen)) 116 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen)) 129 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen)) 147 u = p->in_addr; 162 if (!in_addr_prefix_intersect(p->family, &p->in_addr, p->prefixlen, &u, prefixlen))
|
H A D | networkd-address-pool.h | 33 union in_addr_union in_addr; member in struct:AddressPool
|
H A D | networkd-ndisc.c | 74 address->in_addr.in6 = *prefix; 76 memcpy(((char *)&address->in_addr.in6) + 8, ((char *)&link->network->ipv6_token) + 8, 8); 79 address->in_addr.in6.__in6_u.__u6_addr8[8] = link->mac.ether_addr_octet[0]; 80 address->in_addr.in6.__in6_u.__u6_addr8[8] ^= 1 << 1; 81 address->in_addr.in6.__in6_u.__u6_addr8[9] = link->mac.ether_addr_octet[1]; 82 address->in_addr.in6.__in6_u.__u6_addr8[10] = link->mac.ether_addr_octet[2]; 83 address->in_addr.in6.__in6_u.__u6_addr8[11] = 0xff; 84 address->in_addr.in6.__in6_u.__u6_addr8[12] = 0xfe; 85 address->in_addr.in6.__in6_u.__u6_addr8[13] = link->mac.ether_addr_octet[3]; 86 address->in_addr [all...] |
H A D | networkd-address.c | 124 prefix = be32toh(a->in_addr.in.s_addr) >> (32 - a->prefixlen); 132 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state); 166 b1 = be32toh(a1->in_addr.in.s_addr) >> (32 - a1->prefixlen); 171 b2 = be32toh(a2->in_addr.in.s_addr) >> (32 - a1->prefixlen); 181 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); 217 union in_addr_union masked = address->in_addr; 232 const union in_addr_union *in_addr, 240 assert(in_addr); 247 address->in_addr 230 address_add_internal(Link *link, Set **addresses, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument 270 address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument 274 address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument 380 address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument 445 union in_addr_union in_addr = {}; local [all...] |
H A D | test-network.c | 26 _cleanup_free_ struct in_addr *addresses = NULL; 28 struct in_addr a, b, c; 45 assert_se(!memcmp(&a, &addresses[0], sizeof(struct in_addr))); 46 assert_se(!memcmp(&b, &addresses[1], sizeof(struct in_addr))); 47 assert_se(!memcmp(&c, &addresses[2], sizeof(struct in_addr))); 159 assert_se(inet_pton(AF_INET, "192.168.3.9", &a1->in_addr.in)); 161 assert_se(inet_pton(AF_INET, "192.168.3.9", &a2->in_addr.in)); 176 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::2", &a1->in_addr.in6)); 177 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::2", &a2->in_addr.in6)); 183 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::1", &a2->in_addr [all...] |
H A D | networkd-dhcp4.c | 54 struct in_addr gateway; 66 struct in_addr address; 148 struct in_addr addr; 149 struct in_addr netmask; 150 struct in_addr gateway; 217 address->in_addr.in = addr; 282 struct in_addr *address, 283 struct in_addr *netmask, 300 addr->in_addr.in.s_addr = address->s_addr; 317 struct in_addr addres [all...] |
H A D | networkd-ipv4ll.c | 29 struct in_addr addr; 50 address->in_addr.in = addr; 119 struct in_addr address; 139 ll_addr->in_addr.in = address; 141 ll_addr->broadcast.s_addr = ll_addr->in_addr.in.s_addr | htonl(0xfffffffflu >> ll_addr->prefixlen);
|
H A D | networkd-dhcp6.c | 73 memcpy(&addr->in_addr.in6, ip6_addr, sizeof(*ip6_addr)); 83 SD_NDISC_ADDRESS_FORMAT_VAL(addr->in_addr.in6),
|
/systemd/src/resolve/ |
H A D | resolved-link.h | 43 union in_addr_union in_addr; member in struct:LinkAddress 91 LinkAddress* link_find_address(Link *l, int family, const union in_addr_union *in_addr); 105 int link_address_new(Link *l, LinkAddress **ret, int family, const union in_addr_union *in_addr);
|
H A D | resolved-manager.h | 146 int manager_find_ifindex(Manager *m, int family, const union in_addr_union *in_addr); 147 LinkAddress* manager_find_link_address(Manager *m, int family, const union in_addr_union *in_addr);
|