From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jason <bofh1234567@yahoo.com>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>, linux-kernel@vger.kernel.org
Subject: Re: SO_REUSEPORT and multicasting
Date: Wed, 14 Jun 2006 15:51:07 +0100 [thread overview]
Message-ID: <1150296668.3490.46.camel@localhost.localdomain> (raw)
In-Reply-To: <20060614142653.71443.qmail@web53606.mail.yahoo.com>
Ar Mer, 2006-06-14 am 07:26 -0700, ysgrifennodd Jason:
> > Have you bound to a multicast group in your program?
>
> If BSD supports it why can't Linux?
Linux follows the standards draft. SO_REUSEPORT is fairly obscure
BSDism.
> Yes. My code works great on HP-UX but does nothing on
> Linux.
That doesn't actually prove very much. Its very easy to write incorrect
code that only works on one system, especially when endian-ness gets
involved with network code.
In particular if writing portable code you must remember to join the
group. You must also remember that the various htons/htonl macros need
to be correctly used or your code will break on little-endian systems.
The default IP_MULTICAST_LOOP value is probably also worth overriding if
you are being fairly paranoid.
next prev parent reply other threads:[~2006-06-14 14:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 19:24 Jason
2006-06-13 20:20 ` Jan Engelhardt
2006-06-14 14:26 ` Jason
2006-06-14 14:51 ` Alan Cox [this message]
2006-06-14 17:48 ` Jason
2006-06-14 22:14 ` David Miller
2006-06-14 22:57 ` Jason
2006-06-14 23:04 ` David Miller
2006-06-15 13:32 ` Jason
2006-06-14 14:40 ` James Courtier-Dutton
2006-06-14 18:04 ` Jason
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=1150296668.3490.46.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=bofh1234567@yahoo.com \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®