Commit afca5644 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use kernel_interface_operational when setting up status.

parent 7a3d7bf1
......@@ -47,7 +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].up = kernel_interface_operational(ifname, ifindex);
nets[numnets].ifindex = ifindex;
nets[numnets].ipv4 = NULL;
if(do_ipv4) {
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