Commit bf0887fe authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add network->up.

parent ef13e4bb
...@@ -47,6 +47,7 @@ add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost) ...@@ -47,6 +47,7 @@ add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost)
} }
memset(nets + numnets, 0, sizeof(struct network)); memset(nets + numnets, 0, sizeof(struct network));
nets[numnets].up = 1;
nets[numnets].ifindex = ifindex; nets[numnets].ifindex = ifindex;
nets[numnets].ipv4 = NULL; nets[numnets].ipv4 = NULL;
if(do_ipv4) { if(do_ipv4) {
......
...@@ -21,6 +21,7 @@ THE SOFTWARE. ...@@ -21,6 +21,7 @@ THE SOFTWARE.
*/ */
struct network { struct network {
int up;
unsigned int ifindex; unsigned int ifindex;
int wired; int wired;
unsigned short cost; unsigned short cost;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment