%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/net/ |
Current File : //usr/local/share/emacs/27.2/lisp/net/net-utils.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\207" [require subr-x cl-lib] 2) #@64 Return absolute name of COMMAND if found in an sbin directory. (defalias 'net-utils--executable-find-sbin #[(command) "\302\303 !)\207" [exec-path command ("/sbin" "/usr/sbin" "/usr/local/sbin") executable-find] 2 (#$ . 475)]) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\312\313\314\315\306\301\316\317&\210\312\320\302\321\306\301\316\322&\210\312\323\324\325\306\301\316\317&\210\312\326\327\330\306\301\316\331&\210\312\332\333\334\310\335\306\301\316\317& \210\312\336\337\340\310\335\341\342\306\301\316\343&\210\312\344\345\346\306\301\316\317\310\347& \210\312\350\351\352\306\301\316\353\310\347& \210\312\354\355\356\306\301\316\317\310\347& \210\312\357\360\361\306\301\316\362&\210\312\363\364\365\306\301\316\317&\210\312\366\367\370\306\301\316\371&\210\312\372\373\374\306\301\316\317\310\347& \210\312\375\376\377\306\301\316\201@ \310\347& \210\312\201A \201B \201C \306\301\316\317&\210\312\201D \302\201E \306\301\316\201F &\210\312\201G \201H \201I \306\301\316\201J &\210\312\201K \201L \201M \306\301\316\317&\210\312\201N \302\201O \306\301\316\201P \310\347& \210\312\201Q \201R \201S \306\301\316\317&\210\312\201T \302\201U \306\301\316\201V &\210\312\201W \201X \201Y \306\301\316\201J &\210\312\201Z \201[ \201\\ \306\301\316\317&\210\312\201] \302\201^ \306\301\316\201_ &\210\312\201` \201a \201b \306\301\316\201J &\210\312\201c \201d \201C \306\301\316\317&\210\312\201e \302\201f \306\301\316\201g &\207" [custom-declare-group net-utils nil "Network utility functions." :prefix "net-utils-" :group comm :version "20.3" custom-declare-variable traceroute-program (if (eq system-type 'windows-nt) "tracert" "traceroute") "Program to trace network hops to a destination." :type string traceroute-program-options "Options for the traceroute program." (repeat string) ping-program "ping" "Program to send network test packets to a host." ping-program-options (and (eq system-type 'gnu/linux) (list "-c" "4")) "Options for the ping program.\nThese options can be used to limit how many ICMP packets are emitted." (repeat string) ifconfig-program (cond ((eq system-type 'windows-nt) "ipconfig") ((executable-find "ifconfig") "ifconfig") ((net-utils--executable-find-sbin "ifconfig")) ((net-utils--executable-find-sbin "ip")) (t "ip")) "Program to print network configuration information." "25.1" ifconfig-program-options (cond ((string-match "ipconfig\\'" ifconfig-program) '("/all")) ((string-match "ifconfig\\'" ifconfig-program) '("-a")) ((string-match "ip\\'" ifconfig-program) '("addr"))) "Options for the ifconfig program." :set-after (ifconfig-program) (repeat string) iwconfig-program (cond ((executable-find "iwconfig") "iwconfig") ((net-utils--executable-find-sbin "iw") "iw") (t "iw")) "Program to print wireless network configuration information." "26.1" iwconfig-program-options (cond ((string-match-p "iw\\'" iwconfig-program) (list "dev")) (t nil)) "Options for the iwconfig program." (repeat string) netstat-program (cond ((executable-find "netstat") "netstat") ((net-utils--executable-find-sbin "ss")) (t "ss")) "Program to print network statistics." netstat-program-options (list "-a") "Options for the netstat program." (repeat string) arp-program (or (net-utils--executable-find-sbin "arp") "arp") "Program to print IP to address translation tables." arp-program-options (list "-a") "Options for the arp program." (repeat string) route-program (cond ((eq system-type 'windows-nt) "route") ((executable-find "netstat") "netstat") ((net-utils--executable-find-sbin "netstat")) ((executable-find "ip") "ip") ((net-utils--executable-find-sbin "ip")) (t "ip")) "Program to print routing tables." route-program-options (cond ((eq system-type 'windows-nt) (list "print")) ((string-match-p "netstat\\'" route-program) (list "-r")) (t (list "route"))) "Options for the route program." (repeat string) nslookup-program "nslookup" "Program to interactively query DNS information." nslookup-program-options "Options for the nslookup program." (repeat string) nslookup-prompt-regexp "^> " "Regexp to match the nslookup prompt.\n\nThis variable is only used if the variable\n`comint-use-prompt-regexp' is non-nil." regexp dig-program "dig" "Program to query DNS information." dig-program-options "Options for the dig program." (repeat string) ftp-program "ftp" "Program to run to do FTP transfers." ftp-program-options "Options for the ftp program." (repeat string) ftp-prompt-regexp "^ftp>" "Regexp which matches the FTP program's prompt.\n\nThis variable is only used if the variable\n`comint-use-prompt-regexp' is non-nil." smbclient-program "smbclient" "Smbclient program." smbclient-program-options "Options for the smbclient program." (repeat string) smbclient-prompt-regexp "^smb: >" "Regexp which matches the smbclient program's prompt.\n\nThis variable is only used if the variable\n`comint-use-prompt-regexp' is non-nil." dns-lookup-program "host" dns-lookup-program-options "Options for the dns-lookup program." (repeat string)] 12) (defvar network-connection-service nil) (defvar network-connection-host nil) #@40 Expressions to font-lock for nslookup. (defvar nslookup-font-lock-keywords (byte-code "\301\302\303E\304\305\306E\307\310\311\312\313\"\314#\302\315E\316\307\310\311\317\"\314#\320\321R)\302\315EF\207" [host-expression "^[A-Za-z0-9 _]+:" 0 font-lock-type-face "\\<\\(SOA\\|NS\\|MX\\|A\\|CNAME\\)\\>" 1 font-lock-keyword-face mapconcat identity make-list 4 "[0-9]+" "\\." font-lock-variable-name-face "[-A-Za-z0-9]+" 2 "\\(\\." "\\)*"] 8) (#$ . 5569)) #@57 Expressions to font-lock for general network utilities. (defvar net-utils-font-lock-keywords (byte-code "\301\302\303\304\305\"\306#\307\310E\311\307\310E\312\301\302\303\313\"\306#\314\315R)\307\310EE\207" [host-expression mapconcat identity make-list 4 "[0-9]+" "\\." 0 font-lock-variable-name-face "\\( \\([[:xdigit:]]+\\(:\\|::\\)\\)+[[:xdigit:]]+\\)\\|\\(::[[:xdigit:]]+\\)" "[-A-Za-z0-9]+" 2 "\\(\\." "\\)*"] 7) (#$ . 6029)) (defvar net-utils-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [net-utils-mode-hook variable-documentation put "Hook run after entering NetworkUtil mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp net-utils-mode-map definition-name net-utils-mode] 4) (defvar net-utils-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\322#\207" [net-utils-mode-abbrev-table net-utils-mode-map variable-documentation put purecopy "Keymap for `net-utils-mode'." boundp net-utils-mode-syntax-table definition-name net-utils-mode (lambda (#1=#:def-tmp-var) (defvar net-utils-mode-syntax-table #1#)) make-syntax-table "Syntax table for `net-utils-mode'." (lambda (#1#) (defvar net-utils-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `net-utils-mode'." derived-mode-parent special-mode] 5) #@261 Major mode for interacting with an external network utility. In addition to any hooks its parent mode `special-mode' might have run, this mode runs the hook `net-utils-mode-hook', as the final or penultimate step during initialization. \{net-utils-mode-map} (defalias 'net-utils-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204' \316\317 \"\210\320\f!\211\2036 \321 =\203<