Re: [vserver] VServer and Multicasting

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 11 Jan 2011 - 21:08:12 GMT
Message-ID: <20110111210812.GJ17512@MAIL.13thfloor.at>

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;
> }
Received on Tue Jan 11 21:08:25 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 11 Jan 2011 - 21:08:25 GMT by hypermail 2.1.8