Searched defs:in_addr (Results 1 - 11 of 11) sorted by relevance

/systemd/src/network/
H A Dnetworkd-address-pool.h33 union in_addr_union in_addr; member in struct:AddressPool
H A Dnetworkd-address.h47 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 Dnetworkd-address.c124 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 Dnetworkd-manager.c480 union in_addr_union in_addr; local
552 r = sd_netlink_message_read_in_addr(message, IFA_LOCAL, &in_addr.in);
561 r = sd_netlink_message_read_in6_addr(message, IFA_ADDRESS, &in_addr.in6);
573 if (!inet_ntop(family, &in_addr, buf, INET6_ADDRSTRLEN)) {
586 address_get(link, family, &in_addr, prefixlen, &address);
595 r = address_add_foreign(link, family, &in_addr, prefixlen, &address);
779 static int ordered_set_put_in_addr(OrderedSet *s, const struct in_addr *address) {
796 static int ordered_set_put_in_addrv(OrderedSet *s, const struct in_addr *addresses, int n) {
891 const struct in_addr *addresses;
903 const struct in_addr *addresse
[all...]
/systemd/src/resolve/
H A Dresolved-link.h43 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 Dresolved-link.c558 LinkAddress *link_find_address(Link *l, int family, const union in_addr_union *in_addr) { argument
564 if (a->family == family && in_addr_equal(family, &a->in_addr, in_addr))
637 int link_address_new(Link *l, LinkAddress **ret, int family, const union in_addr_union *in_addr) { argument
641 assert(in_addr);
648 a->in_addr = *in_addr;
716 a->llmnr_address_rr->a.in_addr = a->in_addr.in;
721 r = dns_resource_record_new_reverse(&a->llmnr_ptr_rr, a->family, &a->in_addr,
[all...]
H A Dresolved-dns-server.c46 const union in_addr_union *in_addr) {
52 assert(in_addr);
77 s->address = *in_addr;
625 DnsServer *dns_server_find(DnsServer *first, int family, const union in_addr_union *in_addr) { argument
629 if (s->family == family && in_addr_equal(family, &s->address, in_addr) > 0)
40 dns_server_new( Manager *m, DnsServer **ret, DnsServerType type, Link *l, int family, const union in_addr_union *in_addr) argument
H A Dresolved-manager.c799 static int manager_ipv4_send(Manager *m, int fd, int ifindex, const struct in_addr *addr, uint16_t port, DnsPacket *p) {
935 int manager_find_ifindex(Manager *m, int family, const union in_addr_union *in_addr) { argument
940 a = manager_find_link_address(m, family, in_addr);
1015 LinkAddress* manager_find_link_address(Manager *m, int family, const union in_addr_union *in_addr) { argument
1024 a = link_find_address(l, family, in_addr);
H A Dresolved-dns-rr.h154 struct in_addr in_addr; member in struct:DnsResourceRecord::__anon231::__anon237
/systemd/src/libsystemd-network/
H A Dsd-ipv4ll.c184 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);
/systemd/src/machine/
H A Dmachine-dbus.c308 union in_addr_union in_addr; local
316 iov[1] = (struct iovec) { .iov_base = &in_addr, .iov_len = sizeof(in_addr) };
335 if (n != sizeof(struct in_addr) + sizeof(family))
338 r = sd_bus_message_append_array(reply, 'y', &in_addr.in, sizeof(in_addr.in));
345 r = sd_bus_message_append_array(reply, 'y', &in_addr.in6, sizeof(in_addr.in6));

Completed in 31 milliseconds