Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit feb63e9e authored by Mike Lockwood's avatar Mike Lockwood
Browse files

libnetutils: Add ifc_enable(), for enabling a network interface.

parent 2974d1fb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -224,6 +224,16 @@ int ifc_add_host_route(const char *name, in_addr_t addr)
    return result;
}

int ifc_enable(const char *ifname)
{
    int result;

    ifc_init();
    result = ifc_up(ifname);
    ifc_close();
    return result;
}

int ifc_disable(const char *ifname)
{
    int result;