lkml.org 
[lkml]   [2006]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: SO_REUSEPORT and multicasting
From
Date
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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-14 16:37    [W:0.052 / U:2.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site