Lines Matching refs:server
67 struct server { struct
118 static int server_match(const struct server *srv, const struct server_filter *f) in server_match()
141 struct server *srv; in server_query()
143 srv = map_iter_data(me, struct server, mi); in server_query()
157 struct server *srv) in service_announce_new()
166 cmsg.server.service = cpu_to_le32(srv->service); in service_announce_new()
167 cmsg.server.instance = cpu_to_le32(srv->instance); in service_announce_new()
168 cmsg.server.node = cpu_to_le32(srv->node); in service_announce_new()
169 cmsg.server.port = cpu_to_le32(srv->port); in service_announce_new()
181 struct server *srv) in service_announce_del()
190 cmsg.server.service = cpu_to_le32(srv->service); in service_announce_del()
191 cmsg.server.instance = cpu_to_le32(srv->instance); in service_announce_del()
192 cmsg.server.node = cpu_to_le32(srv->node); in service_announce_del()
193 cmsg.server.port = cpu_to_le32(srv->port); in service_announce_del()
204 struct server *srv, bool new) in lookup_notify()
211 pkt.server.service = cpu_to_le32(srv->service); in lookup_notify()
212 pkt.server.instance = cpu_to_le32(srv->instance); in lookup_notify()
213 pkt.server.node = cpu_to_le32(srv->node); in lookup_notify()
214 pkt.server.port = cpu_to_le32(srv->port); in lookup_notify()
227 struct server *srv; in annouce_servers()
236 srv = map_iter_data(me, struct server, mi); in annouce_servers()
246 static struct server *server_add(unsigned int service, unsigned int instance, in server_add()
250 struct server *srv; in server_add()
278 struct server *old = container_of(mi, struct server, mi); in server_add()
294 struct server *srv; in server_del()
300 srv = container_of(mi, struct server, mi); in server_del()
341 struct server *srv; in ctrl_cmd_bye()
350 srv = map_iter_data(me, struct server, mi); in ctrl_cmd_bye()
365 srv = map_iter_data(me, struct server, mi); in ctrl_cmd_bye()
390 struct server *srv; in ctrl_cmd_del_client()
429 srv = map_iter_data(me, struct server, mi); in ctrl_cmd_del_client()
450 struct server *srv; in ctrl_cmd_new_server()
518 struct server *srv; in ctrl_cmd_new_lookup()
539 srv = container_of(li, struct server, qli); in ctrl_cmd_new_lookup()
622 le32_to_cpu(msg->server.service), in ctrl_port_fn()
623 le32_to_cpu(msg->server.instance), in ctrl_port_fn()
624 le32_to_cpu(msg->server.node), in ctrl_port_fn()
625 le32_to_cpu(msg->server.port)); in ctrl_port_fn()
629 le32_to_cpu(msg->server.service), in ctrl_port_fn()
630 le32_to_cpu(msg->server.instance), in ctrl_port_fn()
631 le32_to_cpu(msg->server.node), in ctrl_port_fn()
632 le32_to_cpu(msg->server.port)); in ctrl_port_fn()
640 le32_to_cpu(msg->server.service), in ctrl_port_fn()
641 le32_to_cpu(msg->server.instance)); in ctrl_port_fn()
645 le32_to_cpu(msg->server.service), in ctrl_port_fn()
646 le32_to_cpu(msg->server.instance)); in ctrl_port_fn()
675 free(container_of(mi, struct server, mi)); in server_mi_free()