]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net.h
slirp: Move smb, redir, tftp and bootp parameters and -net channel
[mirror_qemu.git] / net.h
diff --git a/net.h b/net.h
index 484b00085106f3bd731c805508ee336e16481cd4..01f345020883e01f8eb3d4acd6fcfd5952442971 100644 (file)
--- a/net.h
+++ b/net.h
@@ -32,7 +32,7 @@ struct VLANClientState {
 
 typedef struct VLANPacket VLANPacket;
 
-typedef void (NetPacketSent) (VLANClientState *);
+typedef void (NetPacketSent) (VLANClientState *, ssize_t);
 
 struct VLANPacket {
     struct VLANPacket *next;
@@ -84,6 +84,9 @@ int do_set_link(Monitor *mon, const char *name, const char *up_or_down);
 /* NIC info */
 
 #define MAX_NICS 8
+enum {
+       NIC_NVECTORS_UNSPECIFIED = -1
+};
 
 struct NICInfo {
     uint8_t macaddr[6];
@@ -94,6 +97,7 @@ struct NICInfo {
     void *private;
     int used;
     int bootable;
+    int nvectors;
 };
 
 extern int nb_nics;
@@ -121,6 +125,9 @@ uint16_t net_checksum_tcpudp(uint16_t length, uint16_t proto,
 void net_checksum_calculate(uint8_t *data, int length);
 
 /* from net.c */
+extern const char *legacy_tftp_prefix;
+extern const char *legacy_bootp_filename;
+
 int net_client_init(Monitor *mon, const char *device, const char *p);
 void net_client_uninit(NICInfo *nd);
 int net_client_parse(const char *str);