All of lore.kernel.org
 help / color / mirror / Atom feed
From: tobias@gambas-buch.de (Tobias Boege)
To: kernelnewbies@lists.kernelnewbies.org
Subject: ipv6 address comparison
Date: Sat, 21 Jul 2012 14:23:43 +0200	[thread overview]
Message-ID: <20120721122343.GB496@aurora> (raw)
In-Reply-To: <1342872161.3431.13.camel@localhost>

On Sat, 21 Jul 2012, Arif Hossain wrote:
> Hi,
> 
> 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.
> 
> cheers.
> aft
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Well, you included <linux/ipv6.h>. Here, the implementation of
ipv6_addr_cmp() is in <net/ipv6.h>.

Regards,
Tobi

  reply	other threads:[~2012-07-21 12:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-21 12:02 ipv6 address comparison Arif Hossain
2012-07-21 12:23 ` Tobias Boege [this message]
     [not found] ` <alpine.DEB.2.02.1207211535300.32697@aurora.sdinet.de>
2012-07-21 13:45   ` Arif Hossain
  -- strict thread matches above, loose matches on Subject: below --
2012-07-21 12:09 Arif Hossain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120721122343.GB496@aurora \
    --to=tobias@gambas-buch.de \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.