search for: mask_cmp

Displaying 4 results from an estimated 4 matches for "mask_cmp".

2007 Jan 06
1
trunk build 708:access.c
I was having a little trouble building the 708 truck... access.c bombs out: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O -Wall -Wsign-compare -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o access.c access.c: In function `mask_cmp': access.c:59: error: structure has no member named `s6_addr32' access.c:61: error: structure has no member named `s6_addr32' access.c:65: error: structure has no member named `s6_addr32' access.c:65: error: structure has no member named `s6_addr32' *** Error code 1 seems weird...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...uot;common.h" > #include "access.h" > > - struct acl_t *acl_head = NULL; > - struct access_t *access_head = NULL; > +struct acl_t *acl_head = NULL; > +struct access_t *access_head = NULL; > + > +/* > + * Stolen from privoxy code :] > + */ > +int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > + switch (ip_addr->ss_family) { > + case AF_INET: > + return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_ad...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...#include "access.h" > > -struct acl_t *acl_head = NULL; > -struct access_t *access_head = NULL; > + struct acl_t *acl_head = NULL; > + struct access_t *access_head = NULL; > > +#ifdef HAVE_IPV6 > /* > * Stolen from privoxy code :] > */ > -int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > +static int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > switch (ip_addr->ss_family) { > case AF_INET: &g...
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
...dif > - ((*(u_int32_t *)(&ip6->s6_addr[12]) & (u_int32_t)prefix) == net->s_addr)); > + return (IN6_IS_ADDR_V4MAPPED(ip6) && > + ((((const u_int32_t *)ip6)[3] & (u_int32_t)prefix) == net->s_addr)); > } > default: > fatal_with_errno("mask_cmp: Unknown address family"); > > _______________________________________________ > nut-commits mailing list > nut-commits@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-commits >