Revision 95d528a2

b/net/tap.c
270 270
    tap_write_poll(s, enable);
271 271
}
272 272

  
273
int tap_get_fd(VLANClientState *nc)
274
{
275
    TAPState *s = DO_UPCAST(TAPState, nc, nc);
276
    assert(nc->info->type == NET_CLIENT_TYPE_TAP);
277
    return s->fd;
278
}
279

  
273 280
/* fd support */
274 281

  
275 282
static NetClientInfo net_tap_info = {
b/net/tap.h
48 48
int tap_probe_has_ufo(int fd);
49 49
void tap_fd_set_offload(int fd, int csum, int tso4, int tso6, int ecn, int ufo);
50 50

  
51
int tap_get_fd(VLANClientState *vc);
52

  
51 53
#endif /* QEMU_NET_TAP_H */

Also available in: Unified diff