aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/net-utils.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el
index fcfb8524b09..e2e32436078 100644
--- a/lisp/net/net-utils.el
+++ b/lisp/net/net-utils.el
@@ -109,6 +109,16 @@ These options can be used to limit how many ICMP packets are emitted."
109 :group 'net-utils 109 :group 'net-utils
110 :type '(repeat string)) 110 :type '(repeat string))
111 111
112(defcustom iwconfig-program "iwconfig"
113 "Program to print wireless network configuration information."
114 :group 'net-utils
115 :type 'string)
116
117(defcustom iwconfig-program-options nil
118 "Options for `iwconfig-program'."
119 :group 'net-utils
120 :type '(repeat string))
121
112(defcustom netstat-program "netstat" 122(defcustom netstat-program "netstat"
113 "Program to print network statistics." 123 "Program to print network statistics."
114 :group 'net-utils 124 :group 'net-utils
@@ -366,6 +376,16 @@ If your system's ping continues until interrupted, you can try setting
366(defalias 'ifconfig 'ipconfig) 376(defalias 'ifconfig 'ipconfig)
367 377
368;;;###autoload 378;;;###autoload
379(defun iwconfig ()
380 "Run iwconfig program."
381 (interactive)
382 (net-utils-run-program
383 "Iwconfig"
384 (concat "** Iwconfig ** " iwconfig-program " ** ")
385 iwconfig-program
386 iwconfig-program-options))
387
388;;;###autoload
369(defun netstat () 389(defun netstat ()
370 "Run netstat program." 390 "Run netstat program."
371 (interactive) 391 (interactive)