summaryrefslogtreecommitdiffhomepage
path: root/contrib/fwd/src/fwd_addr.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-16 02:02:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-16 02:02:45 +0000
commit0f791a7fb6a67cf30d91775e4ae768679e14d610 (patch)
treec655fc3b31bdc44bb6a8c4bcfb90df3ce1c86496 /contrib/fwd/src/fwd_addr.c
parenta833e120b7f8a835f07e6d9bb5c37df149580468 (diff)
contrib/fwd: rewrite rule generate to use xtables api
Diffstat (limited to 'contrib/fwd/src/fwd_addr.c')
-rw-r--r--contrib/fwd/src/fwd_addr.c4
1 files changed, 2 insertions, 2 deletions
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)