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

Commit 6f49d5f2 authored by Jake Hamby's avatar Jake Hamby
Browse files

Add missing function required to load Crespo RIL library.

ifc_set_mask() function was removed in a previous change. This function
is called by the Crespo RIL, so we can't remove it yet.

Bug: 4268537
Change-Id: I634580ee8d2a1aff069178837cc121c89c5e73f9
parent 203f9513
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -206,6 +206,16 @@ int ifc_set_hwaddr(const char *name, const void *ptr)
    return ioctl(ifc_ctl_sock, SIOCSIFHWADDR, &ifr);
}

int ifc_set_mask(const char *name, in_addr_t mask)
{
    struct ifreq ifr;

    ifc_init_ifr(name, &ifr);
    init_sockaddr_in(&ifr.ifr_addr, mask);

    return ioctl(ifc_ctl_sock, SIOCSIFNETMASK, &ifr);
}

int ifc_set_prefixLength(const char *name, int prefixLength)
{
    struct ifreq ifr;