Package: ethtool
Version: 1:3.4.2-1
Severity: normal
Tags: patch

Dear Maintainer,

On wheezy, looking in /etc/network/if-up.d/ethtool, I read:
  # Autonegotiation can be on|off or an advertising mask
  case "$IF_ETHERNET_AUTONEG" in
  '')    ;;
  on|off)    SETTINGS="$SETTINGS autoneg $IF_ETHERNET_AUTONEG" ;;
  *)    SETTINGS="$SETTINGS autoneg on $IF_ETHERNET_AUTONEG" ;;
  esac
I believe the syntax of the *) case is incorrect. My tests:
  jmranger@L3:~$ sudo ethtool -s eth1 autoneg on 0x0ff
  ethtool: bad command line argument(s)
  For more information run ethtool -h
  jmranger@L3:~$ sudo ethtool -s eth1 autoneg on advertise 0x0ff
  jmranger@L3:~$
I believe the script is missing the advertise word.

Various notes, not all relevant...
- This was found while trying to configure an ethernet card as "autoneg ON, 
speed limited to 100mbps or below".
- I was able to achieve my goal by changing the (empty) and ON cases in the 
code above by forcing "autoneg on advertise 0x00F".
- I still haven't found who calls this script - said otherwise, I still don't 
know how to specify IF_ETHERNET_AUTONEG. Please tell me. Consequence - I 
haven't been able to test my proposed fix.
- I'm still wondering whether I should place my patch somewhere else (boot 
sequence? if-pre-up? /etc/network/interfaces (if so, how?)? ) instead of in the 
ifup script. Suggestions welcome.

-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ethtool depends on:
ii  libc6  2.13-38+deb7u4

ethtool recommends no packages.

ethtool suggests no packages.

-- Configuration Files:
/etc/network/if-up.d/ethtool changed [not included] (see relevant parts above)

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to