Merge pull request #320 from Security-Onion-Solutions/hotfix/checksum-offload

hotfix/checksum-offload
This commit is contained in:
William Wernert
2020-02-08 12:38:41 -05:00
committed by GitHub

View File

@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
if [ "$NM_DISPATCHER_ACTION" == "pre-up" ]; then if [[ "$NM_DISPATCHER_ACTION" == "pre-up" ]]; then
if ["$DEVICE_IFACE" !== "$MAININT"]; then if [[ "$DEVICE_IFACE" != "$MAININT" ]]; then
for i in rx tx sg tso ufo gso gro lro; do for i in rx tx sg tso ufo gso gro lro; do
ethtool -K $DEVICE_IFACE $i off; ethtool -K "$DEVICE_IFACE" "$i" off;
done done
fi fi
fi fi