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)
}
memset(nets + numnets, 0, sizeof(struct network));
nets[numnets].up = 1;
nets[numnets].ifindex = ifindex;
nets[numnets].ipv4 = NULL;
if(do_ipv4) {
......
......@@ -21,6 +21,7 @@ THE SOFTWARE.
*/
struct network {
int up;
unsigned int ifindex;
int wired;
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