On Tue, Sep 27, 2011 at 08:49:09PM +0200, Christopher Zimmermann wrote: > On 09/27/11 20:05, Brad wrote: > > On 27/09/11 1:59 PM, Christopher Zimmermann wrote: > >> Hi, > >> > >> I just started using a aue(4) device. Now I am a bit confused about > >> full-duplex / half-duplex operation. > >> > >> > >> The manpage states: > >> > >> full-duplex > >> Force full duplex operation. The interface will operate in > >> half duplex mode if this media option is not specified. > >> > >> But for me ifconfig aue0 says: > >> > >> aue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > >> lladdr 00:05:1b:e5:9a:02 > >> priority: 0 > >> groups: egress > >> media: Ethernet autoselect (100baseTX full-duplex) > >> status: active > >> inet6 fe80::205:1bff:fee5:9a02%aue0 prefixlen 64 scopeid 0x6 > >> inet 192.168.1.37 netmask 0xffffff00 broadcast 192.168.1.255 > >> > >> > >> My hostname.aue0 just says "dhcp". Nothing about full-duplex. > >> > >> Which one is wrong now? Manpage or ifconfig? > > > > Neither. You're not understanding the man page correctly and took that > > piece of the page out of context. The manual duplex setting goes along > > with the two manual speed selections listed above that in the man page. > > > > Thats just ridiculous. the 'media options' section is a section of its > own as well as the 'media types' section. The 'media types' section has > three items. 'autoselect' '10baseT' and '100baseTX'. It would be stupid > to assume that the explanation in the following section 'media options' > only apply to the last two(!) items in the previous section. > > I think the manpage is very clear and leaves little room for > interpretation. > > > What about changing the 'full-duplex' section to: > > full-duplex > Force full duplex operation. > > And the 'autoselect' section to: > > autoselect > Enable autoselection of the media type and options. Full > duplex mode will be selected if possible. The user can > manually override the autoselected mode by adding media > options to the appropriate hostname.if(5) file. >
after studying your proposal a bit, i can see where you were confused. but i can't help but think if you'd read ifconfig(8), as instructed, particularly looking at the output of "ifconfig <if> media", you'd have figured it out (i didn;t initially realise how this works either). your change will clarify that confusion, at least somewhat, i guess. but then it's putting information relevant to the full-duplex mediaopt in a less relevant place. which makes it less helpful for people who know how it works. and then the autoselect text will contain information about default mediaopts, but not mediatypes. i don;t think your idea will work will. but if you want us to look at it seriously, you'll need to provide a diff for man4 which addresses all this stuff for all the relevant drivers. my instinct is that you'll be wasting your time. jmc