]> git.proxmox.com Git - qemu.git/blobdiff - net/tap-linux.h
w32: Build windows and console executables
[qemu.git] / net / tap-linux.h
index f1a0fce1764b92dc35655b23f95f61d2d378c4d4..659e98122b53166db09071bb36b92b68e8671c05 100644 (file)
@@ -17,7 +17,7 @@
 #define QEMU_TAP_H
 
 #include <stdint.h>
-#ifdef __LINUX__
+#ifdef __linux__
 
 #include <linux/ioctl.h>
 
@@ -27,6 +27,8 @@
 #define TUNSETOFFLOAD  _IOW('T', 208, unsigned int)
 #define TUNGETIFF      _IOR('T', 210, unsigned int)
 #define TUNSETSNDBUF   _IOW('T', 212, int)
+#define TUNGETVNETHDRSZ _IOR('T', 215, int)
+#define TUNSETVNETHDRSZ _IOW('T', 216, int)
 
 #endif
 
@@ -52,4 +54,10 @@ struct virtio_net_hdr
     uint16_t csum_offset;
 };
 
+struct virtio_net_hdr_mrg_rxbuf
+{
+    struct virtio_net_hdr hdr;
+    uint16_t num_buffers;   /* Number of merged rx buffers */
+};
+
 #endif /* QEMU_TAP_H */