Be more correct and do the same checks for RXCSUM capabilities as is done for TXCSUM one.

This commit is contained in:
Ermal 2010-07-30 15:18:47 +00:00
parent a639bb917d
commit 3ca774ac10

View File

@ -479,6 +479,11 @@ function interface_bridge_add_member($bridgeif, $interface) {
else
pfSense_interface_capabilities($interface, -IFCAP_TXCSUM);
if (isset($options['encaps']['rxcsum']))
pfSense_interface_capabilities($interface, IFCAP_RXCSUM);
else
pfSense_interface_capabilities($interface, -IFCAP_RXCSUM);
interfaces_bring_up($interface);
mwexec("/sbin/ifconfig {$bridgeif} addm {$interface}");
}