diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2009-02-12 19:36:04 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2009-02-12 19:36:04 +0000 |
commit | 0f107444ee8a45346f4bc7c4c665d0878e5586f6 (patch) | |
tree | 30f62c25780a106e568ff8287a286d666be3d546 /useful_functions.c | |
parent | c129be96be3560c5dae7317921e2dc6574efb519 (diff) | |
download | ebtables-0f107444ee8a45346f4bc7c4c665d0878e5586f6.tar.gz ebtables-0f107444ee8a45346f4bc7c4c665d0878e5586f6.tar.bz2 ebtables-0f107444ee8a45346f4bc7c4c665d0878e5586f6.zip |
make it compile for me
Diffstat (limited to 'useful_functions.c')
-rw-r--r-- | useful_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/useful_functions.c b/useful_functions.c index d8f3434..d20b68e 100644 --- a/useful_functions.c +++ b/useful_functions.c @@ -371,7 +371,7 @@ static struct in6_addr *parse_ip6_mask(char *mask) /* Set the ipv6 mask and address. Callers should check ebt_errormsg[0]. * The string pointed to by address can be altered. */ -void ebt_parse_ip6_address(char *address, struct in6_addr *addr, +void ebt_parse_ip6_address(char *address, struct in6_addr *addr, struct in6_addr *msk) { struct in6_addr *tmp_addr; @@ -400,7 +400,7 @@ void ebt_parse_ip6_address(char *address, struct in6_addr *addr, } for (i = 0; i < 4; i++) - addr->in6_u.u6_addr32[i] &= msk->in6_u.u6_addr32[i]; + addr->s6_addr32[i] &= msk->s6_addr32[i]; } /* Transform the ip6 addr into a string ready for output. */ |