mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
a4f38f6ffe
iifname/oifname need to lookup the string that contains the name of the interface each time a packet is checked, while iif/oif compare the ifindex of the interface, which is included directly in the packet. Conveniently, the rule is created using the *name* of the interface (which gets converted to ifindex as the rule is added), so no extra work is required other than changing the commandline option. If it was the case that the interface could be deleted and re-added during the life of the rule, we would have to use Xifname (since deleting and re-adding the interface would result in ifindex changing), but for our uses this never happens, so Xif works for us, and undoubtedly improves performance by at least 0.0000001%. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> |
||
---|---|---|
.. | ||
base.iptables | ||
base.nftables | ||
nat-default-linux.iptables | ||
nat-default-linux.nftables | ||
nat-default.xml | ||
nat-ipv6-linux.iptables | ||
nat-ipv6-linux.nftables | ||
nat-ipv6-masquerade-linux.iptables | ||
nat-ipv6-masquerade-linux.nftables | ||
nat-ipv6-masquerade.xml | ||
nat-ipv6.xml | ||
nat-many-ips-linux.iptables | ||
nat-many-ips-linux.nftables | ||
nat-many-ips.xml | ||
nat-no-dhcp-linux.iptables | ||
nat-no-dhcp-linux.nftables | ||
nat-no-dhcp.xml | ||
nat-tftp-linux.iptables | ||
nat-tftp-linux.nftables | ||
nat-tftp.xml | ||
route-default-linux.iptables | ||
route-default-linux.nftables | ||
route-default.xml |