mirror of git://git.sysmocom.de/ofono
gisi: fix extracting Phonet address from Netlink
This commit is contained in:
parent
91753078b0
commit
6a2dd31a89
|
@ -102,7 +102,7 @@ static gboolean g_pn_nl_process(GIOChannel *channel, GIOCondition cond,
|
||||||
}
|
}
|
||||||
/* We have a route message */
|
/* We have a route message */
|
||||||
ifa = NLMSG_DATA(nlh);
|
ifa = NLMSG_DATA(nlh);
|
||||||
len = RTM_PAYLOAD(nlh);
|
len = IFA_PAYLOAD(nlh);
|
||||||
|
|
||||||
/* If Phonet is absent, kernel transmits other families... */
|
/* If Phonet is absent, kernel transmits other families... */
|
||||||
if (ifa->ifa_family != AF_PHONET)
|
if (ifa->ifa_family != AF_PHONET)
|
||||||
|
|
Loading…
Reference in New Issue