[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH v2 2/2] bridge driver: don't masquerade local subnet broadcast/multicast packets

On 09/23/2013 08:01 PM, Laszlo Ersek wrote:
> On 09/23/13 16:46, Laine Stump wrote:
>> 2) Along with, I think this patch can/should also add
>> a "networkDirectedLocalBroadcast" (which will obviously need to be a
>> local variable and recomputed each time). This can be computed by ORing
>> the ip address of the network with ~netmask, then appending a 32 prefix.
>> So for example, the directed broadcast for would be
> I have just finished implementing and testing this. And now I realize
> that such a rule is not necessary at all :)

Yes, I'm embarrassed to say you are correct. Mixed up memories combined
with reading through the BZ too quickly led me to the false recollection
that even traffic that remained on the local subnet was being port-mapped.

So you can just eliminate that part of the patch.

> Because, actually *falls into*
> Hence, the masquerading rules, which are restricted to
>   !
> destination addresses, *ignore* anyway.
> is tricky because it never falls into the bridge's
> subnet numerically (consequently, it always matches the exclusive
> constraint), and yet it must not be masqueraded.
> I'm posting the v3 series anyway. It shouldn't be hard to trim it down
> for v4...
> Thanks,
> Laszlo
> .

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]