Lines Matching defs:item
47 EtcHostsItem *item;
50 while ((item = set_steal_first(m->etc_hosts_by_address))) {
51 strv_free(item->names);
52 free(item);
68 const EtcHostsItem *item = p;
70 siphash24_compress(&item->family, sizeof(item->family), state);
72 if (item->family == AF_INET)
73 siphash24_compress(&item->address.in, sizeof(item->address.in), state);
74 else if (item->family == AF_INET6)
75 siphash24_compress(&item->address.in6, sizeof(item->address.in6), state);
104 EtcHostsItem *item;
115 /* This is an 0.0.0.0 or :: item, which we assume means that we shall map the specified hostname to
117 item = NULL;
121 item = set_get(m->etc_hosts_by_address, &key);
122 if (item) {
123 r = strv_extend_strv(&item->names, names, true);
132 item = new0(EtcHostsItem, 1);
133 if (!item)
136 item->family = family;
137 item->address = *address;
138 item->names = names;
140 r = set_put(m->etc_hosts_by_address, item);
142 free(item);
175 if (item) {
179 bn->items[bn->n_items++] = item;
350 EtcHostsItem *item;
353 item = set_get(m->etc_hosts_by_address, &k);
354 if (!item)
378 r = dns_answer_reserve(answer, strv_length(item->names));
382 STRV_FOREACH(n, item->names) {