Re: [PATCH] Log an error on attempts to add a NAT rule for non-IPv4 addresses

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

 



On 01/04/2011 11:14 PM, Laine Stump wrote:
> Although the upper-layer code protected against it, it was possible to
> call iptablesForwardMasquerade() with an IPv6 address and have it
> attempt to add a rule to the MASQUERADE chain of ip6tables (which
> doesn't exist).
> 
> This patch changes that function to check the protocol of the given
> address, generate an error log if it's not IPv4 (AF_INET), and finally
> hardcodes all the family parameters sent down to lower-level functions.

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]