Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


On Thu, Feb 28, 2008 at 07:16:37PM -0800, Sam Leffler wrote:
> Jeremie Le Hen wrote:
> > Thanks for your reply. You are right indeed. It was not obvious to me
> > that I should set a tx keyid manually, partly because when setting the
> > WEP key, ifconfig(8) assumes key 1 if no index is specified.
> > Would it be correct to set the default tx keyid to 1? On the contrary,
> > I will provide an update to the manpage stating setting the default tx
> > keyid is mandatory.

> Yes, it seems the man page doesn't call out that you need to setup a
> deftxkey in order for outbound traffic to be encrypted when using WEP. If
> you use wpa_supplicant it will do that for you.
> Please send me something for ifconfig(8).

You will find a diff against the ifconfig(8) manpage attached. Feel
free to reword what you feel necessary, as I'm not a native english

Thank you.
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="mandatory_deftxkey.diff"

Index: sbin/ifconfig/ifconfig.8
================================================== =================
RCS file: /mnt/space/freebsd-cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.145
diff -u -r1.145 ifconfig.8
--- sbin/ifconfig/ifconfig.8 10 Dec 2007 02:31:00 -0000 1.145
+++ sbin/ifconfig/ifconfig.8 29 Feb 2008 12:40:31 -0000
@@ -777,7 +777,8 @@
To disable 802.11h use
.Fl doth .
.It Cm deftxkey Ar index
-Set the default key to use for transmission.
+Set the default key to use for transmission, which is mandatory
+for full duplex operation.
Typically this is only set when using WEP encryption.
.Cm weptxkey
@@ -1236,11 +1237,15 @@
.Cm mixed .
Modes are case insensitive.
.It Cm weptxkey Ar index
-Set the WEP key to be used for transmission.
+Set the WEP key to be used for transmission, which is mandatory
+for full duplex operation.
This is the same as setting the default transmission key with
.Cm deftxkey .
.It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key
Set the selected WEP key.
+Yet using
+.Cm deftxkey
+is required for full duplex operation.
If an
.Ar index
is not given, key 1 is set.

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"