From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: A few issues on MIPS and now on ARMEL
Date: Thu, 15 Nov 2012 19:11:10 -0500 [thread overview]
Message-ID: <20121116001110.GL20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <20121115233725.GK20323@brightrain.aerifal.cx>
On Thu, Nov 15, 2012 at 06:37:25PM -0500, Rich Felker wrote:
> On Fri, Nov 16, 2012 at 12:21:11AM +0200, Paul Schutte wrote:
> > Hi guys,
> >
> > I am now hitting a similar problem on armel.
> >
> > I am cross-compiling "dnsmasq"
> >
> > Glibc strace:
> >
> > ---snip---
> > socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 5
> > fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
> > fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> > setsockopt(5, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0
> > setsockopt(5, SOL_IP, IP_PKTINFO, [1], 4) = 0
> > setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
> > setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> >
> >
> > Musl strace:
> >
> > socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 5
> > fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
> > fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
> > setsockopt(5, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0
> > setsockopt(5, SOL_IP, IP_PKTINFO, [1], 4) = 0
> > setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
> > setsockopt(5, SOL_SOCKET, *0xf /* SO_??? */*, [1], 4) = -1 ENOPROTOOPT
> > (Protocol not available)
>
> Thanks for the report. I'll check and see if ARM has unusual
> definitions we're missing.
This doesn't seem to be ARM-specific. Linux has reserved a number for
SO_REUSEPORT, but it's not implemented in the kernel it seems, and
musl is providing the value, presumably causing the app to use it and
think it works. I'm guessing I should just remove it, but it might be
possible/preferable to make setsockopt and getsockopt remap it to
SO_REUSEADDR internally. Ideas anyone?
Rich
next prev parent reply other threads:[~2012-11-16 0:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 22:21 Paul Schutte
2012-11-15 23:37 ` Rich Felker
2012-11-16 0:11 ` Rich Felker [this message]
2012-11-16 0:18 ` Rich Felker
2012-11-16 1:28 ` Paul Schutte
2013-04-01 17:55 ` Rich Felker
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=20121116001110.GL20323@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).