Subject: Re: [vserver] VServer and Multicasting
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Tue, 11 Jan 2011 22:08:12 +0100

On Tue, Jan 11, 2011 at 09:58:34AM +0100, Benedikt Böhm wrote:
> On Mon, Jan 10, 2011 at 6:04 PM, Eric Schoeller
> <eschoeller@users.sourceforge.net> wrote:
> > Someone else will probably come up with a cleaner solution though :)

> the following patch should make it work out-of-the-box:

but it will also disable all checks for multicast addresses
inside the guest ... JFYI

best,
Herbert

> --- 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;
>                 }