tap-win32.c (bc3fbad816961a5b4a7f51a37472c4ac01effb92) | tap-win32.c (a30ecde6e795682d1473c45acae66a60a76fca2f) |
---|---|
1/* 2 * TAP-Win32 -- A kernel driver to provide virtual tap device functionality 3 * on Windows. Originally derived from the CIPE-Win32 4 * project by Damion K. Wilson, with extensive modifications by 5 * James Yonan. 6 * 7 * All source code which derives from the CIPE-Win32 project is 8 * Copyright (C) Damion K. Wilson, 2003, and is released under the --- 738 unchanged lines hidden (view full) --- 747 s->handle = handle; 748 749 qemu_add_wait_object(s->handle->tap_semaphore, tap_win32_send, s); 750 751 return 0; 752} 753 754int net_init_tap(const NetClientOptions *opts, const char *name, | 1/* 2 * TAP-Win32 -- A kernel driver to provide virtual tap device functionality 3 * on Windows. Originally derived from the CIPE-Win32 4 * project by Damion K. Wilson, with extensive modifications by 5 * James Yonan. 6 * 7 * All source code which derives from the CIPE-Win32 project is 8 * Copyright (C) Damion K. Wilson, 2003, and is released under the --- 738 unchanged lines hidden (view full) --- 747 s->handle = handle; 748 749 qemu_add_wait_object(s->handle->tap_semaphore, tap_win32_send, s); 750 751 return 0; 752} 753 754int net_init_tap(const NetClientOptions *opts, const char *name, |
755 NetClientState *peer) | 755 NetClientState *peer, Error **errp) |
756{ | 756{ |
757 /* FIXME error_setg(errp, ...) on failure */ |
|
757 const NetdevTapOptions *tap; 758 759 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_TAP); 760 tap = opts->tap; 761 762 if (!tap->has_ifname) { 763 error_report("tap: no interface name"); 764 return -1; --- 18 unchanged lines hidden --- | 758 const NetdevTapOptions *tap; 759 760 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_TAP); 761 tap = opts->tap; 762 763 if (!tap->has_ifname) { 764 error_report("tap: no interface name"); 765 return -1; --- 18 unchanged lines hidden --- |