Revision 3b46e624 tap-win32.c
b/tap-win32.c | ||
---|---|---|
343 | 343 |
0, |
344 | 344 |
KEY_READ, |
345 | 345 |
&connection_key); |
346 |
|
|
346 |
|
|
347 | 347 |
if (status == ERROR_SUCCESS) { |
348 | 348 |
len = sizeof (name_data); |
349 | 349 |
status = RegQueryValueEx( |
... | ... | |
467 | 467 |
|
468 | 468 |
result = WriteFile(overlapped->handle, buffer, size, |
469 | 469 |
&write_size, &overlapped->write_overlapped); |
470 |
|
|
470 |
|
|
471 | 471 |
if (!result) { |
472 | 472 |
switch (error = GetLastError()) |
473 | 473 |
{ |
... | ... | |
660 | 660 |
int tap_win32_init(VLANState *vlan, const char *ifname) |
661 | 661 |
{ |
662 | 662 |
TAPState *s; |
663 |
|
|
663 |
|
|
664 | 664 |
s = qemu_mallocz(sizeof(TAPState)); |
665 | 665 |
if (!s) |
666 | 666 |
return -1; |
... | ... | |
670 | 670 |
} |
671 | 671 |
|
672 | 672 |
s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s); |
673 |
|
|
673 |
|
|
674 | 674 |
snprintf(s->vc->info_str, sizeof(s->vc->info_str), |
675 | 675 |
"tap: ifname=%s", ifname); |
676 | 676 |
|
Also available in: Unified diff