All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@sunsite.dk>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] libxt_TCPMSS.c: unbreak build without ipv6 after ea2a02f7
Date: Fri, 22 Jul 2011 12:25:36 +0200	[thread overview]
Message-ID: <874o2ezk67.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <alpine.LNX.2.01.1107221157540.17453@frira.zrqbmnf.qr> (Jan Engelhardt's message of "Fri, 22 Jul 2011 11:59:38 +0200 (CEST)")

>>>>> "Jan" == Jan Engelhardt <jengelh@medozas.de> writes:

Hi,

 Jan> On Friday 2011-07-22 07:24, Peter Korsgaard wrote:
 >> ea2a02f7 (libxt_TCPMSS: use guided option parser) added an netinet/ip6.h
 >> include, which is not available on systems without ipv6.

 Jan> I can understand that some implementations omit symbols that are a 
 Jan> runtime dependency (such as in6addr_any) from the library, but structs 
 Jan> are for free, so what broken libc does forget those?

uClibc. It doesn't even install netinet/{ip6,icmp6}.h if ipv6 support
isn't enabled:

http://git.uclibc.org/uClibc/tree/Makefile.in#n249

 >> +#define IPHDRSIZE	20	/* sizeof(struct iphdr) */
 >> +#define IP6HDRSIZE	40	/* sizeof(struct ip6_hdr) */

 Jan> That would put a hard assumption on the implementation, which does
 Jan> not seem the right thing to do.

But those structs define the network format of ipv4 and ipv6 headers, so
they are not likely to change.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2011-07-22 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22  5:24 [PATCH] libxt_TCPMSS.c: unbreak build without ipv6 after ea2a02f7 Peter Korsgaard
2011-07-22  9:59 ` Jan Engelhardt
2011-07-22 10:25   ` Peter Korsgaard [this message]
2011-07-22 10:31     ` Jan Engelhardt
2011-07-22 10:49       ` Peter Korsgaard

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=874o2ezk67.fsf@macbook.be.48ers.dk \
    --to=jacmet@sunsite.dk \
    --cc=jengelh@medozas.de \
    --cc=netfilter-devel@vger.kernel.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.