Merge pull request #3328 from cold-brewed/vde-fix-2

vde: Properly initialize a variable and fix sizing
This commit is contained in:
Miran Grča
2023-05-10 13:23:23 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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];