mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-12 00:29:43 +00:00
[resolv] Use a one-shot process for the numeric resolver
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
ccc2655540
commit
5694b71b11
@ -88,14 +88,13 @@ struct numeric_resolv {
|
||||
|
||||
static void numeric_step ( struct numeric_resolv *numeric ) {
|
||||
|
||||
process_del ( &numeric->process );
|
||||
if ( numeric->rc == 0 )
|
||||
resolv_done ( &numeric->resolv, &numeric->sa );
|
||||
intf_shutdown ( &numeric->resolv, numeric->rc );
|
||||
}
|
||||
|
||||
static struct process_descriptor numeric_process_desc =
|
||||
PROC_DESC ( struct numeric_resolv, process, numeric_step );
|
||||
PROC_DESC_ONCE ( struct numeric_resolv, process, numeric_step );
|
||||
|
||||
static int numeric_resolv ( struct interface *resolv,
|
||||
const char *name, struct sockaddr *sa ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user