Diff for /qemu/net.h between versions 1.1.1.7 and 1.1.1.8

version 1.1.1.7, 2018/04/24 18:07:41 version 1.1.1.8, 2018/04/24 18:24:50
Line 36  typedef enum { Line 36  typedef enum {
     NET_CLIENT_TYPE_DUMP      NET_CLIENT_TYPE_DUMP
 } net_client_type;  } net_client_type;
   
   typedef void (NetPoll)(VLANClientState *, bool enable);
 typedef int (NetCanReceive)(VLANClientState *);  typedef int (NetCanReceive)(VLANClientState *);
 typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t);  typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t);
 typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int);  typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int);
Line 51  typedef struct NetClientInfo { Line 52  typedef struct NetClientInfo {
     NetCanReceive *can_receive;      NetCanReceive *can_receive;
     NetCleanup *cleanup;      NetCleanup *cleanup;
     LinkStatusChanged *link_status_changed;      LinkStatusChanged *link_status_changed;
       NetPoll *poll;
 } NetClientInfo;  } NetClientInfo;
   
 struct VLANClientState {  struct VLANClientState {
Line 70  typedef struct NICState { Line 72  typedef struct NICState {
     VLANClientState nc;      VLANClientState nc;
     NICConf *conf;      NICConf *conf;
     void *opaque;      void *opaque;
       bool peer_deleted;
 } NICState;  } NICState;
   
 struct VLANState {  struct VLANState {
Line 115  int qemu_find_nic_model(NICInfo *nd, con Line 118  int qemu_find_nic_model(NICInfo *nd, con
                         const char *default_model);                          const char *default_model);
   
 void do_info_network(Monitor *mon);  void do_info_network(Monitor *mon);
 void do_set_link(Monitor *mon, const QDict *qdict);  int do_set_link(Monitor *mon, const QDict *qdict, QObject **ret_data);
   
 /* NIC info */  /* NIC info */
   
 #define MAX_NICS 8  #define MAX_NICS 8
 enum {  
         NIC_NVECTORS_UNSPECIFIED = -1  
 };  
   
 struct NICInfo {  struct NICInfo {
     uint8_t macaddr[6];      uint8_t macaddr[6];
Line 132  struct NICInfo { Line 132  struct NICInfo {
     VLANState *vlan;      VLANState *vlan;
     VLANClientState *netdev;      VLANClientState *netdev;
     int used;      int used;
     int bootable;  
     int nvectors;      int nvectors;
 };  };
   
Line 165  void net_check_clients(void); Line 164  void net_check_clients(void);
 void net_cleanup(void);  void net_cleanup(void);
 void net_host_device_add(Monitor *mon, const QDict *qdict);  void net_host_device_add(Monitor *mon, const QDict *qdict);
 void net_host_device_remove(Monitor *mon, const QDict *qdict);  void net_host_device_remove(Monitor *mon, const QDict *qdict);
   int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data);
   int do_netdev_del(Monitor *mon, const QDict *qdict, QObject **ret_data);
   
 #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"  #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
 #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"  #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"

Removed from v.1.1.1.7  
changed lines
  Added in v.1.1.1.8


unix.superglobalmegacorp.com