summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblambert <blambert@openbsd.org>2009-02-15 17:33:13 +0000
committerblambert <blambert@openbsd.org>2009-02-15 17:33:13 +0000
commitd113c41f163dd4499d17e0066639030b1a77eb65 (patch)
tree75ad5ee8a01a9bffdef2db307398e30476f09a43
parentdo not check malloc return value against NULL, as M_WAITOK is used (diff)
downloadwireguard-openbsd-d113c41f163dd4499d17e0066639030b1a77eb65.tar.xz
wireguard-openbsd-d113c41f163dd4499d17e0066639030b1a77eb65.zip
Give an example of how to use wpa-psk(8) to connect to WPA
networks in the wpapsk section of the page. ok deraadt@ henning@
-rw-r--r--sbin/ifconfig/ifconfig.88
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 4c1fd92c062..9fea2faba71 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ifconfig.8,v 1.175 2009/02/15 08:34:36 damien Exp $
+.\" $OpenBSD: ifconfig.8,v 1.176 2009/02/15 17:33:13 blambert Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
@@ -797,7 +797,11 @@ authentication is allowed using the
.Cm wpaakms
option.
Pre-shared keys can be generated from passphrases using
-.Xr wpa-psk 8 .
+.Xr wpa-psk 8 ,
+as in the following example, which sets interface wpi0 to use WPA with SSID
+\&"wlan\&" and passphrase \&"supersecret\&":
+.Pp
+.Dl # ifconfig wpi0 wpa wpapsk `wpa-psk wlan supersecret`
.It Fl wpapsk
Delete the pre-shared key.
This will prevent