Re: ipv6 address comparison

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2012-07-21 at 15:36 +0200, Sven-Haegar Koch wrote:
> On Sat, 21 Jul 2012, Arif Hossain wrote:
> 
> > My module uses ipv6_addr_cmp() from <linux/ipv6.h>. 
> > 
> > <linux/ipv6.h>
> > 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 <linux/ipv6.h>. 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.
> 
> In my 3.2.0 source tree here the definition is in include/net/ipv6.h, 
> not in include/linux/ipv6.h
> 
> c'ya
> sven-haegar
> 
> -- 
> Three may keep a secret, if two of them are dead.
> - Ben F.

Thanks for the reply. Now its working.
cheers


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux