Merge pull request #3328 from cold-brewed/vde-fix-2
vde: Properly initialize a variable and fix sizing
This commit is contained in:
@@ -150,9 +150,9 @@ typedef struct {
|
|||||||
} netdev_t;
|
} netdev_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int has_slirp: 1;
|
int has_slirp;
|
||||||
int has_pcap: 1;
|
int has_pcap;
|
||||||
int has_vde: 1;
|
int has_vde;
|
||||||
} network_devmap_t;
|
} network_devmap_t;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -123,7 +123,7 @@ netcard_conf_t net_cards_conf[NET_CARD_MAX];
|
|||||||
uint16_t net_card_current = 0;
|
uint16_t net_card_current = 0;
|
||||||
|
|
||||||
/* Global variables. */
|
/* Global variables. */
|
||||||
network_devmap_t network_devmap;
|
network_devmap_t network_devmap = {0};
|
||||||
int network_ndev;
|
int network_ndev;
|
||||||
netdev_t network_devs[NET_HOST_INTF_MAX];
|
netdev_t network_devs[NET_HOST_INTF_MAX];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user