gisi: fix extracting Phonet address from Netlink

This commit is contained in:
Rémi Denis-Courmont 2009-06-25 15:04:33 +03:00 committed by Aki Niemi
parent 91753078b0
commit 6a2dd31a89
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static gboolean g_pn_nl_process(GIOChannel *channel, GIOCondition cond,
}
/* We have a route message */
ifa = NLMSG_DATA(nlh);
len = RTM_PAYLOAD(nlh);
len = IFA_PAYLOAD(nlh);
/* If Phonet is absent, kernel transmits other families... */
if (ifa->ifa_family != AF_PHONET)