All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] ipv6 support for libnetfilter_conntrack
Date: Thu, 22 Dec 2005 11:48:47 +0100	[thread overview]
Message-ID: <43AA848F.1070604@eurodev.net> (raw)
In-Reply-To: <200512220429.jBM4Tlqg005695@toshiba.co.jp>

Yasuyuki KOZAKAI wrote:
>>>And in __parse_inetaddr() in conntrack-ipv6.patch,
>>>
>>>+	else if (inet_pton(AF_INET6, cp, &parse->addr6))
>>>+		return AF_INET6;
>>>
>>>this should be
>>>
>>>+	else if (inet_pton(AF_INET6, cp, &parse->addr6) > 0)
>>>+		return AF_INET6;
>>>
>>>The only positive return value means success.
>>
>>I must be missing anything. From inet_pton manpage:
>>
>>The inet_pton() function shall return 1 if the  conversion succeeds,
>>with the  address  pointed  to  by dst in network byte order. It shall
>>return 0 if the input is not a valid IPv4 dotted-decimal string or a
>>valid  IPv6  address string,  or -1 with errno set to [EAFNOSUPPORT] if
>>the af argument is unknown.
>>
>>Still required such change? Thanks!
> 
> I think nowadays inet_pton() in almost distributions support AF_INET6, too.
> But I don't want to assume that.

OK. I'll also add some extra checkings for inet_pton() at ./configure stage.

-- 
Pablo

      parent reply	other threads:[~2005-12-22 10:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19 20:58 [PATCH] ipv6 support for libnetfilter_conntrack Pablo Neira Ayuso
2005-12-20  0:25 ` Pablo Neira Ayuso
2005-12-21 14:46   ` Yasuyuki KOZAKAI
     [not found]   ` <200512211446.jBLEkjPN021538@toshiba.co.jp>
2005-12-21 17:26     ` Pablo Neira Ayuso
2005-12-22  4:29       ` Yasuyuki KOZAKAI
     [not found]       ` <200512220429.jBM4Tlqg005695@toshiba.co.jp>
2005-12-22 10:48         ` Pablo Neira Ayuso [this message]

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=43AA848F.1070604@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=yasuyuki.kozakai@toshiba.co.jp \
    /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.