From 0f791a7fb6a67cf30d91775e4ae768679e14d610 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 16 Dec 2009 02:02:45 +0000 Subject: contrib/fwd: rewrite rule generate to use xtables api --- contrib/fwd/src/fwd_addr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/fwd/src/fwd_addr.c') diff --git a/contrib/fwd/src/fwd_addr.c b/contrib/fwd/src/fwd_addr.c index df5d8e7c2a..fd277e9e0f 100644 --- a/contrib/fwd/src/fwd_addr.c +++ b/contrib/fwd/src/fwd_addr.c @@ -95,8 +95,8 @@ struct fwd_addr_list * fwd_get_addrs(int fd, int family) { if( rtatp->rta_type == IFA_ADDRESS ) { - memcpy(&entry->ipaddr, (char *) RTA_DATA(rtatp), rtatp->rta_len); - entry->prefix = rtmp->ifa_prefixlen; + memcpy(&entry->ipaddr.addr, (char *) RTA_DATA(rtatp), rtatp->rta_len); + entry->ipaddr.prefix = rtmp->ifa_prefixlen; entry->family = family; } else if( rtatp->rta_type == IFA_LABEL) -- cgit v1.2.3