Lines Matching refs:resolv
29 #include <gpxe/resolv.h>
47 * @v resolv Name resolution interface
51 void resolv_done ( struct resolv_interface *resolv, struct sockaddr *sa,
53 struct resolv_interface *dest = resolv_get_dest ( resolv );
55 resolv_unplug ( resolv );
63 * @v resolv Name resolution interface
67 void ignore_resolv_done ( struct resolv_interface *resolv __unused,
98 struct resolv_interface resolv;
111 resolv_done ( &numeric->resolv, &numeric->sa, numeric->rc );
115 static int numeric_resolv ( struct resolv_interface *resolv,
124 resolv_init ( &numeric->resolv, &null_resolv_ops, &numeric->refcnt );
138 resolv_plug_plug ( &numeric->resolv, resolv );
145 .resolv = numeric_resolv,
186 DBGC ( mux, "RESOLV %p trying method %s\n", mux, resolver->name );
188 if ( ( rc = resolver->resolv ( &mux->child, mux->name,
190 DBGC ( mux, "RESOLV %p could not use method %s: %s\n",
201 * @v resolv Child name resolution interface
205 static void resolv_mux_done ( struct resolv_interface *resolv,
208 container_of ( resolv, struct resolv_mux, child );
215 DBGC ( mux, "RESOLV %p succeeded using method %s\n",
223 DBGC ( mux, "RESOLV %p failed to resolve name\n", mux );
244 * @v resolv Name resolution interface
249 int resolv ( struct resolv_interface *resolv, const char *name,
265 DBGC ( mux, "RESOLV %p attempting to resolve \"%s\"\n", mux, name );
275 resolv_plug_plug ( &mux->parent, resolv );
298 struct resolv_interface resolv;
316 resolv_nullify ( &named->resolv );
347 * @v resolv Name resolution interface
351 static void named_resolv_done ( struct resolv_interface *resolv,
354 container_of ( resolv, struct named_socket, resolv );
393 resolv_init ( &named->resolv, &named_resolv_ops, &named->refcnt );
400 DBGC ( named, "RESOLV %p opening named socket \"%s\"\n",
404 if ( ( rc = resolv ( &named->resolv, name, peer ) ) != 0 )