1a8ed73f7SMark McLoughlin /* 2a8ed73f7SMark McLoughlin * QEMU System Emulator 3a8ed73f7SMark McLoughlin * 4a8ed73f7SMark McLoughlin * Copyright (c) 2003-2008 Fabrice Bellard 5a8ed73f7SMark McLoughlin * Copyright (c) 2009 Red Hat, Inc. 6a8ed73f7SMark McLoughlin * 7a8ed73f7SMark McLoughlin * Permission is hereby granted, free of charge, to any person obtaining a copy 8a8ed73f7SMark McLoughlin * of this software and associated documentation files (the "Software"), to deal 9a8ed73f7SMark McLoughlin * in the Software without restriction, including without limitation the rights 10a8ed73f7SMark McLoughlin * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11a8ed73f7SMark McLoughlin * copies of the Software, and to permit persons to whom the Software is 12a8ed73f7SMark McLoughlin * furnished to do so, subject to the following conditions: 13a8ed73f7SMark McLoughlin * 14a8ed73f7SMark McLoughlin * The above copyright notice and this permission notice shall be included in 15a8ed73f7SMark McLoughlin * all copies or substantial portions of the Software. 16a8ed73f7SMark McLoughlin * 17a8ed73f7SMark McLoughlin * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18a8ed73f7SMark McLoughlin * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19a8ed73f7SMark McLoughlin * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20a8ed73f7SMark McLoughlin * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21a8ed73f7SMark McLoughlin * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22a8ed73f7SMark McLoughlin * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23a8ed73f7SMark McLoughlin * THE SOFTWARE. 24a8ed73f7SMark McLoughlin */ 25a8ed73f7SMark McLoughlin 26a8ed73f7SMark McLoughlin #ifndef QEMU_NET_TAP_H 27a8ed73f7SMark McLoughlin #define QEMU_NET_TAP_H 28a8ed73f7SMark McLoughlin 29*b93a5ba3SMichael S. Tsirkin #include "standard-headers/linux/virtio_net.h" 30a8ed73f7SMark McLoughlin 3116dbaf90SJason Wang int tap_enable(NetClientState *nc); 3216dbaf90SJason Wang int tap_disable(NetClientState *nc); 33a8ed73f7SMark McLoughlin 3435277d14SStefan Hajnoczi int tap_get_fd(NetClientState *nc); 3595d528a2SMichael S. Tsirkin 36b202554cSMichael S. Tsirkin struct vhost_net; 3735277d14SStefan Hajnoczi struct vhost_net *tap_get_vhost_net(NetClientState *nc); 38b202554cSMichael S. Tsirkin 39a8ed73f7SMark McLoughlin #endif /* QEMU_NET_TAP_H */ 40