# On certain ethernet controllers (the L3 main AI) we need to set a parameter in the
# network stack to turn off TCP checksum offloading which seems to cause
# a problem with ssh.  This is done on only the 'outbound' connection.
#
# See http://serverfault.com/questions/338439/ssh-sessions-terminate-abruptly-with-message-corrupted-mac-on-input-disconnect
# for details.


description "ZimBeast TCP Checksum Fix"

start on filesystem and net-device-up IFACE=eth1

task
script
  logger "eth1_nochecksum -- disabling TCP checksum offloading"
  ethtool -K eth1 tx off rx off
end script
