From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/20] libtirpc: new package
Date: Tue, 28 Aug 2012 19:34:02 +0200 [thread overview]
Message-ID: <503D010A.6030907@mind.be> (raw)
In-Reply-To: <201208121743.03068.yann.morin.1998@free.fr>
On 08/12/12 17:43, Yann E. MORIN wrote:
>> > +diff --git a/src/rpc_generic.c b/src/rpc_generic.c
>> > +index 509fb36..2eb91ad 100644
>> > +--- a/src/rpc_generic.c
>> > ++++ b/src/rpc_generic.c
>> > +@@ -535,7 +535,9 @@ __rpc_nconf2fd_flags(const struct netconfig *nconf, int flags)
>> > + si.si_af == AF_INET6) {
> ^^^^^^^^
>> > + int val = 1;
>> > +
>> > ++#ifdef INET6
>> > + setsockopt(fd, SOL_IPV6, IPV6_V6ONLY,&val, sizeof(val));
>> > ++#endif
> Is it evenpossible to have AF_INET6 defined if INET6 is not?
Yes it is.
> If so, is it sensible to do the actual test if it would do nothing because
> INET6 is not available?
>
> I would simply return fd in this case (but that makes for a bigger patch).
Actually, it may make more sense to return -EINVAL (or -1 and set errno, or
whatever the convention is). But I don't have enough context to verify that.
Regards,
Arnout
BTW, Yann, it would be nice if you'd snip away some of the quoting, to save us
all a bit of scrolling. Not everybody has automatic collapsing of quoted text...
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-08-28 17:34 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-11 17:40 [Buildroot] [RFC v1] Rework of RPC support to handle glibc >= 2.14 and libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 01/20] uClibc: use the Buildroot toolchain options instead of the hidden common options Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 02/20] toolchain-crosstool-ng: use the Crosstool-ng config options instead of the common hidden ones Thomas Petazzoni
2012-08-12 15:05 ` Yann E. MORIN
2012-08-12 15:26 ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 03/20] Rename BR2_INET_RPC to BR2_TOOLCHAIN_HAS_NATIVE_RPC Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 04/20] toolchain-external: improve glibc support to test availability of RPC Thomas Petazzoni
2012-08-12 15:18 ` Yann E. MORIN
2012-08-22 8:20 ` Fabio Porcedda
2012-08-22 14:00 ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 05/20] libtirpc: new package Thomas Petazzoni
2012-08-12 15:43 ` Yann E. MORIN
2012-08-28 17:34 ` Arnout Vandecappelle [this message]
2012-08-28 17:39 ` Arnout Vandecappelle
2012-08-11 17:40 ` [Buildroot] [PATCH 06/20] busybox: add support to link against libtirpc when available Thomas Petazzoni
2012-08-12 15:51 ` Yann E. MORIN
2012-08-28 17:51 ` Arnout Vandecappelle
2012-08-11 17:40 ` [Buildroot] [PATCH 07/20] netkitbase: convert to the generic-package infrastructure Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 08/20] netkitbase: mark as deprecated Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 09/20] netkittelnet: convert to generic-package infrastructure Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 10/20] netkittelnet: mark as deprecated Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 11/20] lmbench: add support to use libtirpc when available Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 12/20] nfs-utils: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 13/20] rpcbind: new package Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 14/20] portmap: mention that rpcbind is the project that superseds portmap Thomas Petazzoni
2012-08-12 15:55 ` Yann E. MORIN
2012-08-13 17:35 ` Thomas Petazzoni
2012-08-13 18:26 ` Gustavo Zacarias
2012-08-11 17:40 ` [Buildroot] [PATCH 15/20] quota: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 16/20] samba: unconditionally enable --with-sys-quotas Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 17/20] xinetd: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-12 15:58 ` Yann E. MORIN
2012-08-14 13:07 ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 18/20] toolchain-external: add Sourcery CodeBench SuperH 2012.03 Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 19/20] toolchain-external: add Sourcery CodeBench x86 2012.03 Thomas Petazzoni
2012-08-28 18:15 ` Arnout Vandecappelle
2012-08-28 20:55 ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 20/20] external-toolchain: add Sourcery CodeBench ARM 2012.03 Thomas Petazzoni
2012-08-22 8:46 ` Fabio Porcedda
2012-08-22 13:51 ` Thomas Petazzoni
2012-08-22 14:36 ` Yann E. MORIN
2012-08-28 22:45 ` Arnout Vandecappelle
2012-08-29 9:37 ` Yann E. MORIN
2012-08-28 22:34 ` [Buildroot] [RFC v1] Rework of RPC support to handle glibc >= 2.14 and libtirpc Arnout Vandecappelle
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=503D010A.6030907@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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.