From 6a2dd31a898ef4cc9cea4a8f05d2dfa35c622184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 25 Jun 2009 15:04:33 +0300 Subject: [PATCH] gisi: fix extracting Phonet address from Netlink --- gisi/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gisi/netlink.c b/gisi/netlink.c index 25341e47..d5555883 100644 --- a/gisi/netlink.c +++ b/gisi/netlink.c @@ -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)