|
NAMErfc - search rfc-index for specified RFC and list topicSYNOPSISrfc [ RFC-number ] [ -dhiklmnoprsuw ]DESCRIPTIONRFC Is a utility that allows you to quickly find RFCs (Proposed or current Internet standards specifications). It can be used to find which RFCs contain information relevent to your search and then optionally display, dump to file, or mail them.OPTIONS
CONFIGURATIONrfc will obey the $RFCVIEWER environment variable if it is set. If undefined it will look in your $PATH for w3m and then lynx. You can hard-code which one you want in the top portion of the script.
EXAMPLES$ rfc -k mpls.*ldp The Result: 3035 MPLS using LDP and ATM VC Switching. B. Davie, J. Lawrence, K. McCloghrie, E. Rosen, G. Swallow, Y. Rekhter, P. Doolan. January 2001. (Format: TXT=46463 bytes) (Status: US:) (Status: PROPOSED STANDARD)$ rfc -l 3035 would then use w3m or lynx to view the discovered RFC $ rfc 822 The Result: 0822 Standard for the format of ARPA Internet text messages. D. Crocker. Aug-13-1982. (Format: TXT=109200 bytes) (Obsoletes RFC0733) (Obsoleted by RFC2822) (Updated by RFC1123, RFC1138, RFC1148, RFC1327, RFC2156) (Also STD0011) (Status: US:) (Status: STANDARD) $ rfc -p ip 8 Making connection to server.... http://www.iana.org/assignments/protocol-numbers 8 EGP Exterior Gateway Protocol [RFC888,DLM1] [RFC888] Seamonson, L., and E. Rosen, "STUB" Exterior Gateway Protocol", RFC 888, BBN Communications Corporation, January 1984. [DLM1] David Mills <Mills@HUEY.UDEL.EDU> $ netstat -an [....] tcp 0 0 0.0.0.0:7100 0.0.0.0:* LISTEN [....] We see port 7100 listening, what is it? $ rfc -n 7100 Looking up service... font-service 7100/tcp # X Font Service font-service 7100/udp # X Font Service FILES
NOTESThe default base URL is http://www.ietf.org/rfc/
KNOWN ISSUESSome sites have leading 0's on RFCs < 1000, ie, RFC0822 may be rfc822.txt or rfc0822.txt. I have yet to implement a feature to work around this. Most of the sub 1k RFCs have newer counter parts. Look for "obsoleted by" in the output from -k -s or -r to find the more up to date RFC. The real bug is the non-standardized rfc distibution. IETF.org has them with leading zeros, so I'm sticking with that.BUGSLet me know if you find any. This is a work in progress but I'm really happy with how easy it's made my life.AUTHORDerrick D. Daugherty <rfc@blinky-lights.org>Send bug reports or comments to <rfc@blinky-lights.org> SEE ALSOLYNX(1), W3M(1), SENDMAIL(1) Visit the GSP FreeBSD Man Page Interface. |