From mboxrd@z Thu Jan 1 00:00:00 1970 From: tobias@gambas-buch.de (Tobias Boege) Date: Sat, 21 Jul 2012 14:23:43 +0200 Subject: ipv6 address comparison In-Reply-To: <1342872161.3431.13.camel@localhost> References: <1342872161.3431.13.camel@localhost> Message-ID: <20120721122343.GB496@aurora> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sat, 21 Jul 2012, Arif Hossain wrote: > Hi, > > My module uses ipv6_addr_cmp() from . > > > static inline int ipv6_addr_cmp(const struct in6_addr *a1, const struct > in6_addr *a2) > { > return memcmp(a1, a2, sizeof(struct in6_addr)); > } > > I've included . But when i try to build the module i get > following error: > > net/netfilter/xt_ipaddr.c:81: error: implicit declaration of function > ???ipv6_addr_cmp??? > > Although before the call to ipv6_addr_cmp, i have a casting to struct > ipv6hdr *iph. So the definitions from ipv6.h should be available to my > module. > > cheers. > aft > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Well, you included . Here, the implementation of ipv6_addr_cmp() is in . Regards, Tobi