home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / uucp / 1687 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  52.3 KB

  1. Xref: sparky comp.mail.uucp:1687 news.answers:2563
  2. Path: sparky!uunet!airs!ian
  3. From: ian@airs.com (Ian Lance Taylor)
  4. Newsgroups: comp.mail.uucp,news.answers
  5. Subject: UUCP Internals Frequently Asked Questions
  6. Keywords: UUCP, protocol, FAQ
  7. Message-ID: <uucp-internals_714299403@airs.com>
  8. Date: 20 Aug 92 08:30:11 GMT
  9. Expires: 1 Oct 92 08:30:03 GMT
  10. Sender: news@airs.com
  11. Reply-To: ian@airs.com (Ian Lance Taylor)
  12. Followup-To: comp.mail.uucp
  13. Lines: 1175
  14. Approved: news-answers-request@MIT.Edu
  15. Supersedes: <uucp-internals_711880203@airs.com>
  16.  
  17. Archive-name: uucp-internals
  18. Version: $Revision: 1.8 $
  19. Last-modified: $Date: 1992/08/20 03:08:06 $
  20.  
  21.  This article was written by Ian Lance Taylor <ian@airs.com> and I may
  22.  even update it periodically.  Please send me mail about suggestions
  23.  or inaccuracies.
  24.  
  25.  This article describes how the various UUCP protocols work, and
  26.  discusses some other internal UUCP issues.  It does not describe how
  27.  to configure UUCP, nor how to solve UUCP connection problems, nor how
  28.  to deal with UUCP mail.  There are currently no FAQ postings on any
  29.  of these topics, and I do not plan to write any.
  30.  
  31.  If you haven't read the news.announce.newusers articles, read them.
  32.  
  33.  This article is in digest format.  Some newsreaders will be able to
  34.  break it apart into separate articles.  Please don't ask me how to do
  35.  this, though.
  36.  
  37.  This article answers the following questions.  If one of these
  38.  questions is posted to comp.mail.uucp, please send mail to the poster
  39.  referring her or him to this FAQ.  There is no reason to post a
  40.  followup, as most of us know the answer already.
  41.  
  42. Sources
  43. What does "alarm" mean in debugging output?
  44. What are UUCP grades?
  45. What is the format of a UUCP lock file?
  46. What is the format of a UUCP X.* files?
  47. What is the UUCP protocol?
  48. What is the 'g' protocol?
  49. What is the 'f' protocol?
  50. What is the 't' protocol?
  51. What is the 'e' protocol?
  52. What is the 'G' protocol?
  53. What is the 'x' protocol?
  54. What is the 'd' protocol?
  55. What is the 'h' protocol?
  56. Thanks
  57.  
  58. ----------------------------------------------------------------------
  59.  
  60. From: Sources
  61. Subject: Sources
  62.  
  63. I took a lot of the information from Jamie E. Hanrahan's paper in the
  64. Fall 1990 DECUS Symposium, and from Managing UUCP and Usenet by Tim
  65. O'Reilly and Grace Todino (with contributions by several other
  66. people).  The latter includes most of the former, and is published by
  67.         O'Reilly & Associates, Inc.
  68.         632 Petaluma Avenua
  69.         Sebastopol, CA 95472
  70. It is currently in its tenth edition.  The ISBN number is
  71. 0-937175-48-X.
  72.  
  73. Some information is originally due to a Usenet article by Chuck
  74. Wegrzyn.  The information on execution files comes partially from
  75. Peter Honeyman.  The information on the 'g' protocol comes partially
  76. from a paper by G.L. Chesson of Bell Laboratories, partially from
  77. Jamie E. Hanrahan's paper, and partially from source code by John
  78. Gilmore.  The information on the 'f' protocol comes from the source
  79. code by Piet Berteema.  The information on the 't' protocol comes from
  80. the source code by Rick Adams.  The information on the 'e' protocol
  81. comes from a Usenet article by Matthias Urlichs.  The information on
  82. the 'd' protocol comes from Jonathan Clark, who also supplied
  83. information about QFT.  The FSUUCP information comes straight from
  84. Christopher J. Ambler.
  85.  
  86. ------------------------------
  87.  
  88. From: alarm
  89. Subject: What does "alarm" mean in debugging output?
  90.  
  91. The debugging output of many versions of UUCP (but not Taylor UUCP)
  92. will include messages like
  93.     alarm 1
  94. or
  95.     pkcget: alarm 1
  96.  
  97. This message means that the UUCP package has timed out while waiting
  98. for some sort of response from the remote system.  This normally
  99. indicates some sort of connection problem.  For example, the modems
  100. might have lost their connection, or perhaps one of the modems will
  101. not transmit the XON and XOFF characters, or perhaps one side or the
  102. other is dropping characters.  It can also mean that the packages
  103. disagree about some aspect of the UUCP protocol, although this is less
  104. common.
  105.  
  106. Using the information in the rest of this posting, you should be able
  107. to figure out what type of data your UUCP was expecting to receive.
  108. This may give some indication as to exactly what the problem is.  It
  109. is difficult to be more specific, since there are many possiblities.
  110.  
  111. ------------------------------
  112.  
  113. From: UUCP-grades
  114. Subject: What are UUCP grades?
  115.  
  116. Modern UUCP packages support grades for each command.  The grades
  117. generally range from 'A' (the highest) to 'Z' followed by 'a' to 'z'.
  118. Some UUCP packages also support '0' to '9' before 'A'.  Some UUCP
  119. packages may permit any ASCII character as a grade.
  120.  
  121. On Unix, these grades are encoded in the name of the command file.  A
  122. command file name generally has the form
  123.     C.nnnngssss
  124. where nnnn is the remote system name for which the command is queued,
  125. g is a single character grade, and ssss is a four character sequence
  126. number.  For example, a command file created for the system ``airs''
  127. at grade 'Z' might be named
  128.     C.airsZ2551
  129.  
  130. The remote system name will be truncated to seven characters, to
  131. ensure that the command file name will fit in the 14 character file
  132. name limit of the traditional Unix file system.  UUCP packages which
  133. have no other means of distinguishing which command files are intended
  134. for which systems thus require all systems they connect to to have
  135. names that are unique in the first seven characters.  Some UUCP
  136. packages use a variant of this format which truncates the system name
  137. to six characters.  HDB and Taylor UUCP use a different spool
  138. directory format, which allows up to fourteen characters to be used
  139. for each system name.
  140.  
  141. The sequence number in the command file name may be a decimal integer,
  142. or it may be a hexadecimal integer, or it may contain any alphanumeric
  143. character.  Different UUCP packages are different.
  144.  
  145. FSUUCP (a DOS based UUCP and news package) uses up to 8 characters for
  146. file names in the spool (this is a DOS file name limitation; actually,
  147. with the extension, 11 characters are available, but FSUUCP reserves
  148. that for future use).  FSUUCP defaults mail to grade D, and news to
  149. grade N, except that when the grade of incoming mail can be
  150. determined, that grade is preserved if the mail is forwarded to
  151. another system.  Mail and news are currently the only 2 types of
  152. transfers supported.  The default grades may be changed by editing
  153. the MAIL.RC file for mail, or the FSUUCP.CFG file for news.
  154.  
  155. I do not know how command grades are handled in other non-Unix UUCP
  156. packages.
  157.  
  158. Modern UUCP packages allow you to restrict file transfer by grade
  159. depending on the time of day.  Typically this is done with a line in
  160. the Systems (or L.sys) file like this:
  161.     airs Any/Z,Any2305-0855 ...
  162. This allows grades 'Z' and above to be transferred at any time.  Lower
  163. grades may only be transferred at night.  I believe that this grade
  164. restriction applies to local commands as well as to remote commands,
  165. but I am not sure.  It may only apply if the UUCP package places the
  166. call, not if it is called by the remote system.  Taylor UUCP can use
  167. the ``timegrade'' and ``call-timegrade'' commands to achieve the same
  168. effect (and supports the above format when reading Systems or L.sys).
  169.  
  170. This sort of grade restriction is most useful if you know what grades
  171. are being used at the remote site.  The default grades used depend on
  172. the UUCP package.  Generally uucp and uux have different defaults.  A
  173. particular grade can be specified with the -g option to uucp or uux.
  174. For example, to request execution of rnews on airs with grade 'd', you
  175. might use something like
  176.     uux -gd - airs!rnews <article
  177.  
  178. Uunet queues up mail at grade 'C', but increases the grade based on
  179. the size.  News is queued at grade 'd', and file transfers at grade
  180. 'n'.  The example above would allow mail (below some large size) to be
  181. received at any time, but would only permit news to be transferred at
  182. night.
  183.  
  184. ------------------------------
  185.  
  186. From: UUCP-lock-file
  187. Subject: What is the format of a UUCP lock file?
  188.  
  189. This discussion applies only to Unix.  I have no idea how UUCP locks
  190. ports on other systems.
  191.  
  192. UUCP creates files to lock serial ports and systems.  On most if not
  193. all systems these same lock files are also used by cu to coordinate
  194. access to serial ports.  On some systems getty also uses these lock
  195. files, often under the name uugetty.
  196.  
  197. The lock file normally contains the process ID of the locking process.
  198. This makes it easy to determine whether a lock is still valid.  The
  199. algorithm is to create a temporary file and then link it to the name
  200. that must be locked.  If the link fails because a file with that name
  201. already exists, the existing file is read to get the process ID.  If
  202. the process still exists, the lock attempt fails.  Otherwise the lock
  203. file is deleted and the locking algorithm is retried.
  204.  
  205. Older UUCP packages put the lock files in the main UUCP spool
  206. directory, /usr/spool/uucp.  HDB UUCP generally puts the lock files in
  207. a directory of their own, usually /usr/spool/locks or /etc/locks.
  208.  
  209. The original UUCP lock file format encodes the process ID as a four
  210. byte binary number.  The order of the bytes is host-dependent.  HDB
  211. UUCP stores the process ID as a ten byte ASCII decimal number, with a
  212. trailing newline.  For example, if process 1570 holds a lock file, it
  213. would contain the eleven characters space, space, space, space, space,
  214. space, one, five, seven, zero, newline.  Some versions of UUCP add a
  215. second line indicating which program created the lock (uucp, cu, or
  216. getty/uugetty).  I have also seen a third type of UUCP lock file which
  217. does not contain the process ID at all.
  218.  
  219. The name of the lock file is traditionally "LCK.." followed by the
  220. base name of the device.  For example, to lock /dev/ttyd0 the file
  221. LCK..ttyd0 would be created.  On SCO Unix, the lock file name is
  222. always forced to lower case even if the device name has upper case
  223. letters.
  224.  
  225. System V Release 4 UUCP names the lock file using the major and minor
  226. device numbers rather than the device name.  The file is named
  227. LK.XXX.YYY.ZZZ, where XXX, YYY and ZZZ are all three digit decimal
  228. numbers.  XXX is the major device number of the device holding the
  229. directory holding the device file (e.g., /dev).  YYY is the major
  230. device number of the device file itself.  ZZZ is the minor device
  231. number of the device file itself.  If s holds the result of passing
  232. the device to the stat system call (e.g., stat ("/dev/ttyd0", &s)),
  233. the following line of C code will print out the corresponding lock
  234. file name:
  235.     printf ("LK.%03d.%03d.%03d", major (s.st_dev),
  236.             major (s.st_rdev), minor (s.st_rdev));
  237. The advantage of this system is that even if there are several links
  238. to the same device, they will all use the same lock file name.
  239.  
  240. ------------------------------
  241.  
  242. From: X-file
  243. Subject: What is the format of a UUCP X.* files?
  244.  
  245. UUCP X.* files control program execution.  They are created by uux.
  246. They are transferred between computers just like any other file.  The
  247. uuxqt daemon reads them to figure out how to execute the job requested
  248. by uux.
  249.  
  250. An X.* file is simply a text file.  The first character of each line
  251. is a command, and the remainder of the line supplies arguments.  The
  252. following commands are defined:
  253.     C command
  254.         This gives the command to execute, including the program and
  255.         all arguments.  For example,
  256.             C rmail ian@airs.com
  257.     U user system
  258.         This names the user who requested the command, and the system
  259.         from which the request came.
  260.     I standard-input
  261.         This names the file from which standard input is taken.  If no
  262.         standard input file is given, the standard input will probably
  263.         be attached to /dev/null.  If the standard input file is not
  264.         from the system on which the execution is to occur, it will
  265.         also appear in an F command.
  266.     O standard-output [ system ]
  267.         This names the standard output file.  The optional second
  268.         argument names the system to which the file should be sent.
  269.         If there is no second argument, the file should be created on
  270.         the executing system.
  271.     F required-file [ filename-to-use ]
  272.         The F command can appear multiple times.  Each F command names
  273.         a file which must exist before the execution can proceed.
  274.         This will usually be a file which is transferred from the
  275.         system on which uux was executed, but it can also be a file
  276.         from the local system or some other system.  If the file is
  277.         not from the local system, then the command will usually name
  278.         a file in the spool directory.  If the optional second
  279.         argument appears, then the file should be copied to the
  280.         execution directory under that name.  This is necessary for
  281.         any file other than the standard input file.  If the standard
  282.         input file is not from the local system, it will appear in
  283.         both an F command and an I command.
  284.     R requestor-address
  285.         This is the address to which mail about the job should be
  286.         sent.  It is relative to the system named in the U command.
  287.         If the R command does not appear, then mail is sent to the
  288.         user named in the U command.
  289.     Z
  290.         This command takes no arguments.  It means that a mail message
  291.         should be sent if the command failed.  This is the default
  292.         behaviour for most modern UUCP packages, and for them the Z
  293.         command does not actually do anything.
  294.     N
  295.         This command takes no arguments.  It means that no mail
  296.         message should be sent, even if the command failed.
  297.     n
  298.         This command takes no arguments.  It means that a mail message
  299.         should be sent if the command succeeded.  Normally a message
  300.         is sent only if the command failed.
  301.     B
  302.         This command takes no arguments.  It means that the standard
  303.         input should be returned with any error message.  This can be
  304.         useful in cases where the input would otherwise be lost.
  305.     e
  306.         This command takes no arguments.  It means that the command
  307.         should be processed with /bin/sh.  For some packages this is
  308.         the default anyhow.  Most packages will refuse to execute
  309.         complex commands or commands containing wildcards, because of
  310.         the security holes this opens.
  311.     E
  312.         This command takes no arguments.  It means that the command
  313.         should be processed with the execve system call.  For some
  314.         packages this is the default anyhow.
  315.     M status-file
  316.         This command means that instead of mailing a message, the
  317.         message should be copied to the named file on the system named
  318.         by the U command.
  319.     # comment
  320.         This command is ignored, as is any other unrecognized command.  
  321.  
  322. Here is an example.  Given the following command executed on system
  323. test1
  324.     uux - test2!cat - test2!~ian/bar !qux '>~/gorp'
  325. (this is only an example, as most UUCP systems will not permit the cat
  326. command to be executed) Taylor UUCP will produce the following X.
  327. file:
  328.     U ian test1
  329.     F D.test1N003r qux
  330.     O /usr/spool/uucppublic test1
  331.     F D.test1N003s
  332.     I D.test1N003s
  333.     C cat - ~ian/bar qux
  334. The standard input will be read into a file and then transferred to
  335. the file D.test1N003s on system test2, and the file qux will be
  336. transferred to D.test1N003r on system test2.  When the command is
  337. executed, the latter file will be copied to the execution directory
  338. under the name qux.  Note that since the file ~ian/bar is already on
  339. the execution system, no action need be taken for it.  The standard
  340. output will be collected in a file, then copied to the directory
  341. /usr/spool/uucppublic on the system test1.
  342.  
  343. ------------------------------
  344.  
  345. From: UUCP-protocol
  346. Subject: What is the UUCP protocol?
  347.  
  348. The UUCP protocol is a conversation between two UUCP packages.  A UUCP
  349. conversation consists of three parts: an initial handshake, a series
  350. of file transfer requests, and a final handshake.
  351.  
  352. Before the initial handshake, the caller will usually have logged in
  353. the called machine and somehow started the UUCP package there.  On
  354. Unix this is normally done by setting the shell of the login name used
  355. to /usr/lib/uucp/uucico.
  356.  
  357. All messages in the initial handshake begin with a ^P (a byte with the
  358. octal value \020) and end with a null byte (\000).  A few systems end
  359. these messages with a line feed character (\012) instead of a null
  360. byte; the examples below assume a null byte is being used.
  361.  
  362. Some options below are supported by QFT, which stands for Queued File
  363. Transfer, and is (or was) an internal Bell Labs version of UUCP.  Some
  364. are supported by FSUUCP, which is a DOS based UUCP and news package.
  365.  
  366. The initial handshake goes as follows.  It is begun by the called
  367. machine.
  368.  
  369. called: \020Shere=hostname\000
  370.     The hostname is the UUCP name of the called machine.  Older UUCP
  371.     packages do not output it, and simply send \020Shere\000.
  372.  
  373. caller: \020Shostname options\000
  374.     The hostname is the UUCP name of the calling machine.  The
  375.     following options may appear (or there may be none):
  376.         -QSEQ
  377.             Report sequence number for this conversation.  The
  378.             sequence number is stored at both sites, and incremented
  379.             after each call.  If there is a sequence number mismatch,
  380.             something has gone wrong (somebody may have broken
  381.             security by pretending to be one of the machines) and the
  382.             call is denied.  If the sequence number changes on one of
  383.             the machines, perhaps because of an attempted breakin or
  384.             because a disk backup was restored, the sequence numbers
  385.             on the two machines must be reconciled manually.  This is
  386.             not supported by FSUUCP.
  387.         -xLEVEL
  388.             Requests the called system to set its debugging level to
  389.             the specified value.  This is not supported by all
  390.             systems.
  391.         -pGRADE
  392.         -vgrade=GRADE
  393.             Requests the called system to only transfer files of the
  394.             specified grade or higher.  This is not supported by all
  395.             systems.  Some systems support -p, some support -vgrade=.
  396.         -R
  397.             Indicates that the calling UUCP understands how to restart
  398.             failed file transmissions.  Supported only by System V
  399.             Release 4 UUCP and QFT.
  400.         -ULIMIT
  401.             Reports the ulimit value of the calling UUCP.  The limit
  402.             is specified as a base 16 number in C notation (e.g.,
  403.             -U0x1000000).  This number is the number of 512 byte
  404.             blocks in the largest file which the calling UUCP can
  405.             create.  The called UUCP may not transfer a file larger
  406.             than this.  Supported only by System V Release 4 UUCP, QFT
  407.             and FSUUCP.  FSUUCP reports the lesser of the
  408.             available disk space on the spool directory drive and the
  409.             ulimit variable in FSUUCP.CFG.
  410.         -N
  411.             Indicates that the calling UUCP understands the Taylor
  412.             UUCP size limiting extensions.  Supported only by Taylor
  413.             UUCP and FSUUCP.
  414.  
  415. called: \020ROK\000
  416.     There are actually several possible responses.
  417.         ROK
  418.             The calling UUCP is acceptable, and the handshake proceeds
  419.             to the protocol negotiation.  Some options may also
  420.             appear; see below.
  421.         ROKN
  422.             The calling UUCP is acceptable, it specified -N, and the
  423.             called UUCP also understands the Taylor UUCP size limiting
  424.             extensions.  Supported only by Taylor UUCP and FSUUCP.
  425.         RLCK
  426.             The called UUCP already has a lock for the calling UUCP,
  427.             which normally indicates the two machines are already
  428.             communicating.
  429.         RCB
  430.             The called UUCP will call back.  This may be used to avoid
  431.             impostors (but only one machine out of each pair should
  432.             call back, or no conversation will ever begin).
  433.         RBADSEQ
  434.             The call sequence number is wrong (see the -Q discussion
  435.             above). 
  436.         RLOGIN
  437.             The calling UUCP is using the wrong login name.
  438.         RYou are unknown to me
  439.             The calling UUCP is not known to the called UUCP, and the
  440.             called UUCP does not permit connections from unknown
  441.             systems.  Some versions of UUCP just drop the line rather
  442.             than sending this message.
  443.  
  444.     If the response is ROK, the following options are supported by
  445.     System V Release 4 UUCP and QFT.
  446.         -R
  447.             The called UUCP knows how to restart failed file
  448.             transmissions.
  449.         -ULIMIT
  450.             Reports the ulimit value of the called UUCP.  The limit is
  451.             specified as a base 16 number in C notation.  This number
  452.             is the number of 512 byte blocks in the largest file which
  453.             the called UUCP can create.  The calling UUCP may not send
  454.             a file larger than this.  Also supported by FSUUCP.
  455.         -xLEVEL
  456.             I'm not sure just what this means.  It may request the
  457.             calling UUCP to set its debugging level to the specified
  458.             value.
  459.     If the response is not ROK (or ROKN) both sides hang up the phone,
  460.     abandoning the call.
  461.  
  462. called: \020Pprotocols\000
  463.     Note that the called UUCP outputs two strings in a row.  The
  464.     protocols string is a list of UUCP protocols supported by the
  465.     caller.  Each UUCP protocol has a single character name.  These
  466.     protocols are discussed in more detail later in this document.
  467.     For example, the called UUCP might send \020Pgf\000.
  468.  
  469. caller: \020Uprotocol\000
  470.     The calling UUCP selects which protocol to use out of the
  471.     protocols offered by the called UUCP.  If there are no mutually
  472.     supported protocols, the calling UUCP sends \020UN\000 and both
  473.     sides hang up the phone.  Otherwise the calling UUCP sends
  474.     something like \020Ug\000.
  475.  
  476. Most UUCP packages will consider each locally supported protocol in
  477. turn and select the first one supported by the called UUCP.  With some
  478. versions of HDB UUCP, this can be modified by giving a list of
  479. protocols after the device name in the Devices file or the Systems
  480. file.  For example, to select the 'e' protocol in Systems,
  481.     airs Any ACU,e ...
  482. or in Devices,
  483.     ACU,e ttyXX ...
  484. Taylor UUCP provides the ``protocol'' command which may be used either
  485. for a system or a port.
  486.  
  487. After the protocol has been selected and the initial handshake has been
  488. completed, both sides turn on the selected protocol.  For some
  489. protocols (notably 'g') a further handshake is done at this point.
  490.  
  491. Each protocol supports a method for sending a command to the remote
  492. system.  This method is used to transmit a series of commands between
  493. the two UUCP packages.  At all times, one package is the master and
  494. the other is the slave.  Initially, the calling UUCP is the master.
  495.  
  496. If a protocol error occurs during the exchange of commands, both sides
  497. move immediately to the final handshake.
  498.  
  499. The master will send one of four commands: S, R, X or H.
  500.  
  501. Any file name referred to below is either an absolute pathname
  502. beginning with "/", a public directory pathname beginning with "~/", a
  503. pathname relative to a user's home directory beginning with "~USER/",
  504. or a spool directory file name.  File names in the spool directory are
  505. not pathnames, but instead are converted to pathnames within the spool
  506. directory by UUCP.  They always begin with "C." (for a command file
  507. created by uucp or uux), "D." (for a data file created by uucp, uux or
  508. by an execution, or received from another system for an execution), or
  509. "X." (for an execution file created by uux or received from another
  510. system).
  511.  
  512. master: S FROM TO USER -OPTIONS TEMP MODE NOTIFY SIZE
  513.     The S and the - are literal characters.  This is a request by the
  514.     master to send a file to the slave.
  515.         FROM
  516.             The name of the file to send.  If the C option does not
  517.             appear in OPTIONS, the master will actually open and send
  518.             this file.  Otherwise the file has been copied to the
  519.             spool directory, where it is named TEMP.  The slave
  520.             ignores this field unless TO is a directory, in which case
  521.             the basename of FROM will be used as the file name.  If
  522.             FROM is a spool directory filename, it must be a data file
  523.             created for or by an execution, and must begin with "D.".
  524.         TO
  525.             The name to give the file on the slave.  If this field
  526.             names a directory the file is placed within that directory
  527.             with the basename of FROM.  A name ending in `/' is taken
  528.             to be a directory even if one does not already exist with
  529.             that name.  If TO begins with `X.', an execution file will
  530.             be created on the slave.  Otherwise, if TO begins with
  531.             `D.' it names a data file to be used by some execution
  532.             file.  Otherwise, TO should not be in the spool directory.
  533.         USER
  534.             The name of the user who requested the transfer.
  535.         OPTIONS
  536.             A list of options to control the transfer.  The following
  537.             options are defined (all options are single characters):
  538.                 C
  539.                     The file has been copied to the spool directory
  540.                     (the master should use TEMP rather than FROM).
  541.                 c
  542.                     The file has not been copied to the spool
  543.                     directory (this is the default).
  544.                 d
  545.                     The slave should create directories as necessary
  546.                     (this is the default).
  547.                 f
  548.                     The slave should not create directories if
  549.                     necessary, but should fail the transfer instead.
  550.                 m
  551.                     The master should send mail to USER when the
  552.                     transfer is complete (not supported by FSUUCP).
  553.                 n
  554.                     The slave should send mail to NOTIFY when the
  555.                     transfer is complete (not supported by FSUUCP).
  556.         TEMP
  557.             If the C option appears in OPTIONS, this names the file to
  558.             be sent.  Otherwise if FROM is in the spool directory,
  559.             TEMP is the same as FROM.  Otherwise TEMP may be a dummy
  560.             string, such as "D.0".  After the transfer has been
  561.             succesfully completed, the master will delete the file
  562.             TEMP.
  563.         MODE
  564.             This is an octal number giving the mode of the file on
  565.             MASTER.  If the file is not in the spool directory, the
  566.             slave will always create it with mode 0666, except that if
  567.             (MODE & 0111) is not zero (the file is executable), the
  568.             slave will create the file with mode 0777.  If the file is
  569.             in the spool directory, some UUCP packages will use the
  570.             algorithm above and some will always create the file with
  571.             mode 0600.  This field is not used by FSUUCP, since it is
  572.             meaningless on DOS.
  573.         NOTIFY
  574.             This field may not be present, and in any case is only
  575.             meaningful if the n option appears in OPTIONS.  If the n
  576.             option appears, then when the transfer is successfully
  577.             completed, the slave will send mail to NOTIFY, which must
  578.             be a legal mailing address on the slave.  If a SIZE field
  579.             will appear but the n option does not appear, NOTIFY will
  580.             always be present, typically as the string "dummy" or
  581.             simply a pair of double quotes.
  582.         SIZE
  583.             This field is only present when doing size negotiation,
  584.             with Taylor UUCP, SVR4 UUCP, QFT or FSUUCP.  It is the
  585.             size of the file in bytes.  SVR4 UUCP, QFT and FSUUCP send
  586.             the size in base 16 as 0x.... while Taylor UUCP sends the
  587.             size as a decimal integer (a later version of Taylor UUCP
  588.             will probably change to the SVR4 behaviour).
  589.  
  590.     The slave then responds with an S command response.
  591.         SY START
  592.             The slave is willing to accept the file, and file transfer
  593.             begins.  The START field will only be present when using
  594.             file restart.  It specifies the byte offset into the file
  595.             at which to start sending.  If this is a new file, START
  596.             will be 0x0.
  597.         SN2
  598.             The slave denies permission to transfer the file.  This
  599.             can mean that the destination directory may not be
  600.             accessed, or that no requests are permitted.  It implies
  601.             that the file transfer will never succeed.
  602.         SN4
  603.             The slave is unable to create the necessary temporary
  604.             file.  This implies that the file transfer might succeed
  605.             later.
  606.         SN6
  607.             This is only used by Taylor UUCP and FSUUCP size
  608.             negotiation.  It means that the slave considers the file
  609.             too large to transfer at the moment, but it may be
  610.             possible to transfer it at some other time.
  611.         SN7
  612.             This is only used by Taylor UUCP and FSUUCP size
  613.             negotiation.  It means that the slave considers the file
  614.             too large to ever transfer.
  615.         SN8
  616.             This is only used by Taylor UUCP.  It means that the file
  617.             was already received in a previous conversation.  This can
  618.             happen if the receive acknowledgement was lost after it
  619.             was sent by the receiver but before it was received by the
  620.             sender.
  621.  
  622.     If the slave responds with SY, a file transfer begins.  When the
  623.     file transfer is complete, the slave sends a C command response.
  624.         CY
  625.             The file transfer was successful.
  626.         CYM
  627.             The file transfer was successful, and the slave wishes to
  628.             become the master; the master should send an H command,
  629.             described below.
  630.         CN5
  631.             The temporary file could not be moved into the final
  632.             location.  This implies that the file transfer will never
  633.             succeed.
  634.  
  635.     After the C command response has been received (in the SY case) or
  636.     immediately (in an SN case) the master will send another command.
  637.  
  638. master: R FROM TO USER -OPTIONS SIZE
  639.     The R and the - are literal characters.  This is a request by the
  640.     master to receive a file from the slave.  I do not know how SVR4
  641.     UUCP or QFT implement file transfer restart in this case.
  642.         FROM
  643.             This is the name of the file on the slave which the master
  644.             wishes to receive.  It must not be in the spool directory,
  645.             and it may not contain any wildcards.
  646.         TO
  647.             This is the name of the file to create on the master.  I
  648.             do not believe that it can be a directory.  It may only be
  649.             in the spool directory if this file is being requested to
  650.             support an execution either on the master or on some
  651.             system other than the slave.
  652.         USER
  653.             The name of the user who requested the transfer.
  654.         OPTIONS
  655.             A list of options to control the transfer.  The following
  656.             options are defined (all options are single characters):
  657.                 d
  658.                     The master should create directories as necessary
  659.                     (this is the default).
  660.                 f
  661.                     The master should not create directories if
  662.                     necessary, but should fail the transfer instead.
  663.                 m
  664.                     The master should send mail to USER when the
  665.                     transfer is complete.
  666.         SIZE
  667.             This only appears if Taylor UUCP or FSUUCP size
  668.             negotiation is being used.  It specifies the largest file
  669.             which the master is prepared to accept (when using SVR4
  670.             UUCP or QFT, this was specified in the -U option during
  671.             the initial handshake).
  672.  
  673.     The slave then responds with an R command response.  FSUUCP does
  674.     not support R requests, and always responds with RN2.
  675.         RY MODE
  676.             The slave is willing to send the file, and file transfer
  677.             begins.  MODE is the octal mode of the file on the slave.
  678.             The master treats this just as the slave does the MODE
  679.             argument in the send command, q.v.
  680.         RN2
  681.             The slave is not willing to send the file, either because
  682.             it is not permitted or because the file does not exist.
  683.             This implies that the file request will never succeed.
  684.         RN6
  685.             This is only used by Taylor UUCP size negotiation.  It
  686.             means that the file is too large to send, either because
  687.             of the size limit specifies by the master or because the
  688.             slave considers it too large.  The file transfer might
  689.             succeed later, or it might not (this will be cleared up in
  690.             a later release of Taylor UUCP).
  691.  
  692.     If the slave responds with RY, a file transfer begins.  When the
  693.     file transfer is complete, the master sends a C command.  The
  694.     slave pretty much ignores this, although it may log it.
  695.         CY
  696.             The file transfer was successful.
  697.         CN5
  698.             The temporary file could not be moved into the final
  699.             location.
  700.  
  701.     After the C command response has been sent (in the RY case) or
  702.     immediately (in an RN case) the master will send another command.
  703.  
  704. master: X FROM TO USER -OPTIONS
  705.     The X and the - are literal characters.  This is a request by the
  706.     master to, in essence, execute uucp on the slave.  The slave
  707.     should execute "uucp FROM TO".
  708.         FROM
  709.             This is the name of the file or files on the slave which
  710.             the master wishes to transfer.  Any wildcards are expanded
  711.             on the slave.  If the master is requesting that the files
  712.             be transferred to itself, the request would normally
  713.             contain wildcard characters, since otherwise an `R'
  714.             command would suffice.  The master can also use this
  715.             command to request that the slave transfer files to a
  716.             third system.
  717.         TO
  718.             This is the name of the file or directory to which the
  719.             files should be transferred.  This will normally use a
  720.             UUCP name.  For example, if the master wishes to receive
  721.             the files itself, it would use "master!path".
  722.         USER
  723.             The name of the user who requested the transfer.
  724.         OPTIONS
  725.             A list of options to control the transfer.  It is not
  726.             clear which, if any, options are supported by most UUCP
  727.             packages.
  728.  
  729.     The slave then responds with an X command response.  FSUUCP does
  730.     not support X requests, and always responds with XN.
  731.         XY
  732.             The request was accepted, and the appropriate file
  733.             transfer commands have been queued up for later
  734.             processing.
  735.         XN
  736.             The request was denied.  No particular reason is given.
  737.  
  738.     In either case, the master will then send another command.
  739.  
  740. master: H
  741.     This is used by the master to hang up the connection.  The slave
  742.     will respond with an H command response.
  743.         HY
  744.             The slave agrees to hang up the connection.  In this case
  745.             the master sends another HY command.  In some UUCP
  746.             packages the slave will then send a third HY command.  At
  747.             this point the protocol is shut down, and the final
  748.             handshake is begun.
  749.         HN
  750.             The slave does not agree to hang up.  In this case the
  751.             master and the slave exchange roles.  The next command
  752.             will be sent by the former slave, which is the new master.
  753.             The roles may be reversed several times during a single
  754.             connection.
  755.  
  756. After the protocol has been shut down, the final handshake is
  757. performed.  This handshake has no real purpose, and some UUCP packages
  758. simply drop the connection rather than do it (in fact, some will drop
  759. the connection immediately after both sides agree to hangup, without
  760. even closing down the protocol).
  761.  
  762. caller: \020OOOOOO\000
  763. called: \020OOOOOOO\000
  764.  
  765. That is, the calling UUCP sends six O's and the called UUCP replies
  766. with seven O's.  Some UUCP packages always send six O's.
  767.  
  768. ------------------------------
  769.  
  770. From: UUCP-g
  771. Subject: What is the 'g' protocol?
  772.  
  773. The 'g' protocol is a packet based flow controlled error correcting
  774. protocol that requires an eight bit clear connection.  It is the
  775. original UUCP protocol, and is supported by all UUCP implementations.
  776. Many implementations of it are only able to support small window and
  777. packet sizes, specifically a window size of 3 and a packet size of 64
  778. bytes, but the protocol itself can support up to a window size of 7
  779. and a packet size of 4096 bytes.  Complaints about the inefficiency of
  780. the 'g' protocol generally refer to specific implementations, rather
  781. than to the correctly implemented protocol.
  782.  
  783. The 'g' protocol was originally designed for general packet drivers,
  784. and thus contains some features that are not used by UUCP, including
  785. an alternate data channel and the ability to renegotiate packet and
  786. window sizes during the communication session.
  787.  
  788. The 'g' protocol is spoofed by many Telebit modems.  When spoofing is
  789. in effect, each Telebit modem uses the 'g' protocol to communicate
  790. with the attached computer, but the data between the modems is sent
  791. using a Telebit proprietary error correcting protocol.  This allows
  792. for very high throughput over the Telebit connection, which, because
  793. it is half-duplex, would not normally be able to handle the 'g'
  794. protocol very well at all.
  795.  
  796. This discussion of the 'g' protocol explains how it works, but does
  797. not discuss useful error handling techniques.  Some discussion of this
  798. can be found in Jamie E. Hanrahan's paper, cited above.
  799.  
  800. All 'g' protocol communication is done with packets.  Each packet
  801. begins with a six byte header.  Control packets consist only of the
  802. header.  Data packets contain additional data.
  803.  
  804. The header is as follows:
  805.  
  806.     \020
  807.         Every packet begins with a ^P.
  808.     k (1 <= k <= 9)
  809.         The k value is always 9 for a control packet.  For a data
  810.         packet, the k value indicates how must data follows the six
  811.         byte header.  The amount of data is 2 ** (k + 4), where **
  812.         indicates exponentiation.  Thus a k value of 1 means 32 data
  813.         bytes and a k value of 8 means 4096 data bytes.  The k value
  814.         for a data packet must be between 1 and 8 inclusive.
  815.     checksum low byte
  816.     checksum high byte
  817.         The checksum value is described below.
  818.     control byte
  819.         The control packet indicates the type of packet, and is
  820.         described below.
  821.     xor byte
  822.         This byte is the xor of k, the checksum low byte, the checksum
  823.         high byte and the control byte (i.e., the second, third,
  824.         fourth and fifth header bytes).  It is used to ensure that the
  825.         header data is valid.
  826.  
  827. The control byte in the header is composed of three bit fields,
  828. referred to here as TT (two bits), XXX (three bits) and YYY (three
  829. bits).  The control is TTXXXYYY, or (TT << 6) + (XXX << 3) + YYY.
  830.  
  831. The TT field takes on the following values:
  832.     0
  833.         This is a control packet.  In this case the k byte in the
  834.         header must be 9.  The XXX field indicates the type of control
  835.         packet; these types are described below.
  836.     1
  837.         This is an alternate data channel packet.  This is not used by
  838.         UUCP.
  839.     2
  840.         This is a data packet, and the entire contents of the attached
  841.         data field (whose length is given by the k byte in the header)
  842.         are valid.  The XXX and YYY fields are described below.
  843.     3
  844.         This is a short data packet.  Let the length of the data field
  845.         (as given by the k byte in the header) be L.  Let the first
  846.         byte in the data field be B1.  If B1 is less than 128 (if the
  847.         most significant bit of B1 is 0), then there are L - B1 valid
  848.         bytes of data in the data field, beginning with the second
  849.         byte.  If B1 >= 128, let B2 be the second byte in the data
  850.         field.  Then there are L - ((B1 & 0x7f) + (B2 << 7)) valid
  851.         bytes of data in the data field, beginning with the third
  852.         byte.  In all cases L bytes of data are sent (and all data
  853.         bytes participate in the checksum calculation) but some of the
  854.         trailing bytes may be dropped by the receiver.   The XXX and
  855.         YYY fields are described below.
  856.  
  857. In a data packet (short or not) the XXX field gives the sequence
  858. number of the packet.  Thus sequence numbers can range from 0 to 7,
  859. inclusive.  The YYY field gives the sequence number of the last
  860. correctly received packet.
  861.  
  862. Each communication direction uses a window which indicates how many
  863. unacknowledged packets may be transmitted before waiting for an
  864. acknowledgement.  The window may range from 1 to 7, and may be
  865. different in each direction. For example, if the window is 3 and the
  866. last packet acknowledged was packet number 6, packet numbers 7, 0 and
  867. 1 may be sent but the sender must wait for an acknowledgement before
  868. sending packet number 2.  This acknowledgement could come as the YYY
  869. field of a data packet or as the YYY field of a RJ or RR control
  870. packet (described below).
  871.  
  872. Each packet must be transmitted in order (the sender may not skip
  873. sequence numbers).  Each packet must be acknowledged, and each packet
  874. must be acknowledged in order.
  875.  
  876. In a control packet, the XXX field takes on the following values:
  877.     1 CLOSE
  878.         The connection should be closed immediately.  This is
  879.         typically sent when one side has seen too many errors and
  880.         wants to give up.  It is also sent when shutting down the
  881.         protocol.  If an unexpected CLOSE packet is received, a CLOSE
  882.         packet should be sent in reply and the 'g' protocol should
  883.         halt, causing UUCP to enter the final handshake.
  884.     2 RJ or NAK
  885.         The last packet was not received correctly.  The YYY field
  886.         contains the sequence number of the last correctly received
  887.         packet.
  888.     3 SRJ
  889.         Selective reject.  The YYY field contains the sequence number
  890.         of a packet that was not received correctly, and should be
  891.         retransmitted.  This is not used by UUCP, and most
  892.         implementations will not recognize it.
  893.     4 RR or ACK
  894.         Packet acknowledgement.  The YYY field contains the sequence
  895.         number of the last correctly received packet.
  896.     5 INITC
  897.         Third initialization packet.  The YYY field contains the
  898.         maximum window size to use.
  899.     6 INITB
  900.         Second initialization packet.  The YYY field contains the
  901.         packet size to use.  It requests a size of 2 ** (YYY + 5).
  902.         Note that this is not the same coding used for the k byte in
  903.         the packet header (it is 1 less).  Most UUCP implementations
  904.         that request a packet size larger than 64 bytes can handle any
  905.         packet size up to that specified.
  906.     7 INITA
  907.         First initialization packet.  The YYY field contains the
  908.         maximum window size to use.
  909.  
  910. The checksum of a control packet is simply 0xaaaa - the control byte.
  911.  
  912. The checksum of a data packet is 0xaaaa - (CHECK ^ the control byte),
  913. where ^ denotes exclusive or, and CHECK is the result of the following
  914. routine as run on the contents of the data field (every byte in the
  915. data field participates in the checksum, even for a short data
  916. packet).  Below is the routine used by Taylor UUCP; it is a slightly
  917. modified version of a routine which John Gilmore patched from G.L.
  918. Chesson's original paper.  The z argument points to the data and the c
  919. argument indicates how much data there is.
  920.  
  921. int
  922. igchecksum (z, c)
  923.      register const char *z;
  924.      register int c;
  925. {
  926.   register unsigned int ichk1, ichk2;
  927.  
  928.   ichk1 = 0xffff;
  929.   ichk2 = 0;
  930.  
  931.   do
  932.     {
  933.       register unsigned int b;
  934.  
  935.       /* Rotate ichk1 left.  */
  936.       if ((ichk1 & 0x8000) == 0)
  937.         ichk1 <<= 1;
  938.       else
  939.         {
  940.           ichk1 <<= 1;
  941.           ++ichk1;
  942.         }
  943.  
  944.       /* Add the next character to ichk1.  */
  945.       b = *z++ & 0xff;
  946.       ichk1 += b;
  947.  
  948.       /* Add ichk1 xor the character position in the buffer counting from
  949.          the back to ichk2.  */
  950.       ichk2 += ichk1 ^ c;
  951.  
  952.       /* If the character was zero, or adding it to ichk1 caused an
  953.          overflow, xor ichk2 to ichk1.  */
  954.       if (b == 0 || (ichk1 & 0xffff) < b)
  955.         ichk1 ^= ichk2;
  956.     }
  957.   while (--c > 0);
  958.  
  959.   return ichk1 & 0xffff;
  960. }
  961.  
  962. When the 'g' protocol is started, the calling UUCP sends an INITA
  963. control packet with the window size it wishes the called UUCP to use.
  964. The called UUCP responds with an INITA packet with the window size it
  965. wishes the calling UUCP to use.  Pairs of INITB and INITC packets are
  966. then similarly exchanged.  When these exchanges are completed, the
  967. protocol is considered to have been started.
  968.  
  969. When a UUCP package transmits a command, it sends one or more data
  970. packets.  All the data packets will normally be complete, although
  971. some UUCP packages may send the last one as a short packet.  The
  972. command string is sent with a trailing null byte, to let the receiving
  973. package know when the command is finished.  Some UUCP packages require
  974. the last byte of the last packet sent to be null, even if the command
  975. ends earlier in the packet.  Some packages may require all the
  976. trailing bytes in the last packet to be null, but I have not confirmed
  977. this.
  978.  
  979. When a UUCP package sends a file, it will send a sequence of data
  980. packets.  The end of the file is signalled by a short data packet
  981. containing zero valid bytes (it will normally be preceeded by a short
  982. data packet containing the last few bytes in the file).
  983.  
  984. Note that the sequence numbers cover the entire communication session,
  985. including both command and file data.
  986.  
  987. When the protocol is shut down, each UUCP package sends a CLOSE
  988. control packet.
  989.  
  990. ------------------------------
  991.  
  992. From: UUCP-f
  993. Subject: What is the 'f' protocol?
  994.  
  995. The 'f' protocol is a seven bit protocol which checksums an entire
  996. file at a time.  It only uses the characters between \040 and \176
  997. (ASCII space and ~) inclusive as well as the carriage return
  998. character.  It can be very efficient for transferring text only data,
  999. but it is very inefficient at transferring eight bit data (such as
  1000. compressed news).  It is not flow controlled, and the checksum is
  1001. fairly insecure over large files, so using it over a serial connection
  1002. requires handshaking (XON/XOFF can be used) and error correcting
  1003. modems.  Some people think it should not be used even under those
  1004. circumstances.
  1005.  
  1006. I believe the 'f' protocol originated in BSD versions of UUCP.  It was
  1007. originally intended for transmission over X.25 PAD links.
  1008.  
  1009. The 'f' protocol has no startup or finish protocol.  However, both
  1010. sides typically sleep for a couple of seconds before starting up,
  1011. because they switch the terminal into XON/XOFF mode and want to allow
  1012. the changes to settle before beginning transmission.
  1013.  
  1014. When a UUCP package transmits a command, it simply sends a string
  1015. terminated by a carriage return.
  1016.  
  1017. When a UUCP package transmits a file, each byte b of the file is
  1018. translated according to the following table:
  1019.  
  1020.        0 <= b <=  037: 0172, b + 0100 (0100 to 0137)
  1021.      040 <= b <= 0171:       b        ( 040 to 0171)
  1022.     0172 <= b <= 0177: 0173, b - 0100 ( 072 to  077)
  1023.     0200 <= b <= 0237: 0174, b - 0100 (0100 to 0137)
  1024.     0240 <= b <= 0371: 0175, b - 0200 ( 040 to 0171)
  1025.     0372 <= b <= 0377: 0176, b - 0300 ( 072 to  077)
  1026.  
  1027. That is, a byte between \040 and \171 inclusive is transmitted as is,
  1028. and all other bytes are prefixed and modified as shown.
  1029.  
  1030. When all the file data is sent, a seven byte sequence is sent: two
  1031. bytes of \176 followed by four ASCII bytes of the checksum as printed
  1032. in base 16 followed by a carriage return.  For example, if the
  1033. checksum was 0x1234, this would be sent: "\176\1761234\r".
  1034.  
  1035. The checksum is initialized to 0xffff.  For each byte that is sent it
  1036. is modified as follows (where b is the byte before it has been
  1037. transformed as described above):
  1038.  
  1039.       /* Rotate the checksum left.  */
  1040.       if ((ichk & 0x8000) == 0)
  1041.         ichk <<= 1;
  1042.       else
  1043.         {
  1044.           ichk <<= 1;
  1045.           ++ichk;
  1046.         }
  1047.  
  1048.       /* Add the next byte into the checksum.  */
  1049.       ichk += b;
  1050.  
  1051. When the receiving UUCP sees the checksum, it compares it against its
  1052. own calculated checksum and replies with a single character followed
  1053. by a carriage return.
  1054.     G
  1055.         The file was received correctly.
  1056.     R
  1057.         The checksum did not match, and the file should be resent from
  1058.         the beginning.
  1059.     Q
  1060.         The checksum did not match, but too many retries have occurred
  1061.         and the communication session should be abandoned.
  1062.  
  1063. The sending UUCP checks the returned character and acts accordingly.
  1064.  
  1065. ------------------------------
  1066.  
  1067. From: UUCP-t
  1068. Subject: What is the 't' protocol?
  1069.  
  1070. The 't' protocol is intended for use on links which provide reliable
  1071. end-to-end connections, such as TCP.  It does no error checking or
  1072. flow control, and requires an eight bit clear channel.
  1073.  
  1074. I believe the 't' protocol originated in BSD versions of UUCP.
  1075.  
  1076. When a UUCP package transmits a command, it first gets the length of
  1077. the command string, C.  It then sends ((C / 512) + 1) * 512 bytes (the
  1078. smallest multiple of 512 which can hold C bytes plus a null byte)
  1079. consisting of the command string itself followed by trailing null
  1080. bytes.
  1081.  
  1082. When a UUCP package sends a file, it sends it in blocks.  Each block
  1083. contains at most 1024 bytes of data.  Each block consists of four
  1084. bytes containing the amount of data in binary (most significant byte
  1085. first, the same format as used by the Unix function htonl) followed by
  1086. that amount of data.  The end of the file is signalled by a block
  1087. containing zero bytes of data.
  1088.  
  1089. ------------------------------
  1090.  
  1091. From: UUCP-e
  1092. Subject: What is the 'e' protocol?
  1093.  
  1094. The 'e' protocol is similar to the 't' protocol.  It does no flow
  1095. control or error checking and is intended for use over networks
  1096. providing reliable end-to-end connections, such as TCP.
  1097.  
  1098. The 'e' protocol originated in versions of HDB UUCP.
  1099.  
  1100. When a UUCP package transmits a command, it simply sends the command
  1101. as an ASCII string terminated by a null byte.
  1102.  
  1103. When a UUCP package transmits a file, it sends the complete size of
  1104. the file as an ASCII decimal number.  The ASCII string is padded out
  1105. to 20 bytes with null bytes (i.e. if the file is 1000 bytes long, it
  1106. sends "1000\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0").  It then sends the
  1107. entire file.
  1108.  
  1109. ------------------------------
  1110.  
  1111. From: UUCP-G
  1112. Subject: What is the 'G' protocol?
  1113.  
  1114. The 'G' protocol is used by SVR4 UUCP.  It is identical to the 'g'
  1115. protocol, except that it is possible to modify the window and packet
  1116. sizes.  The SVR4 implementation of the 'g' protocol reportedly is
  1117. fixed at a packet size of 64 and a window size of 7.  Supposedly SVR4
  1118. chose to implement a new protocol using a new letter to avoid any
  1119. potential incompatibilities when using different packet or window
  1120. sizes.
  1121.  
  1122. Most implementations of the 'g' protocol that accept packets larger
  1123. than 64 bytes will also accept packets smaller than whatever they
  1124. requested in the INITB packet.  The SVR4 'G' implementation is an
  1125. exception; it will only accept packets of precisely the size it
  1126. requests in the INITB packet.
  1127.  
  1128. ------------------------------
  1129.  
  1130. From: UUCP-x
  1131. Subject: What is the 'x' protocol?
  1132.  
  1133. I believe that the 'x' protocol was intended for use over X.25 virtual
  1134. circuits.  It relies on a write of zero bytes being read as zero bytes
  1135. without stopping communication.  I have heard that it does not work
  1136. correctly, and it is not clear to me that it was ever actually used.
  1137. Please correct me if I am wrong.
  1138.  
  1139. ------------------------------
  1140.  
  1141. From: UUCP-d
  1142. Subject: What is the 'd' protocol?
  1143.  
  1144. This is apparently used for DataKit muxhost (not RS-232) connections.
  1145. No file size is sent.  When a file has been completely transferred, a
  1146. write of zero bytes is done; this must be read as zero bytes on the
  1147. other end.
  1148.  
  1149. ------------------------------
  1150.  
  1151. From: UUCP-h
  1152. Subject: What is the 'h' protocol?
  1153.  
  1154. This is apparently used in some places with HST modems.  It does no
  1155. error checking, and is not that different from the 't' protocol.  I
  1156. don't know the details.
  1157.  
  1158. ------------------------------
  1159.  
  1160. From: Thanks
  1161. Subject: Thanks
  1162.  
  1163. Besides the papers and information acknowledged at the top of this
  1164. article, the following people have contributed help, advice,
  1165. suggestions and information:
  1166.     Earle Ake 513-429-6500 <ake@Dayton.SAIC.COM>
  1167.     cambler@nike.calpoly.edu (Christopher J. Ambler)
  1168.     jhc@iscp.bellcore.com (Jonathan Clark)
  1169.     celit!billd@UCSD.EDU (Bill Davidson)
  1170.     Matthew Farwell <dylan@ibmpcug.co.uk>
  1171.     "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
  1172.     "David J. MacKenzie" <djm@eng.umd.edu>
  1173.     david nugent <david@csource.oz.au>
  1174.     Stephen.Page@prg.oxford.ac.uk
  1175.     joey@tessi.UUCP (Joey Pruett)
  1176.     James Revell <revell@uunet.uu.net>
  1177.     Larry Rosenman <ler@lerami.lerctr.org>
  1178.     Rich Salz <rsalz@bbn.com>
  1179.     kls@ditka.Chicago.COM (Karl Swartz)
  1180.     Dima Volodin <dvv@hq.demos.su>
  1181.     jon@console.ais.org (Jon Zeeff)
  1182.  
  1183. ------------------------------
  1184.  
  1185. End of UUCP Internals Frequently Asked Questions
  1186. ******************************
  1187. -- 
  1188. Ian Lance Taylor                ian@airs.com                uunet!airs!ian
  1189. First person to identify this quote wins a free e-mail message:
  1190. ``I would prefer my life to contain more hours of pain, if that means
  1191.   that none of this pain is still to come.''
  1192.