Diff for /qemu/tap-win32.c between versions 1.1.1.5 and 1.1.1.6

version 1.1.1.5, 2018/04/24 16:50:21 version 1.1.1.6, 2018/04/24 17:06:30
Line 639  static int tap_win32_open(tap_win32_over Line 639  static int tap_win32_open(tap_win32_over
      tap_win32_overlapped_t *handle;       tap_win32_overlapped_t *handle;
  } TAPState;   } TAPState;
   
   static void tap_cleanup(VLANClientState *vc)
   {
       TAPState *s = vc->opaque;
   
       qemu_del_wait_object(s->handle->tap_semaphore, NULL, NULL);
   
       /* FIXME: need to kill thread and close file handle:
          tap_win32_close(s);
       */
       qemu_free(s);
   }
   
 static void tap_receive(void *opaque, const uint8_t *buf, int size)  static void tap_receive(void *opaque, const uint8_t *buf, int size)
 {  {
     TAPState *s = opaque;      TAPState *s = opaque;
Line 673  int tap_win32_init(VLANState *vlan, cons Line 685  int tap_win32_init(VLANState *vlan, cons
         return -1;          return -1;
     }      }
   
     s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);      s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive,
                                    NULL, tap_cleanup, s);
   
     snprintf(s->vc->info_str, sizeof(s->vc->info_str),      snprintf(s->vc->info_str, sizeof(s->vc->info_str),
              "tap: ifname=%s", ifname);               "tap: ifname=%s", ifname);

Removed from v.1.1.1.5  
changed lines
  Added in v.1.1.1.6


unix.superglobalmegacorp.com