Re: [vserver] Multicast ip configuration scalability problem

From: Benedikt Böhm <bb_at_xnull.de>
Date: Fri 01 Apr 2011 - 11:28:56 BST
Message-ID: <AANLkTimnjmucKok9Q+L3eUjgzp1T_ogHPfdz6chEdB-v@mail.gmail.com>

On Fri, Apr 1, 2011 at 11:13 AM, Furgerot Julien
<julien.furgerot@gmail.com> wrote:
> If I have understood correctly, binding a socket to listen on a multicast
> address requires a 'nodev' network interface configured like this :
> /etc/vservers/VM/interfaces/XX/ :

you can give this patch a try:

--- a/include/linux/vs_inet.h 2010-09-02 14:29:18.000000000 +0200
+++ b/include/linux/vs_inet.h 2010-10-14 10:03:54.879553071 +0200
@@ -244,7 +244,7 @@
                 } else if (saddr == IPI_LOOPBACK) {
                         if (nx_info_flags(nxi, NXF_LBACK_REMAP, 0))
                                 baddr = nxi->v4_lback.s_addr;
- } else { /* normal address bind */
+ } else if (!ipv4_is_multicast(saddr)) { /* normal address bind */
                         if (!v4_addr_in_nx_info(nxi, saddr, NXA_MASK_BIND))
                                 return -EADDRNOTAVAIL;
                 }

it is used in production for ganglia monitoring at one of my clients
and didn't cause any problems so far

HTH,
Bene
Received on Fri Apr 1 11:29:08 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 01 Apr 2011 - 11:29:08 BST by hypermail 2.1.8