home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 30 36 69 30 38 |Subject:| v06i08|
|00000010| 39 3a 20 20 53 75 6e 20 | 52 50 43 20 53 6f 75 72 |9: Sun |RPC Sour|
|00000020| 63 65 20 28 72 70 63 32 | 29 2c 20 50 61 72 74 30 |ce (rpc2|), Part0|
|00000030| 31 2f 31 31 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |1/11.New|sgroups:|
|00000040| 20 6d 6f 64 2e 73 6f 75 | 72 63 65 73 0a 41 70 70 | mod.sou|rces.App|
|00000050| 72 6f 76 65 64 3a 20 72 | 73 40 6d 69 72 72 6f 72 |roved: r|s@mirror|
|00000060| 2e 55 55 43 50 0a 0a 53 | 75 62 6d 69 74 74 65 64 |.UUCP..S|ubmitted|
|00000070| 20 62 79 3a 20 73 75 6e | 21 66 65 72 6e 65 21 6d | by: sun|!ferne!m|
|00000080| 61 72 6b 73 20 28 4d 61 | 72 6b 20 53 74 65 69 6e |arks (Ma|rk Stein|
|00000090| 29 0a 4d 6f 64 2e 73 6f | 75 72 63 65 73 3a 20 56 |).Mod.so|urces: V|
|000000a0| 6f 6c 75 6d 65 20 36 2c | 20 49 73 73 75 65 20 38 |olume 6,| Issue 8|
|000000b0| 39 0a 41 72 63 68 69 76 | 65 2d 6e 61 6d 65 3a 20 |9.Archiv|e-name: |
|000000c0| 72 70 63 32 2f 50 61 72 | 74 30 31 0a 0a 5b 20 20 |rpc2/Par|t01..[ |
|000000d0| 41 6c 6c 20 49 20 64 69 | 64 20 77 61 73 20 76 65 |All I di|d was ve|
|000000e0| 72 79 20 74 68 61 74 20 | 74 68 65 20 73 68 61 72 |ry that |the shar|
|000000f0| 20 66 69 6c 65 73 20 77 | 65 72 65 20 63 6f 6d 70 | files w|ere comp|
|00000100| 6c 65 74 65 2e 20 2d 2d | 72 24 20 20 5d 0a 0a 53 |lete. --|r$ ]..S|
|00000110| 75 6e 20 52 50 43 20 73 | 6f 75 72 63 65 20 28 70 |un RPC s|ource (p|
|00000120| 61 72 74 20 31 20 6f 66 | 20 31 31 29 2e 20 20 54 |art 1 of| 11). T|
|00000130| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 70 61 63 |his soft|ware pac|
|00000140| 6b 61 67 65 20 63 6f 6e | 74 61 69 6e 73 20 63 6f |kage con|tains co|
|00000150| 64 65 0a 61 6e 64 20 64 | 6f 63 75 6d 65 6e 74 61 |de.and d|ocumenta|
|00000160| 74 69 6f 6e 20 66 6f 72 | 20 52 65 76 69 73 69 6f |tion for| Revisio|
|00000170| 6e 20 33 2e 30 20 6f 66 | 20 74 68 65 20 53 75 6e |n 3.0 of| the Sun|
|00000180| 20 52 65 6d 6f 74 65 20 | 50 72 6f 63 65 64 75 72 | Remote |Procedur|
|00000190| 65 20 43 61 6c 6c 0a 6c | 69 62 72 61 72 79 2e 20 |e Call.l|ibrary. |
|000001a0| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 61 20 | In addi|tion, a |
|000001b0| 62 65 74 61 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |beta ver|sion of |
|000001c0| 74 68 65 20 58 44 52 2f | 52 50 43 20 70 72 6f 74 |the XDR/|RPC prot|
|000001d0| 6f 63 6f 6c 20 63 6f 6d | 70 69 6c 65 72 0a 69 73 |ocol com|piler.is|
|000001e0| 20 69 6e 63 6c 75 64 65 | 64 2e 20 20 43 6f 6d 6d | include|d. Comm|
|000001f0| 65 6e 74 73 20 61 62 6f | 75 74 20 74 68 69 73 20 |ents abo|ut this |
|00000200| 6c 61 74 65 73 74 20 72 | 65 6c 65 61 73 65 20 6d |latest r|elease m|
|00000210| 61 79 20 62 65 20 6d 61 | 69 6c 65 64 20 74 6f 0a |ay be ma|iled to.|
|00000220| 73 75 6e 21 72 70 63 20 | 6f 72 20 72 70 63 40 73 |sun!rpc |or rpc@s|
|00000230| 75 6e 2e 63 6f 6d 2e 0a | 0a 53 75 6e 20 52 50 43 |un.com..|.Sun RPC|
|00000240| 20 69 73 20 61 20 70 72 | 6f 64 75 63 74 20 6f 66 | is a pr|oduct of|
|00000250| 20 53 75 6e 20 4d 69 63 | 72 6f 73 79 73 74 65 6d | Sun Mic|rosystem|
|00000260| 73 2c 20 49 6e 63 2e 20 | 61 6e 64 20 69 73 20 70 |s, Inc. |and is p|
|00000270| 72 6f 76 69 64 65 64 20 | 66 6f 72 0a 75 6e 72 65 |rovided |for.unre|
|00000280| 73 74 72 69 63 74 65 64 | 20 75 73 65 20 70 72 6f |stricted| use pro|
|00000290| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 20 |vided th|at this |
|000002a0| 6c 65 67 65 6e 64 20 69 | 73 20 69 6e 63 6c 75 64 |legend i|s includ|
|000002b0| 65 64 20 6f 6e 20 61 6c | 6c 20 74 61 70 65 0a 6d |ed on al|l tape.m|
|000002c0| 65 64 69 61 20 61 6e 64 | 20 61 73 20 61 20 70 61 |edia and| as a pa|
|000002d0| 72 74 20 6f 66 20 74 68 | 65 20 73 6f 66 74 77 61 |rt of th|e softwa|
|000002e0| 72 65 20 70 72 6f 67 72 | 61 6d 20 69 6e 20 77 68 |re progr|am in wh|
|000002f0| 6f 6c 65 20 6f 72 20 70 | 61 72 74 2e 20 20 55 73 |ole or p|art. Us|
|00000300| 65 72 73 0a 6d 61 79 20 | 63 6f 70 79 20 6f 72 20 |ers.may |copy or |
|00000310| 6d 6f 64 69 66 79 20 53 | 75 6e 20 52 50 43 20 77 |modify S|un RPC w|
|00000320| 69 74 68 6f 75 74 20 63 | 68 61 72 67 65 2c 20 62 |ithout c|harge, b|
|00000330| 75 74 20 61 72 65 20 6e | 6f 74 20 61 75 74 68 6f |ut are n|ot autho|
|00000340| 72 69 7a 65 64 20 74 6f | 0a 6c 69 63 65 6e 73 65 |rized to|.license|
|00000350| 20 6f 72 20 64 69 73 74 | 72 69 62 75 74 65 20 69 | or dist|ribute i|
|00000360| 74 20 74 6f 20 61 6e 79 | 6f 6e 65 20 65 6c 73 65 |t to any|one else|
|00000370| 20 65 78 63 65 70 74 20 | 61 73 20 70 61 72 74 20 | except |as part |
|00000380| 6f 66 20 61 20 70 72 6f | 64 75 63 74 20 6f 72 0a |of a pro|duct or.|
|00000390| 70 72 6f 67 72 61 6d 20 | 64 65 76 65 6c 6f 70 65 |program |develope|
|000003a0| 64 20 62 79 20 74 68 65 | 20 75 73 65 72 2e 0a 0a |d by the| user...|
|000003b0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000003c0| 2d 20 43 20 55 20 54 20 | 2d 20 48 20 45 20 52 20 |- C U T |- H E R |
|000003d0| 45 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |E - - - |- - - - |
|000003e0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000003f0| 2d 20 2d 20 2d 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |- - -.#!| /bin/sh|
|00000400| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000410| 6c 6c 20 61 72 63 68 69 | 76 65 2c 20 6d 65 61 6e |ll archi|ve, mean|
|00000420| 69 6e 67 3a 0a 23 20 31 | 2e 20 52 65 6d 6f 76 65 |ing:.# 1|. Remove|
|00000430| 20 65 76 65 72 79 74 68 | 69 6e 67 20 61 62 6f 76 | everyth|ing abov|
|00000440| 65 20 74 68 65 20 23 21 | 20 2f 62 69 6e 2f 73 68 |e the #!| /bin/sh|
|00000450| 20 6c 69 6e 65 2e 0a 23 | 20 32 2e 20 53 61 76 65 | line..#| 2. Save|
|00000460| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 74 | the res|ulting t|
|00000470| 65 78 74 20 69 6e 20 61 | 20 66 69 6c 65 2e 0a 23 |ext in a| file..#|
|00000480| 20 33 2e 20 45 78 65 63 | 75 74 65 20 74 68 65 20 | 3. Exec|ute the |
|00000490| 66 69 6c 65 20 77 69 74 | 68 20 2f 62 69 6e 2f 73 |file wit|h /bin/s|
|000004a0| 68 20 28 6e 6f 74 20 63 | 73 68 29 20 74 6f 20 63 |h (not c|sh) to c|
|000004b0| 72 65 61 74 65 3a 0a 23 | 09 72 70 63 2f 52 45 41 |reate:.#|.rpc/REA|
|000004c0| 44 4d 45 0a 23 09 72 70 | 63 2f 46 69 6c 65 73 0a |DME.#.rp|c/Files.|
|000004d0| 23 09 72 70 63 2f 64 6f | 63 2f 52 45 41 44 4d 45 |#.rpc/do|c/README|
|000004e0| 0a 23 09 72 70 63 2f 64 | 6f 63 2f 72 70 63 2e 73 |.#.rpc/d|oc/rpc.s|
|000004f0| 70 65 63 0a 23 09 72 70 | 63 2f 64 6f 63 2f 72 75 |pec.#.rp|c/doc/ru|
|00000500| 6e 6f 66 66 0a 23 09 72 | 70 63 2f 64 6f 63 2f 72 |noff.#.r|pc/doc/r|
|00000510| 75 6e 6f 66 66 2e 74 72 | 6f 66 66 0a 23 09 72 70 |unoff.tr|off.#.rp|
|00000520| 63 2f 64 6f 63 2f 73 75 | 6e 68 65 61 64 2e 6d 73 |c/doc/su|nhead.ms|
|00000530| 0a 23 09 72 70 63 2f 74 | 6f 6f 6c 73 2f 72 70 63 |.#.rpc/t|ools/rpc|
|00000540| 69 6e 66 6f 2e 38 0a 23 | 09 72 70 63 2f 74 6f 6f |info.8.#|.rpc/too|
|00000550| 6c 73 2f 72 70 63 69 6e | 66 6f 2e 63 0a 23 09 72 |ls/rpcin|fo.c.#.r|
|00000560| 70 63 2f 74 6f 79 73 2f | 4d 61 6b 65 66 69 6c 65 |pc/toys/|Makefile|
|00000570| 0a 23 09 72 70 63 2f 74 | 6f 79 73 2f 73 6f 72 74 |.#.rpc/t|oys/sort|
|00000580| 5f 70 72 6f 74 2e 63 0a | 23 09 72 70 63 2f 74 6f |_prot.c.|#.rpc/to|
|00000590| 79 73 2f 73 6f 72 74 5f | 70 72 6f 74 2e 68 0a 23 |ys/sort_|prot.h.#|
|000005a0| 09 72 70 63 2f 74 6f 79 | 73 2f 73 6f 72 74 5f 73 |.rpc/toy|s/sort_s|
|000005b0| 65 72 76 69 63 65 2e 63 | 0a 23 09 72 70 63 2f 74 |ervice.c|.#.rpc/t|
|000005c0| 6f 79 73 2f 73 6f 72 74 | 69 74 2e 63 0a 23 09 72 |oys/sort|it.c.#.r|
|000005d0| 70 63 2f 72 70 63 6c 69 | 62 2f 4d 61 6b 65 66 69 |pc/rpcli|b/Makefi|
|000005e0| 6c 65 0a 23 20 54 68 69 | 73 20 61 72 63 68 69 76 |le.# Thi|s archiv|
|000005f0| 65 20 63 72 65 61 74 65 | 64 3a 20 4d 6f 6e 20 4a |e create|d: Mon J|
|00000600| 75 6c 20 31 34 20 31 36 | 3a 35 34 3a 34 39 20 31 |ul 14 16|:54:49 1|
|00000610| 39 38 36 0a 65 78 70 6f | 72 74 20 50 41 54 48 3b |986.expo|rt PATH;|
|00000620| 20 50 41 54 48 3d 2f 62 | 69 6e 3a 2f 75 73 72 2f | PATH=/b|in:/usr/|
|00000630| 62 69 6e 3a 24 50 41 54 | 48 0a 66 6f 72 20 64 20 |bin:$PAT|H.for d |
|00000640| 69 6e 20 72 70 63 20 72 | 70 63 2f 64 6f 63 20 72 |in rpc r|pc/doc r|
|00000650| 70 63 2f 72 70 63 6c 69 | 62 20 72 70 63 2f 74 6f |pc/rpcli|b rpc/to|
|00000660| 6f 6c 73 20 72 70 63 2f | 74 6f 79 73 20 72 70 63 |ols rpc/|toys rpc|
|00000670| 2f 72 70 63 6c 69 62 2f | 70 72 6f 66 69 6c 65 64 |/rpclib/|profiled|
|00000680| 20 72 70 63 2f 72 70 63 | 67 65 6e 20 72 70 63 2f | rpc/rpc|gen rpc/|
|00000690| 72 70 63 67 65 6e 2f 74 | 65 73 74 0a 64 6f 0a 09 |rpcgen/t|est.do..|
|000006a0| 69 66 20 74 65 73 74 20 | 21 20 2d 64 20 24 64 0a |if test |! -d $d.|
|000006b0| 09 74 68 65 6e 0a 09 09 | 65 63 68 6f 20 22 73 68 |.then...|echo "sh|
|000006c0| 61 72 3a 20 4d 61 6b 69 | 6e 67 20 64 69 72 65 63 |ar: Maki|ng direc|
|000006d0| 74 6f 72 79 20 24 64 22 | 0a 09 09 6d 6b 64 69 72 |tory $d"|...mkdir|
|000006e0| 20 24 64 0a 09 09 63 68 | 6d 6f 64 20 37 35 35 20 | $d...ch|mod 755 |
|000006f0| 24 64 0a 09 66 69 0a 64 | 6f 6e 65 0a 65 63 68 6f |$d..fi.d|one.echo|
|00000700| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00000710| 6e 67 20 27 72 70 63 2f | 52 45 41 44 4d 45 27 22 |ng 'rpc/|README'"|
|00000720| 20 27 28 31 35 35 35 20 | 63 68 61 72 61 63 74 65 | '(1555 |characte|
|00000730| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000740| 27 72 70 63 2f 52 45 41 | 44 4d 45 27 0a 74 68 65 |'rpc/REA|DME'.the|
|00000750| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|00000760| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00000770| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00000780| 20 27 72 70 63 2f 52 45 | 41 44 4d 45 27 22 0a 65 | 'rpc/RE|ADME'".e|
|00000790| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|000007a0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000007b0| 27 72 70 63 2f 52 45 41 | 44 4d 45 27 0a 58 4a 75 |'rpc/REA|DME'.XJu|
|000007c0| 6c 79 20 31 34 2c 20 31 | 39 38 36 0a 58 0a 58 54 |ly 14, 1|986.X.XT|
|000007d0| 68 69 73 20 64 69 72 65 | 63 74 6f 72 79 20 63 6f |his dire|ctory co|
|000007e0| 6e 74 61 69 6e 73 20 74 | 68 65 20 70 75 62 6c 69 |ntains t|he publi|
|000007f0| 63 20 64 6f 6d 61 69 6e | 20 53 75 6e 20 72 70 63 |c domain| Sun rpc|
|00000800| 2f 78 64 72 20 63 6f 64 | 65 2e 20 20 54 68 65 72 |/xdr cod|e. Ther|
|00000810| 65 0a 58 61 72 65 20 73 | 65 76 65 72 61 6c 20 73 |e.Xare s|everal s|
|00000820| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 3a 0a 58 |ubdirect|ories:.X|
|00000830| 0a 58 09 64 6f 63 09 52 | 70 63 2f 78 64 72 20 64 |.X.doc.R|pc/xdr d|
|00000840| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 69 6e 20 |ocumenta|tion in |
|00000850| 2e 6d 73 20 66 6f 72 6d | 61 74 2e 20 20 53 65 65 |.ms form|at. See|
|00000860| 20 64 6f 63 2f 52 45 41 | 44 4d 45 0a 58 09 09 66 | doc/REA|DME.X..f|
|00000870| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|00000880| 69 6f 6e 2e 0a 58 0a 58 | 09 72 70 63 6c 69 62 09 |ion..X.X|.rpclib.|
|00000890| 54 68 65 20 72 70 63 2f | 78 64 72 20 6c 69 62 72 |The rpc/|xdr libr|
|000008a0| 61 72 79 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2e |ary sour|ce code.|
|000008b0| 20 20 41 74 20 53 75 6e | 2c 20 52 50 43 20 69 73 | At Sun|, RPC is|
|000008c0| 20 70 61 72 74 0a 58 09 | 09 6f 66 20 74 68 65 20 | part.X.|.of the |
|000008d0| 43 20 6c 69 62 72 61 72 | 79 20 28 6c 69 62 63 2e |C librar|y (libc.|
|000008e0| 61 29 2e 20 20 54 68 69 | 73 20 6d 61 6b 65 66 69 |a). Thi|s makefi|
|000008f0| 6c 65 20 77 69 6c 6c 20 | 6d 61 6b 65 20 61 0a 58 |le will |make a.X|
|00000900| 09 09 6c 69 62 72 61 72 | 79 20 63 61 6c 6c 65 64 |..librar|y called|
|00000910| 20 72 70 63 6c 69 62 2e | 0a 58 0a 58 09 74 6f 6f | rpclib.|.X.X.too|
|00000920| 6c 73 09 54 77 6f 20 73 | 6f 75 72 63 65 20 66 69 |ls.Two s|ource fi|
|00000930| 6c 65 73 20 61 6e 64 20 | 74 68 65 69 72 20 6d 61 |les and |their ma|
|00000940| 6e 75 61 6c 20 70 61 67 | 65 73 2e 0a 58 0a 58 09 |nual pag|es..X.X.|
|00000950| 09 70 6f 72 74 6d 61 70 | 2e 63 20 69 73 20 74 68 |.portmap|.c is th|
|00000960| 65 20 73 6f 75 72 63 65 | 20 74 6f 20 2f 65 74 63 |e source| to /etc|
|00000970| 2f 70 6f 72 74 6d 61 70 | 2c 20 74 68 65 20 72 70 |/portmap|, the rp|
|00000980| 63 0a 58 09 09 64 61 65 | 6d 6f 6e 20 77 68 69 63 |c.X..dae|mon whic|
|00000990| 68 20 6d 75 73 74 20 62 | 65 20 73 74 61 72 74 65 |h must b|e starte|
|000009a0| 64 20 62 79 20 72 6f 6f | 74 20 62 65 66 6f 72 65 |d by roo|t before|
|000009b0| 20 61 6e 79 20 6f 74 68 | 65 72 0a 58 09 09 72 70 | any oth|er.X..rp|
|000009c0| 63 20 73 65 72 76 65 72 | 73 20 6f 72 20 63 6c 69 |c server|s or cli|
|000009d0| 65 6e 74 73 2e 0a 58 0a | 58 09 09 72 70 63 69 6e |ents..X.|X..rpcin|
|000009e0| 66 6f 2e 63 20 64 75 6d | 70 73 20 74 68 65 20 69 |fo.c dum|ps the i|
|000009f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 68 61 74 20 |nformati|on that |
|00000a00| 70 6f 72 74 6d 61 70 20 | 6b 65 65 70 73 2e 0a 58 |portmap |keeps..X|
|00000a10| 09 09 41 74 20 53 75 6e | 2c 20 69 74 20 6c 69 76 |..At Sun|, it liv|
|00000a20| 65 73 20 69 6e 20 2f 75 | 73 72 2f 65 74 63 2f 72 |es in /u|sr/etc/r|
|00000a30| 70 63 69 6e 66 6f 2e 0a | 58 0a 58 09 09 42 6f 74 |pcinfo..|X.X..Bot|
|00000a40| 68 20 73 6f 75 72 63 65 | 20 66 69 6c 65 73 20 61 |h source| files a|
|00000a50| 73 73 75 6d 65 20 74 68 | 65 20 74 68 65 20 72 70 |ssume th|e the rp|
|00000a60| 63 20 64 6f 74 2d 68 20 | 66 69 6c 65 73 0a 58 09 |c dot-h |files.X.|
|00000a70| 09 68 61 76 65 20 62 65 | 65 6e 20 69 6e 73 74 61 |.have be|en insta|
|00000a80| 6c 6c 65 64 20 69 6e 20 | 2f 75 73 72 2f 69 6e 63 |lled in |/usr/inc|
|00000a90| 6c 75 64 65 2e 0a 58 0a | 58 09 74 6f 79 73 09 53 |lude..X.|X.toys.S|
|00000aa0| 6f 75 72 63 65 20 74 6f | 20 61 20 74 6f 79 20 73 |ource to| a toy s|
|00000ab0| 6f 72 74 20 73 65 72 76 | 69 63 65 20 77 68 69 63 |ort serv|ice whic|
|00000ac0| 68 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |h can be| used to|
|00000ad0| 20 74 65 73 74 0a 58 09 | 09 6f 75 74 20 74 68 65 | test.X.|.out the|
|00000ae0| 20 72 70 63 2f 78 64 72 | 20 6c 69 62 72 61 72 79 | rpc/xdr| library|
|00000af0| 2e 0a 58 0a 58 09 72 70 | 63 67 65 6e 09 54 68 65 |..X.X.rp|cgen.The|
|00000b00| 20 52 50 43 20 70 72 6f | 74 6f 63 6f 6c 20 63 6f | RPC pro|tocol co|
|00000b10| 6d 70 69 6c 65 72 2e 20 | 20 53 65 65 20 74 68 65 |mpiler. | See the|
|00000b20| 20 52 45 41 44 4d 45 20 | 66 69 6c 65 2e 0a 58 0a | README |file..X.|
|00000b30| 58 0a 58 54 68 65 20 72 | 70 63 2f 78 64 72 20 6c |X.XThe r|pc/xdr l|
|00000b40| 69 62 72 61 72 79 20 77 | 61 73 20 62 75 69 6c 74 |ibrary w|as built|
|00000b50| 20 77 69 74 68 20 61 20 | 70 6f 73 74 2d 31 2e 31 | with a |post-1.1|
|00000b60| 20 53 75 6e 20 72 65 6c | 65 61 73 65 20 6f 66 20 | Sun rel|ease of |
|00000b70| 74 68 65 0a 58 63 6f 6d | 70 69 6c 65 72 2e 20 20 |the.Xcom|piler. |
|00000b80| 4f 6c 64 20 63 6f 6d 70 | 69 6c 65 72 73 20 63 6f |Old comp|ilers co|
|00000b90| 6d 70 6c 61 69 6e 20 61 | 62 6f 75 74 20 76 61 6c |mplain a|bout val|
|00000ba0| 69 64 20 43 2e 20 20 59 | 6f 75 20 63 61 6e 20 6d |id C. Y|ou can m|
|00000bb0| 61 6b 65 20 6f 6c 64 0a | 58 63 6f 6d 70 69 6c 65 |ake old.|Xcompile|
|00000bc0| 72 73 20 68 61 70 70 79 | 20 62 79 20 63 68 61 6e |rs happy| by chan|
|00000bd0| 67 69 6e 67 20 73 6f 6d | 65 20 76 6f 69 64 73 20 |ging som|e voids |
|00000be0| 74 6f 20 69 6e 74 73 2e | 20 20 48 6f 77 65 76 65 |to ints.| Howeve|
|00000bf0| 72 2c 20 74 68 65 20 66 | 69 78 20 74 6f 0a 58 74 |r, the f|ix to.Xt|
|00000c00| 68 65 20 34 2e 32 20 56 | 41 58 20 63 6f 6d 70 69 |he 4.2 V|AX compi|
|00000c10| 6c 65 72 20 69 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |ler is a|s follow|
|00000c20| 73 3a 0a 58 0a 58 74 72 | 65 65 73 2e 63 3a 0a 58 |s:.X.Xtr|ees.c:.X|
|00000c30| 0a 58 72 65 6d 6f 76 65 | 64 20 73 70 75 72 69 6f |.Xremove|d spurio|
|00000c40| 75 73 20 74 79 70 65 20 | 6d 69 73 6d 61 74 63 68 |us type |mismatch|
|00000c50| 20 65 72 72 6f 72 73 20 | 69 6e 20 65 78 70 72 65 | errors |in expre|
|00000c60| 73 73 69 6f 6e 73 20 69 | 6e 76 6f 6c 76 69 6e 67 |ssions i|nvolving|
|00000c70| 0a 58 70 6f 69 6e 74 65 | 72 73 20 74 6f 20 76 6f |.Xpointe|rs to vo|
|00000c80| 69 64 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 65 2e |id funct|ions, e.|
|00000c90| 67 2e 2c 20 76 6f 69 64 | 20 66 6f 6f 28 29 7b 2e |g., void| foo(){.|
|00000ca0| 2e 2e 7d 20 76 6f 69 64 | 20 28 2a 66 29 28 29 20 |..} void| (*f)() |
|00000cb0| 3d 20 66 6f 6f 3b 0a 58 | 0a 58 31 32 35 30 63 31 |= foo;.X|.X1250c1|
|00000cc0| 32 36 34 2c 31 32 36 36 | 0a 58 3c 20 09 09 65 6c |264,1266|.X< ..el|
|00000cd0| 73 65 20 69 66 28 20 6d | 74 31 32 20 3d 3d 20 30 |se if( m|t12 == 0|
|00000ce0| 20 29 20 62 72 65 61 6b | 3b 0a 58 2d 2d 2d 0a 58 | ) break|;.X---.X|
|00000cf0| 3e 20 09 09 2f 2a 20 69 | 66 20 72 69 67 68 74 20 |> ../* i|f right |
|00000d00| 69 73 20 54 56 4f 49 44 | 20 61 6e 64 20 6c 6f 6f |is TVOID| and loo|
|00000d10| 6b 73 20 6c 69 6b 65 20 | 61 20 43 41 4c 4c 2c 20 |ks like |a CALL, |
|00000d20| 69 73 20 6e 6f 74 20 6f | 6b 20 2a 2f 0a 58 3e 20 |is not o|k */.X> |
|00000d30| 09 09 65 6c 73 65 20 69 | 66 20 28 6d 74 32 20 3d |..else i|f (mt2 =|
|00000d40| 3d 20 30 20 26 26 20 28 | 70 2d 3e 69 6e 2e 72 69 |= 0 && (|p->in.ri|
|00000d50| 67 68 74 2d 3e 69 6e 2e | 6f 70 20 3d 3d 20 43 41 |ght->in.|op == CA|
|00000d60| 4c 4c 20 7c 7c 20 70 2d | 3e 69 6e 2e 72 69 67 68 |LL || p-|>in.righ|
|00000d70| 74 2d 3e 69 6e 2e 6f 70 | 20 3d 3d 20 55 4e 41 52 |t->in.op| == UNAR|
|00000d80| 59 20 43 41 4c 4c 29 29 | 0a 58 3e 20 09 09 09 62 |Y CALL))|.X> ...b|
|00000d90| 72 65 61 6b 3b 0a 58 0a | 58 0a 58 4e 65 74 77 6f |reak;.X.|X.XNetwo|
|00000da0| 72 6b 20 53 65 72 76 69 | 63 65 73 20 43 6f 6e 73 |rk Servi|ces Cons|
|00000db0| 75 6c 74 69 6e 67 0a 58 | 4d 53 20 32 2d 33 33 0a |ulting.X|MS 2-33.|
|00000dc0| 58 53 75 6e 20 4d 69 63 | 72 6f 73 79 73 74 65 6d |XSun Mic|rosystem|
|00000dd0| 73 2c 20 49 6e 63 0a 58 | 32 35 35 30 20 47 61 72 |s, Inc.X|2550 Gar|
|00000de0| 63 69 61 20 41 76 65 6e | 75 65 0a 58 4d 6f 75 6e |cia Aven|ue.XMoun|
|00000df0| 74 61 69 6e 20 56 69 65 | 77 2c 20 43 41 20 20 39 |tain Vie|w, CA 9|
|00000e00| 34 30 34 33 0a 53 48 41 | 52 5f 45 4f 46 0a 69 66 |4043.SHA|R_EOF.if|
|00000e10| 20 74 65 73 74 20 31 35 | 35 35 20 2d 6e 65 20 22 | test 15|55 -ne "|
|00000e20| 60 77 63 20 2d 63 20 3c | 20 27 72 70 63 2f 52 45 |`wc -c <| 'rpc/RE|
|00000e30| 41 44 4d 45 27 60 22 0a | 74 68 65 6e 0a 09 65 63 |ADME'`".|then..ec|
|00000e40| 68 6f 20 73 68 61 72 3a | 20 22 65 72 72 6f 72 20 |ho shar:| "error |
|00000e50| 74 72 61 6e 73 6d 69 74 | 74 69 6e 67 20 27 72 70 |transmit|ting 'rp|
|00000e60| 63 2f 52 45 41 44 4d 45 | 27 22 20 27 28 73 68 6f |c/README|'" '(sho|
|00000e70| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 31 35 |uld have| been 15|
|00000e80| 35 35 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |55 chara|cters)'.|
|00000e90| 66 69 0a 63 68 6d 6f 64 | 20 36 34 34 20 27 72 70 |fi.chmod| 644 'rp|
|00000ea0| 63 2f 52 45 41 44 4d 45 | 27 0a 66 69 0a 65 63 68 |c/README|'.fi.ech|
|00000eb0| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00000ec0| 69 6e 67 20 27 72 70 63 | 2f 46 69 6c 65 73 27 22 |ing 'rpc|/Files'"|
|00000ed0| 20 27 28 31 36 38 38 20 | 63 68 61 72 61 63 74 65 | '(1688 |characte|
|00000ee0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000ef0| 27 72 70 63 2f 46 69 6c | 65 73 27 0a 74 68 65 6e |'rpc/Fil|es'.then|
|00000f00| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|00000f10| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00000f20| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00000f30| 27 72 70 63 2f 46 69 6c | 65 73 27 22 0a 65 6c 73 |'rpc/Fil|es'".els|
|00000f40| 65 0a 73 65 64 20 27 73 | 2f 5e 58 2f 2f 27 20 3c |e.sed 's|/^X//' <|
|00000f50| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 72 |< \SHAR_|EOF > 'r|
|00000f60| 70 63 2f 46 69 6c 65 73 | 27 0a 58 72 70 63 2f 52 |pc/Files|'.Xrpc/R|
|00000f70| 45 41 44 4d 45 0a 58 72 | 70 63 2f 46 69 6c 65 73 |EADME.Xr|pc/Files|
|00000f80| 0a 58 0a 58 72 70 63 2f | 64 6f 63 2f 52 45 41 44 |.X.Xrpc/|doc/READ|
|00000f90| 4d 45 0a 58 72 70 63 2f | 64 6f 63 2f 72 70 63 2e |ME.Xrpc/|doc/rpc.|
|00000fa0| 73 70 65 63 0a 58 72 70 | 63 2f 64 6f 63 2f 72 70 |spec.Xrp|c/doc/rp|
|00000fb0| 63 2e 70 72 6f 67 2e 70 | 31 0a 58 72 70 63 2f 64 |c.prog.p|1.Xrpc/d|
|00000fc0| 6f 63 2f 72 70 63 2e 70 | 72 6f 67 2e 70 32 0a 58 |oc/rpc.p|rog.p2.X|
|00000fd0| 72 70 63 2f 64 6f 63 2f | 78 64 72 2e 73 70 65 63 |rpc/doc/|xdr.spec|
|00000fe0| 2e 70 32 0a 58 72 70 63 | 2f 64 6f 63 2f 78 64 72 |.p2.Xrpc|/doc/xdr|
|00000ff0| 2e 73 70 65 63 2e 70 31 | 0a 58 72 70 63 2f 64 6f |.spec.p1|.Xrpc/do|
|00001000| 63 2f 72 75 6e 6f 66 66 | 0a 58 72 70 63 2f 64 6f |c/runoff|.Xrpc/do|
|00001010| 63 2f 72 75 6e 6f 66 66 | 2e 74 72 6f 66 66 0a 58 |c/runoff|.troff.X|
|00001020| 72 70 63 2f 64 6f 63 2f | 73 75 6e 68 65 61 64 2e |rpc/doc/|sunhead.|
|00001030| 6d 73 0a 58 0a 58 72 70 | 63 2f 74 6f 6f 6c 73 2f |ms.X.Xrp|c/tools/|
|00001040| 72 70 63 69 6e 66 6f 2e | 38 0a 58 72 70 63 2f 74 |rpcinfo.|8.Xrpc/t|
|00001050| 6f 6f 6c 73 2f 72 70 63 | 69 6e 66 6f 2e 63 0a 58 |ools/rpc|info.c.X|
|00001060| 72 70 63 2f 74 6f 6f 6c | 73 2f 70 6f 72 74 6d 61 |rpc/tool|s/portma|
|00001070| 70 2e 38 63 0a 58 72 70 | 63 2f 74 6f 6f 6c 73 2f |p.8c.Xrp|c/tools/|
|00001080| 70 6f 72 74 6d 61 70 2e | 63 0a 58 0a 58 72 70 63 |portmap.|c.X.Xrpc|
|00001090| 2f 74 6f 79 73 2f 4d 61 | 6b 65 66 69 6c 65 0a 58 |/toys/Ma|kefile.X|
|000010a0| 72 70 63 2f 74 6f 79 73 | 2f 73 6f 72 74 5f 70 72 |rpc/toys|/sort_pr|
|000010b0| 6f 74 2e 63 0a 58 72 70 | 63 2f 74 6f 79 73 2f 73 |ot.c.Xrp|c/toys/s|
|000010c0| 6f 72 74 5f 70 72 6f 74 | 2e 68 0a 58 72 70 63 2f |ort_prot|.h.Xrpc/|
|000010d0| 74 6f 79 73 2f 73 6f 72 | 74 5f 73 65 72 76 69 63 |toys/sor|t_servic|
|000010e0| 65 2e 63 0a 58 72 70 63 | 2f 74 6f 79 73 2f 73 6f |e.c.Xrpc|/toys/so|
|000010f0| 72 74 69 74 2e 63 0a 58 | 0a 58 72 70 63 2f 72 70 |rtit.c.X|.Xrpc/rp|
|00001100| 63 6c 69 62 2f 4d 61 6b | 65 66 69 6c 65 0a 58 72 |clib/Mak|efile.Xr|
|00001110| 70 63 2f 72 70 63 6c 69 | 62 2f 70 72 6f 66 69 6c |pc/rpcli|b/profil|
|00001120| 65 64 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 61 |ed.Xrpc/|rpclib/a|
|00001130| 75 74 68 2e 68 0a 58 72 | 70 63 2f 72 70 63 6c 69 |uth.h.Xr|pc/rpcli|
|00001140| 62 2f 61 75 74 68 5f 75 | 6e 69 78 2e 68 0a 58 72 |b/auth_u|nix.h.Xr|
|00001150| 70 63 2f 72 70 63 6c 69 | 62 2f 63 6c 6e 74 2e 68 |pc/rpcli|b/clnt.h|
|00001160| 0a 58 72 70 63 2f 72 70 | 63 6c 69 62 2f 70 6d 61 |.Xrpc/rp|clib/pma|
|00001170| 70 5f 63 6c 6e 74 2e 68 | 0a 58 72 70 63 2f 72 70 |p_clnt.h|.Xrpc/rp|
|00001180| 63 6c 69 62 2f 70 6d 61 | 70 5f 70 72 6f 74 2e 68 |clib/pma|p_prot.h|
|00001190| 0a 58 72 70 63 2f 72 70 | 63 6c 69 62 2f 72 70 63 |.Xrpc/rp|clib/rpc|
|000011a0| 2e 68 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 72 |.h.Xrpc/|rpclib/r|
|000011b0| 70 63 5f 6d 73 67 2e 68 | 0a 58 72 70 63 2f 72 70 |pc_msg.h|.Xrpc/rp|
|000011c0| 63 6c 69 62 2f 73 76 63 | 2e 68 0a 58 72 70 63 2f |clib/svc|.h.Xrpc/|
|000011d0| 72 70 63 6c 69 62 2f 73 | 76 63 5f 61 75 74 68 2e |rpclib/s|vc_auth.|
|000011e0| 68 0a 58 72 70 63 2f 72 | 70 63 6c 69 62 2f 74 79 |h.Xrpc/r|pclib/ty|
|000011f0| 70 65 73 2e 68 0a 58 72 | 70 63 2f 72 70 63 6c 69 |pes.h.Xr|pc/rpcli|
|00001200| 62 2f 78 64 72 2e 68 0a | 58 72 70 63 2f 72 70 63 |b/xdr.h.|Xrpc/rpc|
|00001210| 6c 69 62 2f 61 75 74 68 | 5f 6e 6f 6e 65 2e 63 0a |lib/auth|_none.c.|
|00001220| 58 72 70 63 2f 72 70 63 | 6c 69 62 2f 61 75 74 68 |Xrpc/rpc|lib/auth|
|00001230| 5f 75 6e 69 78 2e 63 0a | 58 72 70 63 2f 72 70 63 |_unix.c.|Xrpc/rpc|
|00001240| 6c 69 62 2f 61 75 74 68 | 75 6e 69 78 5f 70 72 6f |lib/auth|unix_pro|
|00001250| 74 2e 63 0a 58 72 70 63 | 2f 72 70 63 6c 69 62 2f |t.c.Xrpc|/rpclib/|
|00001260| 63 6c 6e 74 5f 70 65 72 | 72 6f 72 2e 63 0a 58 72 |clnt_per|ror.c.Xr|
|00001270| 70 63 2f 72 70 63 6c 69 | 62 2f 63 6c 6e 74 5f 72 |pc/rpcli|b/clnt_r|
|00001280| 61 77 2e 63 0a 58 72 70 | 63 2f 72 70 63 6c 69 62 |aw.c.Xrp|c/rpclib|
|00001290| 2f 63 6c 6e 74 5f 73 69 | 6d 70 6c 65 2e 63 0a 58 |/clnt_si|mple.c.X|
|000012a0| 72 70 63 2f 72 70 63 6c | 69 62 2f 63 6c 6e 74 5f |rpc/rpcl|ib/clnt_|
|000012b0| 74 63 70 2e 63 0a 58 72 | 70 63 2f 72 70 63 6c 69 |tcp.c.Xr|pc/rpcli|
|000012c0| 62 2f 63 6c 6e 74 5f 75 | 64 70 2e 63 0a 58 72 70 |b/clnt_u|dp.c.Xrp|
|000012d0| 63 2f 72 70 63 6c 69 62 | 2f 70 6d 61 70 5f 63 6c |c/rpclib|/pmap_cl|
|000012e0| 6e 74 2e 63 0a 58 72 70 | 63 2f 72 70 63 6c 69 62 |nt.c.Xrp|c/rpclib|
|000012f0| 2f 70 6d 61 70 5f 67 65 | 74 6d 61 70 73 2e 63 0a |/pmap_ge|tmaps.c.|
|00001300| 58 72 70 63 2f 72 70 63 | 6c 69 62 2f 70 6d 61 70 |Xrpc/rpc|lib/pmap|
|00001310| 5f 67 65 74 70 6f 72 74 | 2e 63 0a 58 72 70 63 2f |_getport|.c.Xrpc/|
|00001320| 72 70 63 6c 69 62 2f 70 | 6d 61 70 5f 70 72 6f 74 |rpclib/p|map_prot|
|00001330| 2e 63 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 70 |.c.Xrpc/|rpclib/p|
|00001340| 6d 61 70 5f 72 6d 74 2e | 63 0a 58 72 70 63 2f 72 |map_rmt.|c.Xrpc/r|
|00001350| 70 63 6c 69 62 2f 72 70 | 63 5f 70 72 6f 74 2e 63 |pclib/rp|c_prot.c|
|00001360| 0a 58 72 70 63 2f 72 70 | 63 6c 69 62 2f 73 76 63 |.Xrpc/rp|clib/svc|
|00001370| 2e 63 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 73 |.c.Xrpc/|rpclib/s|
|00001380| 76 63 5f 61 75 74 68 2e | 63 0a 58 72 70 63 2f 72 |vc_auth.|c.Xrpc/r|
|00001390| 70 63 6c 69 62 2f 73 76 | 63 5f 61 75 74 68 5f 75 |pclib/sv|c_auth_u|
|000013a0| 6e 69 78 2e 63 0a 58 72 | 70 63 2f 72 70 63 6c 69 |nix.c.Xr|pc/rpcli|
|000013b0| 62 2f 73 76 63 5f 72 61 | 77 2e 63 0a 58 72 70 63 |b/svc_ra|w.c.Xrpc|
|000013c0| 2f 72 70 63 6c 69 62 2f | 73 76 63 5f 73 69 6d 70 |/rpclib/|svc_simp|
|000013d0| 6c 65 2e 63 0a 58 72 70 | 63 2f 72 70 63 6c 69 62 |le.c.Xrp|c/rpclib|
|000013e0| 2f 73 76 63 5f 74 63 70 | 2e 63 0a 58 72 70 63 2f |/svc_tcp|.c.Xrpc/|
|000013f0| 72 70 63 6c 69 62 2f 73 | 76 63 5f 75 64 70 2e 63 |rpclib/s|vc_udp.c|
|00001400| 0a 58 72 70 63 2f 72 70 | 63 6c 69 62 2f 78 64 72 |.Xrpc/rp|clib/xdr|
|00001410| 2e 63 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 78 |.c.Xrpc/|rpclib/x|
|00001420| 64 72 5f 61 72 72 61 79 | 2e 63 0a 58 72 70 63 2f |dr_array|.c.Xrpc/|
|00001430| 72 70 63 6c 69 62 2f 78 | 64 72 5f 66 6c 6f 61 74 |rpclib/x|dr_float|
|00001440| 2e 63 0a 58 72 70 63 2f | 72 70 63 6c 69 62 2f 78 |.c.Xrpc/|rpclib/x|
|00001450| 64 72 5f 6d 65 6d 2e 63 | 0a 58 72 70 63 2f 72 70 |dr_mem.c|.Xrpc/rp|
|00001460| 63 6c 69 62 2f 78 64 72 | 5f 72 65 63 2e 63 0a 58 |clib/xdr|_rec.c.X|
|00001470| 72 70 63 2f 72 70 63 6c | 69 62 2f 78 64 72 5f 72 |rpc/rpcl|ib/xdr_r|
|00001480| 65 66 65 72 65 6e 63 65 | 2e 63 0a 58 72 70 63 2f |eference|.c.Xrpc/|
|00001490| 72 70 63 6c 69 62 2f 78 | 64 72 5f 73 74 64 69 6f |rpclib/x|dr_stdio|
|000014a0| 2e 63 0a 58 0a 58 72 70 | 63 2f 72 70 63 67 65 6e |.c.X.Xrp|c/rpcgen|
|000014b0| 2f 4d 61 6b 65 66 69 6c | 65 0a 58 72 70 63 2f 72 |/Makefil|e.Xrpc/r|
|000014c0| 70 63 67 65 6e 2f 52 45 | 41 44 4d 45 0a 58 72 70 |pcgen/RE|ADME.Xrp|
|000014d0| 63 2f 72 70 63 67 65 6e | 2f 72 70 63 5f 63 6f 75 |c/rpcgen|/rpc_cou|
|000014e0| 74 2e 63 0a 58 72 70 63 | 2f 72 70 63 67 65 6e 2f |t.c.Xrpc|/rpcgen/|
|000014f0| 72 70 63 5f 68 6f 75 74 | 2e 63 0a 58 72 70 63 2f |rpc_hout|.c.Xrpc/|
|00001500| 72 70 63 67 65 6e 2f 72 | 70 63 5f 6d 61 69 6e 2e |rpcgen/r|pc_main.|
|00001510| 63 0a 58 72 70 63 2f 72 | 70 63 67 65 6e 2f 72 70 |c.Xrpc/r|pcgen/rp|
|00001520| 63 5f 70 61 72 73 65 2e | 63 0a 58 72 70 63 2f 72 |c_parse.|c.Xrpc/r|
|00001530| 70 63 67 65 6e 2f 72 70 | 63 5f 70 61 72 73 65 2e |pcgen/rp|c_parse.|
|00001540| 68 0a 58 72 70 63 2f 72 | 70 63 67 65 6e 2f 72 70 |h.Xrpc/r|pcgen/rp|
|00001550| 63 5f 73 63 61 6e 2e 63 | 0a 58 72 70 63 2f 72 70 |c_scan.c|.Xrpc/rp|
|00001560| 63 67 65 6e 2f 72 70 63 | 5f 73 63 61 6e 2e 68 0a |cgen/rpc|_scan.h.|
|00001570| 58 72 70 63 2f 72 70 63 | 67 65 6e 2f 72 70 63 5f |Xrpc/rpc|gen/rpc_|
|00001580| 73 76 63 6f 75 74 2e 63 | 0a 58 72 70 63 2f 72 70 |svcout.c|.Xrpc/rp|
|00001590| 63 67 65 6e 2f 72 70 63 | 5f 75 74 69 6c 2e 63 0a |cgen/rpc|_util.c.|
|000015a0| 58 72 70 63 2f 72 70 63 | 67 65 6e 2f 72 70 63 5f |Xrpc/rpc|gen/rpc_|
|000015b0| 75 74 69 6c 2e 68 0a 58 | 72 70 63 2f 72 70 63 67 |util.h.X|rpc/rpcg|
|000015c0| 65 6e 2f 72 70 63 67 65 | 6e 2e 31 0a 58 72 70 63 |en/rpcge|n.1.Xrpc|
|000015d0| 2f 72 70 63 67 65 6e 2f | 78 64 72 5f 75 70 64 61 |/rpcgen/|xdr_upda|
|000015e0| 74 65 2e 63 0a 58 0a 58 | 72 70 63 2f 72 70 63 67 |te.c.X.X|rpc/rpcg|
|000015f0| 65 6e 2f 74 65 73 74 2f | 4d 61 6b 65 66 69 6c 65 |en/test/|Makefile|
|00001600| 0a 58 72 70 63 2f 72 70 | 63 67 65 6e 2f 74 65 73 |.Xrpc/rp|cgen/tes|
|00001610| 74 2f 64 65 6d 6f 5f 63 | 6c 6e 74 2e 63 0a 58 72 |t/demo_c|lnt.c.Xr|
|00001620| 70 63 2f 72 70 63 67 65 | 6e 2f 74 65 73 74 2f 64 |pc/rpcge|n/test/d|
|00001630| 65 6d 6f 5f 70 72 6f 63 | 2e 63 0a 58 72 70 63 2f |emo_proc|.c.Xrpc/|
|00001640| 72 70 63 67 65 6e 2f 74 | 65 73 74 2f 64 65 6d 6f |rpcgen/t|est/demo|
|00001650| 5f 78 64 72 2e 78 0a 53 | 48 41 52 5f 45 4f 46 0a |_xdr.x.S|HAR_EOF.|
|00001660| 69 66 20 74 65 73 74 20 | 31 36 38 38 20 2d 6e 65 |if test |1688 -ne|
|00001670| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 72 70 63 2f | "`wc -c| < 'rpc/|
|00001680| 46 69 6c 65 73 27 60 22 | 0a 74 68 65 6e 0a 09 65 |Files'`"|.then..e|
|00001690| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 72 72 6f 72 |cho shar|: "error|
|000016a0| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 27 72 | transmi|tting 'r|
|000016b0| 70 63 2f 46 69 6c 65 73 | 27 22 20 27 28 73 68 6f |pc/Files|'" '(sho|
|000016c0| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 31 36 |uld have| been 16|
|000016d0| 38 38 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |88 chara|cters)'.|
|000016e0| 66 69 0a 63 68 6d 6f 64 | 20 36 36 34 20 27 72 70 |fi.chmod| 664 'rp|
|000016f0| 63 2f 46 69 6c 65 73 27 | 0a 66 69 0a 65 63 68 6f |c/Files'|.fi.echo|
|00001700| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00001710| 6e 67 20 27 72 70 63 2f | 64 6f 63 2f 52 45 41 44 |ng 'rpc/|doc/READ|
|00001720| 4d 45 27 22 20 27 28 33 | 34 31 20 63 68 61 72 61 |ME'" '(3|41 chara|
|00001730| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00001740| 2d 66 20 27 72 70 63 2f | 64 6f 63 2f 52 45 41 44 |-f 'rpc/|doc/READ|
|00001750| 4d 45 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |ME'.then|..echo s|
|00001760| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00001770| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001780| 6e 67 20 66 69 6c 65 20 | 27 72 70 63 2f 64 6f 63 |ng file |'rpc/doc|
|00001790| 2f 52 45 41 44 4d 45 27 | 22 0a 65 6c 73 65 0a 73 |/README'|".else.s|
|000017a0| 65 64 20 27 73 2f 5e 58 | 2f 2f 27 20 3c 3c 20 5c |ed 's/^X|//' << \|
|000017b0| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 72 70 63 2f |SHAR_EOF| > 'rpc/|
|000017c0| 64 6f 63 2f 52 45 41 44 | 4d 45 27 0a 58 54 68 69 |doc/READ|ME'.XThi|
|000017d0| 73 20 64 69 72 65 63 74 | 6f 72 79 20 63 6f 6e 74 |s direct|ory cont|
|000017e0| 61 69 6e 73 20 74 68 72 | 65 65 20 64 6f 63 75 6d |ains thr|ee docum|
|000017f0| 65 6e 74 73 20 6f 66 20 | 69 6e 74 65 72 65 73 74 |ents of |interest|
|00001800| 3a 0a 58 0a 58 09 72 70 | 63 2e 70 72 6f 67 3a 20 |:.X.X.rp|c.prog: |
|00001810| 52 50 43 20 50 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |RPC Prog|ramming |
|00001820| 47 75 69 64 65 0a 58 09 | 72 70 63 2e 73 70 65 63 |Guide.X.|rpc.spec|
|00001830| 3a 20 52 50 43 20 50 72 | 6f 74 6f 63 6f 6c 20 53 |: RPC Pr|otocol S|
|00001840| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 0a 58 09 78 |pecifica|tion.X.x|
|00001850| 64 72 2e 73 70 65 63 3a | 20 58 44 52 20 53 70 65 |dr.spec:| XDR Spe|
|00001860| 63 69 66 69 63 61 74 69 | 6f 6e 0a 58 0a 58 46 6f |cificati|on.X.XFo|
|00001870| 72 6d 61 74 74 69 6e 67 | 20 70 72 6f 63 65 64 75 |rmatting| procedu|
|00001880| 72 65 73 20 66 6f 72 20 | 6e 72 6f 66 66 20 61 72 |res for |nroff ar|
|00001890| 65 20 69 6e 20 74 68 65 | 20 73 68 65 6c 6c 20 73 |e in the| shell s|
|000018a0| 63 72 69 70 74 20 72 75 | 6e 6f 66 66 2e 0a 58 52 |cript ru|noff..XR|
|000018b0| 75 6e 6f 66 66 2e 74 72 | 6f 66 66 20 75 73 65 73 |unoff.tr|off uses|
|000018c0| 20 74 72 6f 66 66 2c 20 | 61 6e 64 20 61 73 73 75 | troff, |and assu|
|000018d0| 6d 65 73 20 79 6f 75 20 | 68 61 76 65 20 64 69 74 |mes you |have dit|
|000018e0| 72 6f 66 66 20 61 6e 64 | 20 70 69 63 2e 20 20 53 |roff and| pic. S|
|000018f0| 6f 6d 65 0a 58 65 78 74 | 65 6e 73 74 69 6f 6e 73 |ome.Xext|enstions|
|00001900| 20 74 6f 20 2d 6d 73 20 | 61 72 65 20 69 6e 20 74 | to -ms |are in t|
|00001910| 68 65 20 6d 61 63 72 6f | 20 66 69 6c 65 20 73 75 |he macro| file su|
|00001920| 6e 68 65 61 64 2e 6d 73 | 2e 0a 53 48 41 52 5f 45 |nhead.ms|..SHAR_E|
|00001930| 4f 46 0a 69 66 20 74 65 | 73 74 20 33 34 31 20 2d |OF.if te|st 341 -|
|00001940| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 72 70 |ne "`wc |-c < 'rp|
|00001950| 63 2f 64 6f 63 2f 52 45 | 41 44 4d 45 27 60 22 0a |c/doc/RE|ADME'`".|
|00001960| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001970| 20 22 65 72 72 6f 72 20 | 74 72 61 6e 73 6d 69 74 | "error |transmit|
|00001980| 74 69 6e 67 20 27 72 70 | 63 2f 64 6f 63 2f 52 45 |ting 'rp|c/doc/RE|
|00001990| 41 44 4d 45 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |ADME'" '|(should |
|000019a0| 68 61 76 65 20 62 65 65 | 6e 20 33 34 31 20 63 68 |have bee|n 341 ch|
|000019b0| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 63 68 |aracters|)'.fi.ch|
|000019c0| 6d 6f 64 20 34 34 34 20 | 27 72 70 63 2f 64 6f 63 |mod 444 |'rpc/doc|
|000019d0| 2f 52 45 41 44 4d 45 27 | 0a 66 69 0a 65 63 68 6f |/README'|.fi.echo|
|000019e0| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|000019f0| 6e 67 20 27 72 70 63 2f | 64 6f 63 2f 72 70 63 2e |ng 'rpc/|doc/rpc.|
|00001a00| 73 70 65 63 27 22 20 27 | 28 32 33 36 39 33 20 63 |spec'" '|(23693 c|
|00001a10| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00001a20| 65 73 74 20 2d 66 20 27 | 72 70 63 2f 64 6f 63 2f |est -f '|rpc/doc/|
|00001a30| 72 70 63 2e 73 70 65 63 | 27 0a 74 68 65 6e 0a 09 |rpc.spec|'.then..|
|00001a40| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00001a50| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00001a60| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 72 |existing| file 'r|
|00001a70| 70 63 2f 64 6f 63 2f 72 | 70 63 2e 73 70 65 63 27 |pc/doc/r|pc.spec'|
|00001a80| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00001a90| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|00001aa0| 20 3e 20 27 72 70 63 2f | 64 6f 63 2f 72 70 63 2e | > 'rpc/|doc/rpc.|
|00001ab0| 73 70 65 63 27 0a 58 2e | 50 4c 20 52 49 47 48 54 |spec'.X.|PL RIGHT|
|00001ac0| 0a 58 2e 54 4c 0a 58 52 | 65 6d 6f 74 65 20 50 72 |.X.TL.XR|emote Pr|
|00001ad0| 6f 63 65 64 75 72 65 20 | 43 61 6c 6c 0a 58 2e 62 |ocedure |Call.X.b|
|00001ae0| 72 0a 58 50 72 6f 74 6f | 63 6f 6c 20 53 70 65 63 |r.XProto|col Spec|
|00001af0| 69 66 69 63 61 74 69 6f | 6e 0a 58 2e 62 70 0a 58 |ificatio|n.X.bp.X|
|00001b00| 2e 4e 48 0a 58 49 6e 74 | 72 6f 64 75 63 74 69 6f |.NH.XInt|roductio|
|00001b10| 6e 0a 58 2e 4c 50 0a 58 | 54 68 69 73 20 64 6f 63 |n.X.LP.X|This doc|
|00001b20| 75 6d 65 6e 74 20 73 70 | 65 63 69 66 69 65 73 20 |ument sp|ecifies |
|00001b30| 61 20 6d 65 73 73 61 67 | 65 20 70 72 6f 74 6f 63 |a messag|e protoc|
|00001b40| 6f 6c 20 75 73 65 64 20 | 69 6e 20 69 6d 70 6c 65 |ol used |in imple|
|00001b50| 6d 65 6e 74 69 6e 67 0a | 58 53 75 6e 27 73 20 52 |menting.|XSun's R|
|00001b60| 65 6d 6f 74 65 20 50 72 | 6f 63 65 64 75 72 65 20 |emote Pr|ocedure |
|00001b70| 43 61 6c 6c 20 28 52 50 | 43 29 20 70 61 63 6b 61 |Call (RP|C) packa|
|00001b80| 67 65 2e 0a 58 54 68 65 | 20 6d 65 73 73 61 67 65 |ge..XThe| message|
|00001b90| 20 70 72 6f 74 6f 63 6f | 6c 20 69 73 20 73 70 65 | protoco|l is spe|
|00001ba0| 63 69 66 69 65 64 20 77 | 69 74 68 20 74 68 65 0a |cified w|ith the.|
|00001bb0| 58 65 58 74 65 72 6e 61 | 6c 20 44 61 74 61 20 52 |XeXterna|l Data R|
|00001bc0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 28 58 |epresent|ation (X|
|00001bd0| 44 52 29 20 6c 61 6e 67 | 75 61 67 65 2e 0a 58 2e |DR) lang|uage..X.|
|00001be0| 4c 50 0a 58 54 68 69 73 | 20 64 6f 63 75 6d 65 6e |LP.XThis| documen|
|00001bf0| 74 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 74 |t assume|s that t|
|00001c00| 68 65 20 72 65 61 64 65 | 72 20 69 73 20 66 61 6d |he reade|r is fam|
|00001c10| 69 6c 69 61 72 20 77 69 | 74 68 20 62 6f 74 68 20 |iliar wi|th both |
|00001c20| 52 50 43 20 61 6e 64 20 | 58 44 52 2e 0a 58 49 74 |RPC and |XDR..XIt|
|00001c30| 20 64 6f 65 73 20 6e 6f | 74 20 61 74 74 65 6d 70 | does no|t attemp|
|00001c40| 74 20 74 6f 20 6a 75 73 | 74 69 66 79 20 52 50 43 |t to jus|tify RPC|
|00001c50| 20 6f 72 20 69 74 73 20 | 75 73 65 73 2e 0a 58 41 | or its |uses..XA|
|00001c60| 6c 73 6f 2c 20 74 68 65 | 20 63 61 73 75 61 6c 20 |lso, the| casual |
|00001c70| 75 73 65 72 20 6f 66 20 | 52 50 43 20 64 6f 65 73 |user of |RPC does|
|00001c80| 20 6e 6f 74 20 6e 65 65 | 64 20 74 6f 20 62 65 0a | not nee|d to be.|
|00001c90| 58 66 61 6d 69 6c 69 61 | 72 20 77 69 74 68 20 74 |Xfamilia|r with t|
|00001ca0| 68 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |he infor|mation i|
|00001cb0| 6e 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 2e |n this d|ocument.|
|00001cc0| 0a 58 2e 4e 48 20 32 0a | 58 54 65 72 6d 69 6e 6f |.X.NH 2.|XTermino|
|00001cd0| 6c 6f 67 79 0a 58 2e 4c | 50 0a 58 54 68 65 20 64 |logy.X.L|P.XThe d|
|00001ce0| 6f 63 75 6d 65 6e 74 20 | 64 69 73 63 75 73 73 65 |ocument |discusse|
|00001cf0| 73 20 73 65 72 76 65 72 | 73 2c 20 73 65 72 76 69 |s server|s, servi|
|00001d00| 63 65 73 2c 0a 58 70 72 | 6f 67 72 61 6d 73 2c 20 |ces,.Xpr|ograms, |
|00001d10| 70 72 6f 63 65 64 75 72 | 65 73 2c 20 63 6c 69 65 |procedur|es, clie|
|00001d20| 6e 74 73 20 61 6e 64 20 | 76 65 72 73 69 6f 6e 73 |nts and |versions|
|00001d30| 2e 0a 58 41 20 73 65 72 | 76 65 72 20 69 73 20 61 |..XA ser|ver is a|
|00001d40| 20 6d 61 63 68 69 6e 65 | 20 77 68 65 72 65 20 73 | machine| where s|
|00001d50| 6f 6d 65 20 6e 75 6d 62 | 65 72 0a 58 6f 66 20 6e |ome numb|er.Xof n|
|00001d60| 65 74 77 6f 72 6b 20 73 | 65 72 76 69 63 65 73 20 |etwork s|ervices |
|00001d70| 61 72 65 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 2e |are impl|emented.|
|00001d80| 0a 58 41 20 73 65 72 76 | 69 63 65 20 69 73 20 61 |.XA serv|ice is a|
|00001d90| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 20 6f 66 20 6f | collect|ion of o|
|00001da0| 6e 65 20 6f 72 20 6d 6f | 72 65 20 72 65 6d 6f 74 |ne or mo|re remot|
|00001db0| 65 20 70 72 6f 67 72 61 | 6d 73 2e 0a 58 41 20 72 |e progra|ms..XA r|
|00001dc0| 65 6d 6f 74 65 20 70 72 | 6f 67 72 61 6d 20 69 6d |emote pr|ogram im|
|00001dd0| 70 6c 65 6d 65 6e 74 73 | 20 6f 6e 65 20 6f 72 20 |plements| one or |
|00001de0| 6d 6f 72 65 20 72 65 6d | 6f 74 65 20 70 72 6f 63 |more rem|ote proc|
|00001df0| 65 64 75 72 65 73 3b 0a | 58 74 68 65 20 70 72 6f |edures;.|Xthe pro|
|00001e00| 63 65 64 75 72 65 73 2c | 20 74 68 65 69 72 20 70 |cedures,| their p|
|00001e10| 61 72 61 6d 65 74 65 72 | 73 20 61 6e 64 20 72 65 |arameter|s and re|
|00001e20| 73 75 6c 74 73 20 61 72 | 65 20 64 6f 63 75 6d 65 |sults ar|e docume|
|00001e30| 6e 74 65 64 0a 58 69 6e | 20 74 68 65 20 73 70 65 |nted.Xin| the spe|
|00001e40| 63 69 66 69 63 20 70 72 | 6f 67 72 61 6d 27 73 20 |cific pr|ogram's |
|00001e50| 70 72 6f 74 6f 63 6f 6c | 20 73 70 65 63 69 66 69 |protocol| specifi|
|00001e60| 63 61 74 69 6f 6e 2e 0a | 58 4e 65 74 77 6f 72 6b |cation..|XNetwork|
|00001e70| 20 63 6c 69 65 6e 74 73 | 20 61 72 65 20 70 69 65 | clients| are pie|
|00001e80| 63 65 73 20 6f 66 20 73 | 6f 66 74 77 61 72 65 20 |ces of s|oftware |
|00001e90| 74 68 61 74 20 69 6e 69 | 74 69 61 74 65 0a 58 72 |that ini|tiate.Xr|
|00001ea0| 65 6d 6f 74 65 20 70 72 | 6f 63 65 64 75 72 65 20 |emote pr|ocedure |
|00001eb0| 63 61 6c 6c 73 20 74 6f | 20 73 65 72 76 69 63 65 |calls to| service|
|00001ec0| 73 2e 0a 58 41 20 73 65 | 72 76 65 72 20 6d 61 79 |s..XA se|rver may|
|00001ed0| 20 73 75 70 70 6f 72 74 | 20 6d 6f 72 65 20 74 68 | support| more th|
|00001ee0| 61 6e 20 6f 6e 65 20 76 | 65 72 73 69 6f 6e 20 6f |an one v|ersion o|
|00001ef0| 66 20 61 20 72 65 6d 6f | 74 65 20 70 72 6f 67 72 |f a remo|te progr|
|00001f00| 61 6d 0a 58 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |am.Xin o|rder to |
|00001f10| 62 65 20 66 6f 72 77 61 | 72 64 20 63 6f 6d 70 61 |be forwa|rd compa|
|00001f20| 74 69 62 6c 65 20 77 69 | 74 68 20 63 68 61 6e 67 |tible wi|th chang|
|00001f30| 69 6e 67 20 70 72 6f 74 | 6f 63 6f 6c 73 2e 0a 58 |ing prot|ocols..X|
|00001f40| 2e 4c 50 0a 58 46 6f 72 | 20 65 78 61 6d 70 6c 65 |.LP.XFor| example|
|00001f50| 2c 20 61 20 6e 65 74 77 | 6f 72 6b 20 66 69 6c 65 |, a netw|ork file|
|00001f60| 20 73 65 72 76 69 63 65 | 20 6d 61 79 20 62 65 20 | service| may be |
|00001f70| 63 6f 6d 70 6f 73 65 64 | 20 6f 66 20 74 77 6f 20 |composed| of two |
|00001f80| 70 72 6f 67 72 61 6d 73 | 2e 0a 58 4f 6e 65 20 70 |programs|..XOne p|
|00001f90| 72 6f 67 72 61 6d 20 6d | 61 79 20 64 65 61 6c 20 |rogram m|ay deal |
|00001fa0| 77 69 74 68 20 68 69 67 | 68 20 6c 65 76 65 6c 20 |with hig|h level |
|00001fb0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 0a 58 73 75 |applicat|ions.Xsu|
|00001fc0| 63 68 20 61 73 20 66 69 | 6c 65 20 73 79 73 74 65 |ch as fi|le syste|
|00001fd0| 6d 20 61 63 63 65 73 73 | 20 63 6f 6e 74 72 6f 6c |m access| control|
|00001fe0| 20 61 6e 64 20 6c 6f 63 | 6b 69 6e 67 2e 0a 58 54 | and loc|king..XT|
|00001ff0| 68 65 20 6f 74 68 65 72 | 20 6d 61 79 20 64 65 61 |he other| may dea|
|00002000| 6c 20 77 69 74 68 20 6c | 6f 77 2d 6c 65 76 65 6c |l with l|ow-level|
|00002010| 20 66 69 6c 65 20 49 2f | 4f 2c 0a 58 61 6e 64 20 | file I/|O,.Xand |
|00002020| 68 61 76 65 20 70 72 6f | 63 65 64 75 72 65 73 20 |have pro|cedures |
|00002030| 6c 69 6b 65 20 60 60 72 | 65 61 64 27 27 20 61 6e |like ``r|ead'' an|
|00002040| 64 20 60 60 77 72 69 74 | 65 27 27 2e 0a 58 41 20 |d ``writ|e''..XA |
|00002050| 63 6c 69 65 6e 74 20 6d | 61 63 68 69 6e 65 20 6f |client m|achine o|
|00002060| 66 20 74 68 65 20 6e 65 | 74 77 6f 72 6b 20 66 69 |f the ne|twork fi|
|00002070| 6c 65 20 73 65 72 76 69 | 63 65 20 77 6f 75 6c 64 |le servi|ce would|
|00002080| 20 63 61 6c 6c 0a 58 74 | 68 65 20 70 72 6f 63 65 | call.Xt|he proce|
|00002090| 64 75 72 65 73 20 61 73 | 73 6f 63 69 61 74 65 64 |dures as|sociated|
|000020a0| 20 77 69 74 68 20 74 68 | 65 20 74 77 6f 20 70 72 | with th|e two pr|
|000020b0| 6f 67 72 61 6d 73 20 6f | 66 20 74 68 65 20 73 65 |ograms o|f the se|
|000020c0| 72 76 69 63 65 0a 58 6f | 6e 20 62 65 68 61 6c 66 |rvice.Xo|n behalf|
|000020d0| 20 6f 66 20 73 6f 6d 65 | 20 75 73 65 72 20 6f 6e | of some| user on|
|000020e0| 20 74 68 65 20 63 6c 69 | 65 6e 74 20 6d 61 63 68 | the cli|ent mach|
|000020f0| 69 6e 65 2e 0a 58 2e 4e | 48 20 32 0a 58 54 68 65 |ine..X.N|H 2.XThe|
|00002100| 20 52 50 43 20 4d 6f 64 | 65 6c 0a 58 2e 4c 50 0a | RPC Mod|el.X.LP.|
|00002110| 58 54 68 65 20 72 65 6d | 6f 74 65 20 70 72 6f 63 |XThe rem|ote proc|
|00002120| 65 64 75 72 65 20 63 61 | 6c 6c 20 6d 6f 64 65 6c |edure ca|ll model|
|00002130| 20 69 73 20 73 69 6d 69 | 6c 61 72 20 74 6f 0a 58 | is simi|lar to.X|
|00002140| 74 68 65 20 6c 6f 63 61 | 6c 20 70 72 6f 63 65 64 |the loca|l proced|
|00002150| 75 72 65 20 63 61 6c 6c | 20 6d 6f 64 65 6c 2e 0a |ure call| model..|
|00002160| 58 49 6e 20 74 68 65 20 | 6c 6f 63 61 6c 20 63 61 |XIn the |local ca|
|00002170| 73 65 2c 20 74 68 65 20 | 63 61 6c 6c 65 72 20 70 |se, the |caller p|
|00002180| 6c 61 63 65 73 20 61 72 | 67 75 6d 65 6e 74 73 20 |laces ar|guments |
|00002190| 74 6f 20 61 20 70 72 6f | 63 65 64 75 72 65 0a 58 |to a pro|cedure.X|
|000021a0| 69 6e 20 73 6f 6d 65 20 | 77 65 6c 6c 2d 73 70 65 |in some |well-spe|
|000021b0| 63 69 66 69 65 64 20 6c | 6f 63 61 74 69 6f 6e 20 |cified l|ocation |
|000021c0| 28 73 75 63 68 20 61 73 | 20 61 20 72 65 73 75 6c |(such as| a resul|
|000021d0| 74 20 72 65 67 69 73 74 | 65 72 29 2e 0a 58 49 74 |t regist|er)..XIt|
|000021e0| 20 74 68 65 6e 20 74 72 | 61 6e 73 66 65 72 73 20 | then tr|ansfers |
|000021f0| 63 6f 6e 74 72 6f 6c 20 | 74 6f 20 74 68 65 20 70 |control |to the p|
|00002200| 72 6f 63 65 64 75 72 65 | 2c 0a 58 61 6e 64 20 65 |rocedure|,.Xand e|
|00002210| 76 65 6e 74 75 61 6c 6c | 79 20 67 61 69 6e 73 20 |ventuall|y gains |
|00002220| 62 61 63 6b 20 63 6f 6e | 74 72 6f 6c 2e 0a 58 41 |back con|trol..XA|
|00002230| 74 20 74 68 61 74 20 70 | 6f 69 6e 74 2c 20 74 68 |t that p|oint, th|
|00002240| 65 20 72 65 73 75 6c 74 | 73 20 6f 66 20 74 68 65 |e result|s of the|
|00002250| 20 70 72 6f 63 65 64 75 | 72 65 0a 58 61 72 65 20 | procedu|re.Xare |
|00002260| 65 78 74 72 61 63 74 65 | 64 20 66 72 6f 6d 20 74 |extracte|d from t|
|00002270| 68 65 20 77 65 6c 6c 2d | 73 70 65 63 69 66 69 65 |he well-|specifie|
|00002280| 64 20 6c 6f 63 61 74 69 | 6f 6e 2c 0a 58 61 6e 64 |d locati|on,.Xand|
|00002290| 20 74 68 65 20 63 61 6c | 6c 65 72 20 63 6f 6e 74 | the cal|ler cont|
|000022a0| 69 6e 75 65 73 20 65 78 | 65 63 75 74 69 6f 6e 2e |inues ex|ecution.|
|000022b0| 0a 58 2e 4c 50 0a 58 54 | 68 65 20 72 65 6d 6f 74 |.X.LP.XT|he remot|
|000022c0| 65 20 70 72 6f 63 65 64 | 75 72 65 20 63 61 6c 6c |e proced|ure call|
|000022d0| 20 69 73 20 73 69 6d 69 | 6c 61 72 2c 0a 58 65 78 | is simi|lar,.Xex|
|000022e0| 63 65 70 74 20 74 68 61 | 74 20 6f 6e 65 20 74 68 |cept tha|t one th|
|000022f0| 72 65 61 64 20 6f 66 20 | 63 6f 6e 74 72 6f 6c 20 |read of |control |
|00002300| 77 69 6e 64 73 20 74 68 | 72 6f 75 67 68 20 74 77 |winds th|rough tw|
|00002310| 6f 20 70 72 6f 63 65 73 | 73 65 73 20 5c 28 65 6d |o proces|ses \(em|
|00002320| 0a 58 6f 6e 65 20 69 73 | 20 74 68 65 20 63 61 6c |.Xone is| the cal|
|00002330| 6c 65 72 27 73 20 70 72 | 6f 63 65 73 73 2c 0a 58 |ler's pr|ocess,.X|
|00002340| 74 68 65 20 6f 74 68 65 | 72 20 69 73 20 61 20 73 |the othe|r is a s|
|00002350| 65 72 76 65 72 27 73 20 | 70 72 6f 63 65 73 73 2e |erver's |process.|
|00002360| 0a 58 54 68 61 74 20 69 | 73 2c 20 74 68 65 20 63 |.XThat i|s, the c|
|00002370| 61 6c 6c 65 72 20 70 72 | 6f 63 65 73 73 20 73 65 |aller pr|ocess se|
|00002380| 6e 64 73 20 61 20 63 61 | 6c 6c 20 6d 65 73 73 61 |nds a ca|ll messa|
|00002390| 67 65 0a 58 74 6f 20 74 | 68 65 20 73 65 72 76 65 |ge.Xto t|he serve|
|000023a0| 72 20 70 72 6f 63 65 73 | 73 20 61 6e 64 20 77 61 |r proces|s and wa|
|000023b0| 69 74 73 20 28 62 6c 6f | 63 6b 73 29 20 66 6f 72 |its (blo|cks) for|
|000023c0| 20 61 20 72 65 70 6c 79 | 20 6d 65 73 73 61 67 65 | a reply| message|
|000023d0| 2e 0a 58 54 68 65 20 63 | 61 6c 6c 20 6d 65 73 73 |..XThe c|all mess|
|000023e0| 61 67 65 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |age cont|ains the|
|000023f0| 20 70 72 6f 63 65 64 75 | 72 65 27 73 20 70 61 72 | procedu|re's par|
|00002400| 61 6d 65 74 65 72 73 2c | 0a 58 61 6d 6f 6e 67 20 |ameters,|.Xamong |
|00002410| 6f 74 68 65 72 20 74 68 | 69 6e 67 73 2e 0a 58 54 |other th|ings..XT|
|00002420| 68 65 20 72 65 70 6c 79 | 20 6d 65 73 73 61 67 65 |he reply| message|
|00002430| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 70 72 | contain|s the pr|
|00002440| 6f 63 65 64 75 72 65 27 | 73 20 72 65 73 75 6c 74 |ocedure'|s result|
|00002450| 73 2c 0a 58 61 6d 6f 6e | 67 20 6f 74 68 65 72 20 |s,.Xamon|g other |
|00002460| 74 68 69 6e 67 73 2e 0a | 58 4f 6e 63 65 20 74 68 |things..|XOnce th|
|00002470| 65 20 72 65 70 6c 79 20 | 6d 65 73 73 61 67 65 20 |e reply |message |
|00002480| 69 73 20 72 65 63 65 69 | 76 65 64 2c 0a 58 74 68 |is recei|ved,.Xth|
|00002490| 65 20 72 65 73 75 6c 74 | 73 20 6f 66 20 74 68 65 |e result|s of the|
|000024a0| 20 70 72 6f 63 65 64 75 | 72 65 20 61 72 65 20 65 | procedu|re are e|
|000024b0| 78 74 72 61 63 74 65 64 | 2c 0a 58 61 6e 64 20 63 |xtracted|,.Xand c|
|000024c0| 61 6c 6c 65 72 27 73 20 | 65 78 65 63 75 74 69 6f |aller's |executio|
|000024d0| 6e 20 69 73 20 72 65 73 | 75 6d 65 64 2e 0a 58 2e |n is res|umed..X.|
|000024e0| 4c 50 0a 58 4f 6e 20 74 | 68 65 20 73 65 72 76 65 |LP.XOn t|he serve|
|000024f0| 72 20 73 69 64 65 2c 0a | 58 61 20 70 72 6f 63 65 |r side,.|Xa proce|
|00002500| 73 73 20 69 73 20 64 6f | 72 6d 61 6e 74 20 61 77 |ss is do|rmant aw|
|00002510| 61 69 74 69 6e 67 20 74 | 68 65 20 61 72 72 69 76 |aiting t|he arriv|
|00002520| 61 6c 20 6f 66 20 61 20 | 63 61 6c 6c 20 6d 65 73 |al of a |call mes|
|00002530| 73 61 67 65 2e 0a 58 57 | 68 65 6e 20 6f 6e 65 20 |sage..XW|hen one |
|00002540| 61 72 72 69 76 65 73 20 | 74 68 65 20 73 65 72 76 |arrives |the serv|
|00002550| 65 72 20 70 72 6f 63 65 | 73 73 20 65 78 74 72 61 |er proce|ss extra|
|00002560| 63 74 73 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 |cts the |procedur|
|00002570| 65 27 73 20 70 61 72 61 | 6d 65 74 65 72 73 2c 0a |e's para|meters,.|
|00002580| 58 63 6f 6d 70 75 74 65 | 73 20 74 68 65 20 72 65 |Xcompute|s the re|
|00002590| 73 75 6c 74 73 2c 20 73 | 65 6e 64 73 20 61 20 72 |sults, s|ends a r|
|000025a0| 65 70 6c 79 20 6d 65 73 | 73 61 67 65 2c 0a 58 61 |eply mes|sage,.Xa|
|000025b0| 6e 64 20 74 68 65 6e 20 | 61 77 61 69 74 73 20 74 |nd then |awaits t|
|000025c0| 68 65 20 6e 65 78 74 20 | 63 61 6c 6c 20 6d 65 73 |he next |call mes|
|000025d0| 73 61 67 65 2e 0a 58 4e | 6f 74 65 20 74 68 61 74 |sage..XN|ote that|
|000025e0| 20 69 6e 20 74 68 69 73 | 20 6d 6f 64 65 6c 2c 0a | in this| model,.|
|000025f0| 58 6f 6e 6c 79 20 6f 6e | 65 20 6f 66 20 74 68 65 |Xonly on|e of the|
|00002600| 20 74 77 6f 20 70 72 6f | 63 65 73 73 65 73 20 69 | two pro|cesses i|
|00002610| 73 20 61 63 74 69 76 65 | 20 61 74 20 61 6e 79 20 |s active| at any |
|00002620| 67 69 76 65 6e 20 74 69 | 6d 65 2e 0a 58 54 68 61 |given ti|me..XTha|
|00002630| 74 20 69 73 2c 20 74 68 | 65 20 52 50 43 20 70 72 |t is, th|e RPC pr|
|00002640| 6f 74 6f 63 6f 6c 20 64 | 6f 65 73 20 6e 6f 74 20 |otocol d|oes not |
|00002650| 65 78 70 6c 69 63 69 74 | 6c 79 20 73 75 70 70 6f |explicit|ly suppo|
|00002660| 72 74 0a 58 6d 75 6c 74 | 69 2d 74 68 72 65 61 64 |rt.Xmult|i-thread|
|00002670| 69 6e 67 20 6f 66 20 63 | 61 6c 6c 65 72 20 6f 72 |ing of c|aller or|
|00002680| 20 73 65 72 76 65 72 20 | 70 72 6f 63 65 73 73 65 | server |processe|
|00002690| 73 2e 0a 58 2e 4e 48 20 | 32 0a 58 54 72 61 6e 73 |s..X.NH |2.XTrans|
|000026a0| 70 6f 72 74 73 20 61 6e | 64 20 53 65 6d 61 6e 74 |ports an|d Semant|
|000026b0| 69 63 73 0a 58 2e 4c 50 | 0a 58 54 68 65 20 52 50 |ics.X.LP|.XThe RP|
|000026c0| 43 20 70 72 6f 74 6f 63 | 6f 6c 20 69 73 20 69 6e |C protoc|ol is in|
|000026d0| 64 65 70 65 6e 64 65 6e | 74 20 6f 66 20 74 72 61 |dependen|t of tra|
|000026e0| 6e 73 70 6f 72 74 20 70 | 72 6f 74 6f 63 6f 6c 73 |nsport p|rotocols|
|000026f0| 2e 0a 58 54 68 61 74 20 | 69 73 2c 20 52 50 43 20 |..XThat |is, RPC |
|00002700| 64 6f 65 73 20 6e 6f 74 | 20 63 61 72 65 20 68 6f |does not| care ho|
|00002710| 77 20 61 20 6d 65 73 73 | 61 67 65 20 69 73 20 70 |w a mess|age is p|
|00002720| 61 73 73 65 64 0a 58 66 | 72 6f 6d 20 6f 6e 65 20 |assed.Xf|rom one |
|00002730| 70 72 6f 63 65 73 73 20 | 74 6f 20 61 6e 6f 74 68 |process |to anoth|
|00002740| 65 72 2e 0a 58 54 68 65 | 20 70 72 6f 74 6f 63 6f |er..XThe| protoco|
|00002750| 6c 20 6f 6e 6c 79 20 64 | 65 61 6c 73 20 77 69 74 |l only d|eals wit|
|00002760| 68 0a 58 74 68 65 20 73 | 70 65 63 69 66 69 63 61 |h.Xthe s|pecifica|
|00002770| 74 69 6f 6e 20 61 6e 64 | 20 69 6e 74 65 72 70 72 |tion and| interpr|
|00002780| 65 74 61 74 69 6f 6e 20 | 6f 66 20 6d 65 73 73 61 |etation |of messa|
|00002790| 67 65 73 2e 0a 58 2e 4c | 50 0a 58 42 65 63 61 75 |ges..X.L|P.XBecau|
|000027a0| 73 65 20 6f 66 20 74 72 | 61 6e 73 70 6f 72 74 20 |se of tr|ansport |
|000027b0| 69 6e 64 65 70 65 6e 64 | 65 6e 63 65 2c 0a 58 74 |independ|ence,.Xt|
|000027c0| 68 65 20 52 50 43 20 70 | 72 6f 74 6f 63 6f 6c 20 |he RPC p|rotocol |
|000027d0| 64 6f 65 73 20 6e 6f 74 | 20 61 74 74 61 63 68 20 |does not| attach |
|000027e0| 73 70 65 63 69 66 69 63 | 20 73 65 6d 61 6e 74 69 |specific| semanti|
|000027f0| 63 73 0a 58 74 6f 20 74 | 68 65 20 72 65 6d 6f 74 |cs.Xto t|he remot|
|00002800| 65 20 70 72 6f 63 65 64 | 75 72 65 73 20 6f 72 20 |e proced|ures or |
|00002810| 74 68 65 69 72 20 65 78 | 65 63 75 74 69 6f 6e 2e |their ex|ecution.|
|00002820| 0a 58 53 6f 6d 65 20 73 | 65 6d 61 6e 74 69 63 73 |.XSome s|emantics|
|00002830| 20 63 61 6e 20 62 65 20 | 69 6e 66 65 72 72 65 64 | can be |inferred|
|00002840| 20 66 72 6f 6d 0a 58 28 | 62 75 74 20 73 68 6f 75 | from.X(|but shou|
|00002850| 6c 64 20 62 65 20 65 78 | 70 6c 69 63 69 74 6c 79 |ld be ex|plicitly|
|00002860| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 29 0a 58 | specifi|ed by).X|
|00002870| 74 68 65 20 75 6e 64 65 | 72 6c 79 69 6e 67 20 74 |the unde|rlying t|
|00002880| 72 61 6e 73 70 6f 72 74 | 20 70 72 6f 74 6f 63 6f |ransport| protoco|
|00002890| 6c 2e 0a 58 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |l..XFor |example,|
|000028a0| 20 52 50 43 20 6d 65 73 | 73 61 67 65 20 70 61 73 | RPC mes|sage pas|
|000028b0| 73 69 6e 67 20 75 73 69 | 6e 67 20 55 44 50 2f 49 |sing usi|ng UDP/I|
|000028c0| 50 20 69 73 20 75 6e 72 | 65 6c 69 61 62 6c 65 2e |P is unr|eliable.|
|000028d0| 0a 58 54 68 75 73 2c 20 | 69 66 20 74 68 65 20 63 |.XThus, |if the c|
|000028e0| 61 6c 6c 65 72 20 72 65 | 74 72 61 6e 73 6d 69 74 |aller re|transmit|
|000028f0| 73 20 63 61 6c 6c 20 6d | 65 73 73 61 67 65 73 20 |s call m|essages |
|00002900| 61 66 74 65 72 20 73 68 | 6f 72 74 20 74 69 6d 65 |after sh|ort time|
|00002910| 2d 6f 75 74 73 2c 0a 58 | 74 68 65 20 6f 6e 6c 79 |-outs,.X|the only|
|00002920| 20 74 68 69 6e 67 20 68 | 65 20 63 61 6e 20 69 6e | thing h|e can in|
|00002930| 66 65 72 20 66 72 6f 6d | 20 6e 6f 20 72 65 70 6c |fer from| no repl|
|00002940| 79 20 6d 65 73 73 61 67 | 65 0a 58 69 73 20 74 68 |y messag|e.Xis th|
|00002950| 61 74 20 74 68 65 20 72 | 65 6d 6f 74 65 20 70 72 |at the r|emote pr|
|00002960| 6f 63 65 64 75 72 65 20 | 77 61 73 20 65 78 65 63 |ocedure |was exec|
|00002970| 75 74 65 64 0a 58 7a 65 | 72 6f 20 6f 72 20 6d 6f |uted.Xze|ro or mo|
|00002980| 72 65 20 74 69 6d 65 73 | 20 28 61 6e 64 20 66 72 |re times| (and fr|
|00002990| 6f 6d 20 61 20 72 65 70 | 6c 79 20 6d 65 73 73 61 |om a rep|ly messa|
|000029a0| 67 65 2c 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |ge, one |or more |
|000029b0| 74 69 6d 65 73 29 2e 0a | 58 4f 6e 20 74 68 65 20 |times)..|XOn the |
|000029c0| 6f 74 68 65 72 20 68 61 | 6e 64 2c 20 52 50 43 20 |other ha|nd, RPC |
|000029d0| 6d 65 73 73 61 67 65 20 | 70 61 73 73 69 6e 67 20 |message |passing |
|000029e0| 75 73 69 6e 67 20 54 43 | 50 2f 49 50 20 69 73 20 |using TC|P/IP is |
|000029f0| 72 65 6c 69 61 62 6c 65 | 2e 0a 58 4e 6f 20 72 65 |reliable|..XNo re|
|00002a00| 70 6c 79 20 6d 65 73 73 | 61 67 65 20 6d 65 61 6e |ply mess|age mean|
|00002a10| 73 20 74 68 61 74 20 74 | 68 65 20 72 65 6d 6f 74 |s that t|he remot|
|00002a20| 65 20 70 72 6f 63 65 64 | 75 72 65 20 77 61 73 20 |e proced|ure was |
|00002a30| 65 78 65 63 75 74 65 64 | 20 61 74 20 6d 6f 73 74 |executed| at most|
|00002a40| 20 6f 6e 63 65 2c 0a 58 | 77 68 65 72 65 61 73 20 | once,.X|whereas |
|00002a50| 61 20 72 65 70 6c 79 20 | 6d 65 73 73 61 67 65 20 |a reply |message |
|00002a60| 6d 65 61 6e 73 20 74 68 | 61 74 20 74 68 65 20 72 |means th|at the r|
|00002a70| 65 6d 6f 74 65 20 70 72 | 6f 63 65 64 75 72 65 20 |emote pr|ocedure |
|00002a80| 77 61 73 20 65 78 61 63 | 74 6c 79 20 6f 6e 63 65 |was exac|tly once|
|00002a90| 2e 0a 58 28 4e 6f 74 65 | 3a 0a 58 41 74 20 53 75 |..X(Note|:.XAt Su|
|00002aa0| 6e 2c 20 52 50 43 20 69 | 73 20 63 75 72 72 65 6e |n, RPC i|s curren|
|00002ab0| 74 6c 79 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 0a |tly impl|emented.|
|00002ac0| 58 6f 6e 20 74 6f 70 20 | 6f 66 20 54 43 50 2f 49 |Xon top |of TCP/I|
|00002ad0| 50 20 61 6e 64 20 55 44 | 50 2f 49 50 20 74 72 61 |P and UD|P/IP tra|
|00002ae0| 6e 73 70 6f 72 74 73 2e | 29 0a 58 2e 4e 48 20 32 |nsports.|).X.NH 2|
|00002af0| 0a 58 42 69 6e 64 69 6e | 67 20 61 6e 64 20 52 65 |.XBindin|g and Re|
|00002b00| 6e 64 65 7a 76 6f 75 73 | 20 49 6e 64 65 70 65 6e |ndezvous| Indepen|
|00002b10| 64 65 6e 63 65 0a 58 2e | 4c 50 0a 58 54 68 65 20 |dence.X.|LP.XThe |
|00002b20| 61 63 74 20 6f 66 20 62 | 69 6e 64 69 6e 67 20 61 |act of b|inding a|
|00002b30| 20 63 6c 69 65 6e 74 20 | 74 6f 20 61 20 73 65 72 | client |to a ser|
|00002b40| 76 69 63 65 20 69 73 0a | 58 2e 49 20 6e 6f 74 0a |vice is.|X.I not.|
|00002b50| 58 70 61 72 74 20 6f 66 | 20 74 68 65 20 72 65 6d |Xpart of| the rem|
|00002b60| 6f 74 65 20 70 72 6f 63 | 65 64 75 72 65 20 63 61 |ote proc|edure ca|
|00002b70| 6c 6c 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |ll speci|fication|
|00002b80| 2e 0a 58 54 68 69 73 20 | 69 6d 70 6f 72 74 61 6e |..XThis |importan|
|00002b90| 74 20 61 6e 64 20 6e 65 | 63 65 73 73 61 72 79 20 |t and ne|cessary |
|00002ba0| 66 75 6e 63 74 69 6f 6e | 0a 58 69 73 20 6c 65 66 |function|.Xis lef|
|00002bb0| 74 20 75 70 20 74 6f 20 | 73 6f 6d 65 20 68 69 67 |t up to |some hig|
|00002bc0| 68 65 72 20 6c 65 76 65 | 6c 20 73 6f 66 74 77 61 |her leve|l softwa|
|00002bd0| 72 65 2e 0a 58 2e 4c 50 | 0a 58 49 6d 70 6c 65 6d |re..X.LP|.XImplem|
|00002be0| 65 6e 74 6f 72 73 20 73 | 68 6f 75 6c 64 20 74 68 |entors s|hould th|
|00002bf0| 69 6e 6b 20 6f 66 20 74 | 68 65 20 52 50 43 20 70 |ink of t|he RPC p|
|00002c00| 72 6f 74 6f 63 6f 6c 20 | 61 73 20 74 68 65 0a 58 |rotocol |as the.X|
|00002c10| 6a 75 6d 70 2d 73 75 62 | 72 6f 75 74 69 6e 65 20 |jump-sub|routine |
|00002c20| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 28 60 60 4a |instruct|ion (``J|
|00002c30| 53 52 27 27 29 20 6f 66 | 20 61 20 6e 65 74 77 6f |SR'') of| a netwo|
|00002c40| 72 6b 3b 0a 58 74 68 65 | 20 6c 6f 61 64 65 72 20 |rk;.Xthe| loader |
|00002c50| 28 62 69 6e 64 65 72 29 | 20 6d 61 6b 65 73 20 4a |(binder)| makes J|
|00002c60| 53 52 20 75 73 65 66 75 | 6c 2c 0a 58 61 6e 64 20 |SR usefu|l,.Xand |
|00002c70| 74 68 65 20 6c 6f 61 64 | 65 72 20 69 74 73 65 6c |the load|er itsel|
|00002c80| 66 20 75 73 65 73 20 4a | 53 52 20 74 6f 20 61 63 |f uses J|SR to ac|
|00002c90| 63 6f 6d 70 6c 69 73 68 | 20 69 74 73 20 74 61 73 |complish| its tas|
|00002ca0| 6b 2e 0a 58 4c 69 6b 65 | 77 69 73 65 2c 20 74 68 |k..XLike|wise, th|
|00002cb0| 65 20 6e 65 74 77 6f 72 | 6b 20 6d 61 6b 65 73 20 |e networ|k makes |
|00002cc0| 52 50 43 20 75 73 65 66 | 75 6c 2c 0a 58 75 73 69 |RPC usef|ul,.Xusi|
|00002cd0| 6e 67 20 52 50 43 20 74 | 6f 20 61 63 63 6f 6d 70 |ng RPC t|o accomp|
|00002ce0| 6c 69 73 68 20 74 68 69 | 73 20 74 61 73 6b 2e 0a |lish thi|s task..|
|00002cf0| 58 2e 4e 48 20 32 0a 58 | 4d 65 73 73 61 67 65 20 |X.NH 2.X|Message |
|00002d00| 41 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 0a 58 |Authenti|cation.X|
|00002d10| 2e 4c 50 0a 58 54 68 65 | 20 52 50 43 20 70 72 6f |.LP.XThe| RPC pro|
|00002d20| 74 6f 63 6f 6c 20 70 72 | 6f 76 69 64 65 73 20 74 |tocol pr|ovides t|
|00002d30| 68 65 20 66 69 65 6c 64 | 73 20 6e 65 63 65 73 73 |he field|s necess|
|00002d40| 61 72 79 20 66 6f 72 20 | 61 20 63 6c 69 65 6e 74 |ary for |a client|
|00002d50| 20 74 6f 0a 58 69 64 65 | 6e 74 69 66 79 20 68 69 | to.Xide|ntify hi|
|00002d60| 6d 73 65 6c 66 20 74 6f | 20 61 20 73 65 72 76 69 |mself to| a servi|
|00002d70| 63 65 20 61 6e 64 20 76 | 69 63 65 20 76 65 72 73 |ce and v|ice vers|
|00002d80| 61 2e 0a 58 53 65 63 75 | 72 69 74 79 20 61 6e 64 |a..XSecu|rity and|
|00002d90| 20 61 63 63 65 73 73 20 | 63 6f 6e 74 72 6f 6c 20 | access |control |
|00002da0| 6d 65 63 68 61 6e 69 73 | 6d 73 0a 58 63 61 6e 20 |mechanis|ms.Xcan |
|00002db0| 62 65 20 62 75 69 6c 74 | 20 6f 6e 20 74 6f 70 20 |be built| on top |
|00002dc0| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 20 61 |of the m|essage a|
|00002dd0| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 2e 0a 58 |uthentic|ation..X|
|00002de0| 2e 62 70 0a 58 2e 4e 48 | 0a 58 52 50 43 20 50 72 |.bp.X.NH|.XRPC Pr|
|00002df0| 6f 74 6f 63 6f 6c 20 52 | 65 71 75 69 72 65 6d 65 |otocol R|equireme|
|00002e00| 6e 74 73 0a 58 2e 4c 50 | 0a 58 54 68 65 20 52 50 |nts.X.LP|.XThe RP|
|00002e10| 43 20 70 72 6f 74 6f 63 | 6f 6c 20 6d 75 73 74 20 |C protoc|ol must |
|00002e20| 70 72 6f 76 69 64 65 20 | 66 6f 72 20 74 68 65 20 |provide |for the |
|00002e30| 66 6f 6c 6c 6f 77 69 6e | 67 3a 0a 58 2e 49 50 20 |followin|g:.X.IP |
|00002e40| 31 2e 0a 58 55 6e 69 71 | 75 65 20 73 70 65 63 69 |1..XUniq|ue speci|
|00002e50| 66 69 63 61 74 69 6f 6e | 20 6f 66 20 61 20 70 72 |fication| of a pr|
|00002e60| 6f 63 65 64 75 72 65 20 | 74 6f 20 62 65 20 63 61 |ocedure |to be ca|
|00002e70| 6c 6c 65 64 2e 0a 58 2e | 49 50 20 32 2e 0a 58 50 |lled..X.|IP 2..XP|
|00002e80| 72 6f 76 69 73 69 6f 6e | 73 20 66 6f 72 20 6d 61 |rovision|s for ma|
|00002e90| 74 63 68 69 6e 67 20 72 | 65 73 70 6f 6e 73 65 20 |tching r|esponse |
|00002ea0| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 72 65 71 75 |messages| to requ|
|00002eb0| 65 73 74 20 6d 65 73 73 | 61 67 65 73 2e 0a 58 2e |est mess|ages..X.|
|00002ec0| 49 50 20 33 2e 0a 58 50 | 72 6f 76 69 73 69 6f 6e |IP 3..XP|rovision|
|00002ed0| 73 20 66 6f 72 20 61 75 | 74 68 65 6e 74 69 63 61 |s for au|thentica|
|00002ee0| 74 69 6e 67 20 74 68 65 | 20 63 61 6c 6c 65 72 20 |ting the| caller |
|00002ef0| 74 6f 20 73 65 72 76 69 | 63 65 20 61 6e 64 20 76 |to servi|ce and v|
|00002f00| 69 63 65 20 76 65 72 73 | 61 2e 0a 58 2e 4c 50 0a |ice vers|a..X.LP.|
|00002f10| 58 42 65 73 69 64 65 73 | 20 74 68 65 73 65 20 72 |XBesides| these r|
|00002f20| 65 71 75 69 72 65 6d 65 | 6e 74 73 2c 0a 58 66 65 |equireme|nts,.Xfe|
|00002f30| 61 74 75 72 65 73 20 74 | 68 61 74 20 64 65 74 65 |atures t|hat dete|
|00002f40| 63 74 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ct the f|ollowing|
|00002f50| 20 61 72 65 20 77 6f 72 | 74 68 20 73 75 70 70 6f | are wor|th suppo|
|00002f60| 72 74 69 6e 67 0a 58 62 | 65 63 61 75 73 65 20 6f |rting.Xb|ecause o|
|00002f70| 66 20 70 72 6f 74 6f 63 | 6f 6c 20 72 6f 6c 6c 2d |f protoc|ol roll-|
|00002f80| 6f 76 65 72 20 65 72 72 | 6f 72 73 2c 20 69 6d 70 |over err|ors, imp|
|00002f90| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 62 75 67 73 |lementat|ion bugs|
|00002fa0| 2c 0a 58 75 73 65 72 20 | 65 72 72 6f 72 2c 20 61 |,.Xuser |error, a|
|00002fb0| 6e 64 20 6e 65 74 77 6f | 72 6b 20 61 64 6d 69 6e |nd netwo|rk admin|
|00002fc0| 69 73 74 72 61 74 69 6f | 6e 3a 0a 58 2e 49 50 20 |istratio|n:.X.IP |
|00002fd0| 31 2e 0a 58 52 50 43 20 | 70 72 6f 74 6f 63 6f 6c |1..XRPC |protocol|
|00002fe0| 20 6d 69 73 6d 61 74 63 | 68 65 73 2e 0a 58 2e 49 | mismatc|hes..X.I|
|00002ff0| 50 20 32 2e 0a 58 52 65 | 6d 6f 74 65 20 70 72 6f |P 2..XRe|mote pro|
|00003000| 67 72 61 6d 20 70 72 6f | 74 6f 63 6f 6c 20 76 65 |gram pro|tocol ve|
|00003010| 72 73 69 6f 6e 20 6d 69 | 73 6d 61 74 63 68 65 73 |rsion mi|smatches|
|00003020| 2e 0a 58 2e 49 50 20 33 | 2e 0a 58 50 72 6f 74 6f |..X.IP 3|..XProto|
|00003030| 63 6f 6c 20 65 72 72 6f | 72 73 20 28 73 75 63 68 |col erro|rs (such|
|00003040| 20 61 73 20 6d 69 73 73 | 70 65 63 69 66 69 63 61 | as miss|pecifica|
|00003050| 74 69 6f 6e 20 6f 66 20 | 61 20 70 72 6f 63 65 64 |tion of |a proced|
|00003060| 75 72 65 27 73 20 70 61 | 72 61 6d 65 74 65 72 73 |ure's pa|rameters|
|00003070| 29 2e 0a 58 2e 49 50 20 | 34 2e 0a 58 52 65 61 73 |)..X.IP |4..XReas|
|00003080| 6f 6e 73 20 77 68 79 20 | 72 65 6d 6f 74 65 20 61 |ons why |remote a|
|00003090| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 20 66 61 |uthentic|ation fa|
|000030a0| 69 6c 65 64 2e 0a 58 2e | 49 50 20 35 2e 0a 58 41 |iled..X.|IP 5..XA|
|000030b0| 6e 79 20 6f 74 68 65 72 | 20 72 65 61 73 6f 6e 73 |ny other| reasons|
|000030c0| 20 77 68 79 20 74 68 65 | 20 64 65 73 69 72 65 64 | why the| desired|
|000030d0| 20 70 72 6f 63 65 64 75 | 72 65 20 77 61 73 20 6e | procedu|re was n|
|000030e0| 6f 74 20 63 61 6c 6c 65 | 64 2e 0a 58 2e 4c 50 0a |ot calle|d..X.LP.|
|000030f0| 58 2e 4e 48 20 32 0a 58 | 52 65 6d 6f 74 65 20 50 |X.NH 2.X|Remote P|
|00003100| 72 6f 67 72 61 6d 73 20 | 61 6e 64 20 50 72 6f 63 |rograms |and Proc|
|00003110| 65 64 75 72 65 73 0a 58 | 2e 4c 50 0a 58 54 68 65 |edures.X|.LP.XThe|
|00003120| 20 52 50 43 20 63 61 6c | 6c 20 6d 65 73 73 61 67 | RPC cal|l messag|
|00003130| 65 20 68 61 73 20 74 68 | 72 65 65 20 75 6e 73 69 |e has th|ree unsi|
|00003140| 67 6e 65 64 20 66 69 65 | 6c 64 73 3a 0a 58 72 65 |gned fie|lds:.Xre|
|00003150| 6d 6f 74 65 20 70 72 6f | 67 72 61 6d 20 6e 75 6d |mote pro|gram num|
|00003160| 62 65 72 2c 0a 58 72 65 | 6d 6f 74 65 20 70 72 6f |ber,.Xre|mote pro|
|00003170| 67 72 61 6d 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d |gram ver|sion num|
|00003180| 62 65 72 2c 0a 58 61 6e | 64 20 72 65 6d 6f 74 65 |ber,.Xan|d remote|
|00003190| 20 70 72 6f 63 65 64 75 | 72 65 20 6e 75 6d 62 65 | procedu|re numbe|
|000031a0| 72 2e 0a 58 54 68 65 20 | 74 68 72 65 65 20 66 69 |r..XThe |three fi|
|000031b0| 65 6c 64 73 20 75 6e 69 | 71 75 65 6c 79 20 69 64 |elds uni|quely id|
|000031c0| 65 6e 74 69 66 79 20 74 | 68 65 20 70 72 6f 63 65 |entify t|he proce|
|000031d0| 64 75 72 65 20 74 6f 20 | 62 65 20 63 61 6c 6c 65 |dure to |be calle|
|000031e0| 64 2e 0a 58 50 72 6f 67 | 72 61 6d 20 6e 75 6d 62 |d..XProg|ram numb|
|000031f0| 65 72 73 20 61 72 65 20 | 61 64 6d 69 6e 69 73 74 |ers are |administ|
|00003200| 65 72 65 64 20 62 79 20 | 73 6f 6d 65 20 63 65 6e |ered by |some cen|
|00003210| 74 72 61 6c 20 61 75 74 | 68 6f 72 69 74 79 20 28 |tral aut|hority (|
|00003220| 6c 69 6b 65 20 53 75 6e | 29 2e 0a 58 4f 6e 63 65 |like Sun|)..XOnce|
|00003230| 20 61 6e 20 69 6d 70 6c | 65 6d 65 6e 74 6f 72 20 | an impl|ementor |
|00003240| 68 61 73 20 61 20 70 72 | 6f 67 72 61 6d 0a 58 6e |has a pr|ogram.Xn|
|00003250| 75 6d 62 65 72 2c 20 68 | 65 20 63 61 6e 20 69 6d |umber, h|e can im|
|00003260| 70 6c 65 6d 65 6e 74 20 | 68 69 73 20 72 65 6d 6f |plement |his remo|
|00003270| 74 65 20 70 72 6f 67 72 | 61 6d 3b 0a 58 74 68 65 |te progr|am;.Xthe|
|00003280| 20 66 69 72 73 74 20 69 | 6d 70 6c 65 6d 65 6e 74 | first i|mplement|
|00003290| 61 74 69 6f 6e 20 77 6f | 75 6c 64 0a 58 6d 6f 73 |ation wo|uld.Xmos|
|000032a0| 74 20 6c 69 6b 65 6c 79 | 20 68 61 76 65 20 74 68 |t likely| have th|
|000032b0| 65 20 76 65 72 73 69 6f | 6e 20 6e 75 6d 62 65 72 |e versio|n number|
|000032c0| 20 6f 66 20 31 2e 0a 58 | 42 65 63 61 75 73 65 20 | of 1..X|Because |
|000032d0| 6d 6f 73 74 20 6e 65 77 | 20 70 72 6f 74 6f 63 6f |most new| protoco|
|000032e0| 6c 73 20 65 76 6f 6c 76 | 65 20 69 6e 74 6f 20 62 |ls evolv|e into b|
|000032f0| 65 74 74 65 72 2c 0a 58 | 73 74 61 62 6c 65 20 61 |etter,.X|stable a|
|00003300| 6e 64 20 6d 61 74 75 72 | 65 20 70 72 6f 74 6f 63 |nd matur|e protoc|
|00003310| 6f 6c 73 2c 0a 58 61 20 | 76 65 72 73 69 6f 6e 20 |ols,.Xa |version |
|00003320| 66 69 65 6c 64 20 6f 66 | 20 74 68 65 20 63 61 6c |field of| the cal|
|00003330| 6c 20 6d 65 73 73 61 67 | 65 20 69 64 65 6e 74 69 |l messag|e identi|
|00003340| 66 69 65 73 20 77 68 69 | 63 68 20 76 65 72 73 69 |fies whi|ch versi|
|00003350| 6f 6e 0a 58 6f 66 20 74 | 68 65 20 70 72 6f 74 6f |on.Xof t|he proto|
|00003360| 63 6f 6c 20 74 68 65 20 | 63 61 6c 6c 65 72 20 69 |col the |caller i|
|00003370| 73 20 75 73 69 6e 67 2e | 0a 58 56 65 72 73 69 6f |s using.|.XVersio|
|00003380| 6e 20 6e 75 6d 62 65 72 | 73 20 6d 61 6b 65 20 73 |n number|s make s|
|00003390| 70 65 61 6b 69 6e 67 20 | 6f 6c 64 20 61 6e 64 20 |peaking |old and |
|000033a0| 6e 65 77 20 70 72 6f 74 | 6f 63 6f 6c 73 0a 58 74 |new prot|ocols.Xt|
|000033b0| 68 72 6f 75 67 68 20 74 | 68 65 20 73 61 6d 65 20 |hrough t|he same |
|000033c0| 73 65 72 76 65 72 20 70 | 72 6f 63 65 73 73 20 70 |server p|rocess p|
|000033d0| 6f 73 73 69 62 6c 65 2e | 0a 58 2e 4c 50 0a 58 54 |ossible.|.X.LP.XT|
|000033e0| 68 65 20 70 72 6f 63 65 | 64 75 72 65 20 6e 75 6d |he proce|dure num|
|000033f0| 62 65 72 20 69 64 65 6e | 74 69 66 69 65 73 20 74 |ber iden|tifies t|
|00003400| 68 65 20 70 72 6f 63 65 | 64 75 72 65 20 74 6f 20 |he proce|dure to |
|00003410| 62 65 20 63 61 6c 6c 65 | 64 2e 0a 58 54 68 65 73 |be calle|d..XThes|
|00003420| 65 20 6e 75 6d 62 65 72 | 73 20 61 72 65 20 64 6f |e number|s are do|
|00003430| 63 75 6d 65 6e 74 65 64 | 20 69 6e 0a 58 74 68 65 |cumented| in.Xthe|
|00003440| 20 73 70 65 63 69 66 69 | 63 20 70 72 6f 67 72 61 | specifi|c progra|
|00003450| 6d 27 73 20 70 72 6f 74 | 6f 63 6f 6c 20 73 70 65 |m's prot|ocol spe|
|00003460| 63 69 66 69 63 61 74 69 | 6f 6e 2e 0a 58 46 6f 72 |cificati|on..XFor|
|00003470| 20 65 78 61 6d 70 6c 65 | 2c 20 61 20 66 69 6c 65 | example|, a file|
|00003480| 20 73 65 72 76 69 63 65 | 27 73 20 70 72 6f 74 6f | service|'s proto|
|00003490| 63 6f 6c 20 73 70 65 63 | 69 66 69 63 61 74 69 6f |col spec|ificatio|
|000034a0| 6e 0a 58 6d 61 79 20 73 | 74 61 74 65 20 74 68 61 |n.Xmay s|tate tha|
|000034b0| 74 20 69 74 73 20 70 72 | 6f 63 65 64 75 72 65 20 |t its pr|ocedure |
|000034c0| 6e 75 6d 62 65 72 20 35 | 20 69 73 0a 58 2e 4c 57 |number 5| is.X.LW|
|000034d0| 20 72 65 61 64 0a 58 61 | 6e 64 20 70 72 6f 63 65 | read.Xa|nd proce|
|000034e0| 64 75 72 65 20 6e 75 6d | 62 65 72 20 31 32 20 69 |dure num|ber 12 i|
|000034f0| 73 0a 58 2e 4c 57 20 77 | 72 69 74 65 20 2e 0a 58 |s.X.LW w|rite ..X|
|00003500| 2e 4c 50 0a 58 4a 75 73 | 74 20 61 73 20 72 65 6d |.LP.XJus|t as rem|
|00003510| 6f 74 65 20 70 72 6f 67 | 72 61 6d 20 70 72 6f 74 |ote prog|ram prot|
|00003520| 6f 63 6f 6c 73 20 6d 61 | 79 20 63 68 61 6e 67 65 |ocols ma|y change|
|00003530| 20 6f 76 65 72 20 73 65 | 76 65 72 61 6c 20 76 65 | over se|veral ve|
|00003540| 72 73 69 6f 6e 73 2c 0a | 58 74 68 65 20 61 63 74 |rsions,.|Xthe act|
|00003550| 75 61 6c 20 52 50 43 20 | 6d 65 73 73 61 67 65 20 |ual RPC |message |
|00003560| 70 72 6f 74 6f 63 6f 6c | 20 63 6f 75 6c 64 20 61 |protocol| could a|
|00003570| 6c 73 6f 20 63 68 61 6e | 67 65 2e 0a 58 54 68 65 |lso chan|ge..XThe|
|00003580| 72 65 66 6f 72 65 2c 20 | 74 68 65 20 63 61 6c 6c |refore, |the call|
|00003590| 20 6d 65 73 73 61 67 65 | 20 61 6c 73 6f 20 68 61 | message| also ha|
|000035a0| 73 20 74 68 65 20 52 50 | 43 20 76 65 72 73 69 6f |s the RP|C versio|
|000035b0| 6e 20 6e 75 6d 62 65 72 | 20 69 6e 20 69 74 3b 0a |n number| in it;.|
|000035c0| 58 74 68 69 73 20 66 69 | 65 6c 64 20 6d 75 73 74 |Xthis fi|eld must|
|000035d0| 20 62 65 20 74 77 6f 20 | 28 32 29 2e 0a 58 2e 4c | be two |(2)..X.L|
|000035e0| 50 0a 58 54 68 65 20 72 | 65 70 6c 79 20 6d 65 73 |P.XThe r|eply mes|
|000035f0| 73 61 67 65 20 74 6f 20 | 61 20 72 65 71 75 65 73 |sage to |a reques|
|00003600| 74 20 6d 65 73 73 61 67 | 65 20 68 61 73 20 65 6e |t messag|e has en|
|00003610| 6f 75 67 68 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ough inf|ormation|
|00003620| 0a 58 74 6f 20 64 69 73 | 74 69 6e 67 75 69 73 68 |.Xto dis|tinguish|
|00003630| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 65 | the fol|lowing e|
|00003640| 72 72 6f 72 20 63 6f 6e | 64 69 74 69 6f 6e 73 3a |rror con|ditions:|
|00003650| 0a 58 2e 49 50 20 31 2e | 0a 58 54 68 65 20 72 65 |.X.IP 1.|.XThe re|
|00003660| 6d 6f 74 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |mote imp|lementat|
|00003670| 69 6f 6e 20 6f 66 20 52 | 50 43 20 64 6f 65 73 20 |ion of R|PC does |
|00003680| 73 70 65 61 6b 20 70 72 | 6f 74 6f 63 6f 6c 20 76 |speak pr|otocol v|
|00003690| 65 72 73 69 6f 6e 20 32 | 2e 20 20 54 68 65 0a 58 |ersion 2|. The.X|
|000036a0| 6c 6f 77 65 73 74 20 61 | 6e 64 20 68 69 67 68 65 |lowest a|nd highe|
|000036b0| 73 74 20 73 75 70 70 6f | 72 74 65 64 20 52 50 43 |st suppo|rted RPC|
|000036c0| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 73 | version| numbers|
|000036d0| 20 61 72 65 20 72 65 74 | 75 72 6e 65 64 2e 0a 58 | are ret|urned..X|
|000036e0| 2e 49 50 20 32 2e 0a 58 | 54 68 65 20 72 65 6d 6f |.IP 2..X|The remo|
|000036f0| 74 65 20 70 72 6f 67 72 | 61 6d 20 69 73 20 6e 6f |te progr|am is no|
|00003700| 74 20 61 76 61 69 6c 61 | 62 6c 65 20 6f 6e 20 74 |t availa|ble on t|
|00003710| 68 65 20 72 65 6d 6f 74 | 65 20 73 79 73 74 65 6d |he remot|e system|
|00003720| 2e 0a 58 2e 49 50 20 33 | 2e 0a 58 54 68 65 20 72 |..X.IP 3|..XThe r|
|00003730| 65 6d 6f 74 65 20 70 72 | 6f 67 72 61 6d 20 64 6f |emote pr|ogram do|
|00003740| 65 73 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 20 74 |es not s|upport t|
|00003750| 68 65 20 72 65 71 75 65 | 73 74 65 64 20 76 65 72 |he reque|sted ver|
|00003760| 73 69 6f 6e 20 6e 75 6d | 62 65 72 2e 0a 58 54 68 |sion num|ber..XTh|
|00003770| 65 20 6c 6f 77 65 73 74 | 20 61 6e 64 20 68 69 67 |e lowest| and hig|
|00003780| 68 65 73 74 20 73 75 70 | 70 6f 72 74 65 64 0a 58 |hest sup|ported.X|
|00003790| 72 65 6d 6f 74 65 20 70 | 72 6f 67 72 61 6d 20 76 |remote p|rogram v|
|000037a0| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 73 20 61 |ersion n|umbers a|
|000037b0| 72 65 20 72 65 74 75 72 | 6e 65 64 2e 0a 58 2e 49 |re retur|ned..X.I|
|000037c0| 50 20 34 2e 0a 58 54 68 | 65 20 72 65 71 75 65 73 |P 4..XTh|e reques|
|000037d0| 74 65 64 20 70 72 6f 63 | 65 64 75 72 65 20 6e 75 |ted proc|edure nu|
|000037e0| 6d 62 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 65 78 |mber doe|s not ex|
|000037f0| 69 73 74 0a 58 28 74 68 | 69 73 20 69 73 20 75 73 |ist.X(th|is is us|
|00003800| 75 61 6c 6c 79 20 61 20 | 63 61 6c 6c 65 72 20 73 |ually a |caller s|
|00003810| 69 64 65 20 70 72 6f 74 | 6f 63 6f 6c 20 6f 72 20 |ide prot|ocol or |
|00003820| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 65 72 72 6f |programm|ing erro|
|00003830| 72 29 2e 0a 58 2e 49 50 | 20 35 2e 0a 58 54 68 65 |r)..X.IP| 5..XThe|
|00003840| 20 70 61 72 61 6d 65 74 | 65 72 73 20 74 6f 20 74 | paramet|ers to t|
|00003850| 68 65 20 72 65 6d 6f 74 | 65 20 70 72 6f 63 65 64 |he remot|e proced|
|00003860| 75 72 65 0a 58 61 70 70 | 65 61 72 20 74 6f 20 62 |ure.Xapp|ear to b|
|00003870| 65 20 67 61 72 62 61 67 | 65 20 66 72 6f 6d 20 74 |e garbag|e from t|
|00003880| 68 65 20 73 65 72 76 65 | 72 27 73 20 70 6f 69 6e |he serve|r's poin|
|00003890| 74 20 6f 66 20 76 69 65 | 77 2e 0a 58 28 41 67 61 |t of vie|w..X(Aga|
|000038a0| 69 6e 2c 20 74 68 69 73 | 20 69 73 20 63 61 75 73 |in, this| is caus|
|000038b0| 65 64 20 62 79 20 61 20 | 64 69 73 61 67 72 65 65 |ed by a |disagree|
|000038c0| 6d 65 6e 74 20 61 62 6f | 75 74 20 74 68 65 0a 58 |ment abo|ut the.X|
|000038d0| 70 72 6f 74 6f 63 6f 6c | 20 62 65 74 77 65 65 6e |protocol| between|
|000038e0| 20 63 6c 69 65 6e 74 20 | 61 6e 64 20 73 65 72 76 | client |and serv|
|000038f0| 69 63 65 2e 29 0a 58 2e | 4e 48 20 32 0a 58 41 75 |ice.).X.|NH 2.XAu|
|00003900| 74 68 65 6e 74 69 63 61 | 74 69 6f 6e 0a 58 2e 4c |thentica|tion.X.L|
|00003910| 50 0a 58 50 72 6f 76 69 | 73 69 6f 6e 73 20 66 6f |P.XProvi|sions fo|
|00003920| 72 20 61 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |r authen|tication|
|00003930| 20 6f 66 20 63 61 6c 6c | 65 72 20 74 6f 20 73 65 | of call|er to se|
|00003940| 72 76 69 63 65 20 61 6e | 64 20 76 69 63 65 20 76 |rvice an|d vice v|
|00003950| 65 72 73 61 20 61 72 65 | 0a 58 70 72 6f 76 69 64 |ersa are|.Xprovid|
|00003960| 65 64 20 61 73 20 61 20 | 77 61 72 74 20 6f 6e 20 |ed as a |wart on |
|00003970| 74 68 65 20 73 69 64 65 | 20 6f 66 20 74 68 65 20 |the side| of the |
|00003980| 52 50 43 20 70 72 6f 74 | 6f 63 6f 6c 2e 20 20 54 |RPC prot|ocol. T|
|00003990| 68 65 20 63 61 6c 6c 20 | 6d 65 73 73 61 67 65 0a |he call |message.|
|000039a0| 58 68 61 73 20 74 77 6f | 20 61 75 74 68 65 6e 74 |Xhas two| authent|
|000039b0| 69 63 61 74 69 6f 6e 20 | 66 69 65 6c 64 73 2c 20 |ication |fields, |
|000039c0| 74 68 65 20 63 72 65 64 | 65 6e 74 69 61 6c 73 20 |the cred|entials |
|000039d0| 61 6e 64 20 76 65 72 69 | 66 69 65 72 2e 0a 58 54 |and veri|fier..XT|
|000039e0| 68 65 20 72 65 70 6c 79 | 20 6d 65 73 73 61 67 65 |he reply| message|
|000039f0| 20 68 61 73 20 6f 6e 65 | 20 61 75 74 68 65 6e 74 | has one| authent|
|00003a00| 69 63 61 74 69 6f 6e 20 | 66 69 65 6c 64 2c 0a 58 |ication |field,.X|
|00003a10| 74 68 65 20 72 65 73 70 | 6f 6e 73 65 20 76 65 72 |the resp|onse ver|
|00003a20| 69 66 69 65 72 2e 0a 58 | 54 68 65 20 52 50 43 20 |ifier..X|The RPC |
|00003a30| 70 72 6f 74 6f 63 6f 6c | 20 73 70 65 63 69 66 69 |protocol| specifi|
|00003a40| 63 61 74 69 6f 6e 20 64 | 65 66 69 6e 65 73 20 61 |cation d|efines a|
|00003a50| 6c 6c 20 74 68 72 65 65 | 20 66 69 65 6c 64 73 0a |ll three| fields.|
|00003a60| 58 74 6f 20 62 65 20 74 | 68 65 20 66 6f 6c 6c 6f |Xto be t|he follo|
|00003a70| 77 69 6e 67 20 6f 70 61 | 71 75 65 20 74 79 70 65 |wing opa|que type|
|00003a80| 3a 0a 58 2e 42 53 0a 58 | 2e 4c 53 0a 58 65 6e 75 |:.X.BS.X|.LS.Xenu|
|00003a90| 6d 20 61 75 74 68 5f 66 | 6c 61 76 6f 72 20 7b 0a |m auth_f|lavor {.|
|00003aa0| 58 09 41 55 54 48 5f 4e | 55 4c 4c 09 3d 20 30 2c |X.AUTH_N|ULL.= 0,|
|00003ab0| 0a 58 09 41 55 54 48 5f | 55 4e 49 58 09 3d 20 31 |.X.AUTH_|UNIX.= 1|
|00003ac0| 2c 0a 58 09 41 55 54 48 | 5f 53 48 4f 52 54 09 3d |,.X.AUTH|_SHORT.=|
|00003ad0| 20 32 0a 58 09 2f 2a 20 | 61 6e 64 20 6d 6f 72 65 | 2.X./* |and more|
|00003ae0| 20 74 6f 20 62 65 20 64 | 65 66 69 6e 65 64 20 2a | to be d|efined *|
|00003af0| 2f 0a 58 7d 3b 0a 58 2e | 73 70 2e 35 0a 58 73 74 |/.X};.X.|sp.5.Xst|
|00003b00| 72 75 63 74 20 6f 70 61 | 71 75 65 5f 61 75 74 68 |ruct opa|que_auth|
|00003b10| 20 7b 0a 58 09 75 6e 69 | 6f 6e 20 73 77 69 74 63 | {.X.uni|on switc|
|00003b20| 68 20 28 65 6e 75 6d 20 | 61 75 74 68 5f 66 6c 61 |h (enum |auth_fla|
|00003b30| 76 6f 72 29 20 7b 0a 58 | 09 09 64 65 66 61 75 6c |vor) {.X|..defaul|
|00003b40| 74 3a 20 73 74 72 69 6e | 67 20 61 75 74 68 5f 62 |t: strin|g auth_b|
|00003b50| 6f 64 79 3c 34 30 30 3e | 3b 0a 58 09 7d 3b 0a 58 |ody<400>|;.X.};.X|
|00003b60| 7d 3b 0a 58 2e 4c 66 0a | 58 2e 42 45 0a 58 49 6e |};.X.Lf.|X.BE.XIn|
|00003b70| 20 73 69 6d 70 6c 65 20 | 45 6e 67 6c 69 73 68 2c | simple |English,|
|00003b80| 20 61 6e 79 0a 58 2e 4c | 57 20 6f 70 61 71 75 65 | any.X.L|W opaque|
|00003b90| 5f 61 75 74 68 0a 58 73 | 74 72 75 63 74 75 72 65 |_auth.Xs|tructure|
|00003ba0| 20 69 73 20 61 6e 0a 58 | 2e 4c 57 20 61 75 74 68 | is an.X|.LW auth|
|00003bb0| 5f 66 6c 61 76 6f 72 0a | 58 65 6e 75 6d 65 72 61 |_flavor.|Xenumera|
|00003bc0| 74 69 6f 6e 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 |tion fol|lowed by|
|00003bd0| 20 61 20 63 6f 75 6e 74 | 65 64 20 73 74 72 69 6e | a count|ed strin|
|00003be0| 67 2c 0a 58 77 68 6f 73 | 65 20 62 79 74 65 73 20 |g,.Xwhos|e bytes |
|00003bf0| 61 72 65 20 6f 70 61 71 | 75 65 20 74 6f 20 74 68 |are opaq|ue to th|
|00003c00| 65 20 52 50 43 20 70 72 | 6f 74 6f 63 6f 6c 20 69 |e RPC pr|otocol i|
|00003c10| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 2e 0a 58 |mplement|ation..X|
|00003c20| 2e 4c 50 0a 58 54 68 65 | 20 69 6e 74 65 72 70 72 |.LP.XThe| interpr|
|00003c30| 65 74 61 74 69 6f 6e 20 | 61 6e 64 20 73 65 6d 61 |etation |and sema|
|00003c40| 6e 74 69 63 73 20 6f 66 | 20 74 68 65 20 64 61 74 |ntics of| the dat|
|00003c50| 61 20 63 6f 6e 74 61 69 | 6e 65 64 0a 58 77 69 74 |a contai|ned.Xwit|
|00003c60| 68 69 6e 20 74 68 65 20 | 61 75 74 68 65 6e 74 69 |hin the |authenti|
|00003c70| 63 61 74 69 6f 6e 20 66 | 69 65 6c 64 73 20 69 73 |cation f|ields is|
|00003c80| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 69 6e | specifi|ed by in|
|00003c90| 64 69 76 69 64 75 61 6c | 2c 0a 58 69 6e 64 65 70 |dividual|,.Xindep|
|00003ca0| 65 6e 64 65 6e 74 20 61 | 75 74 68 65 6e 74 69 63 |endent a|uthentic|
|00003cb0| 61 74 69 6f 6e 20 70 72 | 6f 74 6f 63 6f 6c 20 73 |ation pr|otocol s|
|00003cc0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 73 2e 0a 58 |pecifica|tions..X|
|00003cd0| 41 70 70 65 6e 64 69 78 | 20 41 20 64 65 66 69 6e |Appendix| A defin|
|00003ce0| 65 73 20 74 68 72 65 65 | 20 61 75 74 68 65 6e 74 |es three| authent|
|00003cf0| 69 63 61 74 69 6f 6e 20 | 70 72 6f 74 6f 63 6f 6c |ication |protocol|
|00003d00| 73 2e 0a 58 2e 4c 50 0a | 58 49 66 20 61 75 74 68 |s..X.LP.|XIf auth|
|00003d10| 65 6e 74 69 63 61 74 69 | 6f 6e 20 70 61 72 61 6d |enticati|on param|
|00003d20| 65 74 65 72 73 20 77 65 | 72 65 20 72 65 6a 65 63 |eters we|re rejec|
|00003d30| 74 65 64 2c 0a 58 74 68 | 65 20 72 65 73 70 6f 6e |ted,.Xth|e respon|
|00003d40| 73 65 20 6d 65 73 73 61 | 67 65 20 63 6f 6e 74 61 |se messa|ge conta|
|00003d50| 69 6e 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ins info|rmation |
|00003d60| 73 74 61 74 69 6e 67 0a | 58 77 68 79 20 74 68 65 |stating.|Xwhy the|
|00003d70| 79 20 77 65 72 65 20 72 | 65 6a 65 63 74 65 64 2e |y were r|ejected.|
|00003d80| 0a 58 2e 4e 48 20 32 0a | 58 50 72 6f 67 72 61 6d |.X.NH 2.|XProgram|
|00003d90| 20 4e 75 6d 62 65 72 20 | 41 73 73 69 67 6e 6d 65 | Number |Assignme|
|00003da0| 6e 74 0a 58 2e 4c 50 0a | 58 50 72 6f 67 72 61 6d |nt.X.LP.|XProgram|
|00003db0| 20 6e 75 6d 62 65 72 73 | 20 61 72 65 20 67 69 76 | numbers| are giv|
|00003dc0| 65 6e 20 6f 75 74 20 69 | 6e 20 67 72 6f 75 70 73 |en out i|n groups|
|00003dd0| 20 6f 66 20 30 78 32 30 | 30 30 30 30 30 30 20 28 | of 0x20|000000 (|
|00003de0| 35 33 36 38 37 30 39 31 | 32 29 0a 58 61 63 63 6f |53687091|2).Xacco|
|00003df0| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 66 6f 6c |rding to| the fol|
|00003e00| 6c 6f 77 69 6e 67 20 63 | 68 61 72 74 3a 0a 58 2e |lowing c|hart:.X.|
|00003e10| 42 53 0a 58 2e 4c 53 0a | 58 20 20 20 20 20 20 20 |BS.X.LS.|X |
|00003e20| 30 20 2d 20 31 66 66 66 | 66 66 66 66 09 64 65 66 |0 - 1fff|ffff.def|
|00003e30| 69 6e 65 64 20 62 79 20 | 53 75 6e 0a 58 32 30 30 |ined by |Sun.X200|
|00003e40| 30 30 30 30 30 20 2d 20 | 33 66 66 66 66 66 66 66 |00000 - |3fffffff|
|00003e50| 09 64 65 66 69 6e 65 64 | 20 62 79 20 75 73 65 72 |.defined| by user|
|00003e60| 0a 58 34 30 30 30 30 30 | 30 30 20 2d 20 35 66 66 |.X400000|00 - 5ff|
|00003e70| 66 66 66 66 66 09 74 72 | 61 6e 73 69 65 6e 74 0a |fffff.tr|ansient.|
|00003e80| 58 36 30 30 30 30 30 30 | 30 20 2d 20 37 66 66 66 |X6000000|0 - 7fff|
|00003e90| 66 66 66 66 09 72 65 73 | 65 72 76 65 64 0a 58 38 |ffff.res|erved.X8|
|00003ea0| 30 30 30 30 30 30 30 20 | 2d 20 39 66 66 66 66 66 |0000000 |- 9fffff|
|00003eb0| 66 66 09 72 65 73 65 72 | 76 65 64 0a 58 61 30 30 |ff.reser|ved.Xa00|
|00003ec0| 30 30 30 30 30 20 2d 20 | 62 66 66 66 66 66 66 66 |00000 - |bfffffff|
|00003ed0| 09 72 65 73 65 72 76 65 | 64 0a 58 63 30 30 30 30 |.reserve|d.Xc0000|
|00003ee0| 30 30 30 20 2d 20 64 66 | 66 66 66 66 66 66 09 72 |000 - df|ffffff.r|
|00003ef0| 65 73 65 72 76 65 64 0a | 58 65 30 30 30 30 30 30 |eserved.|Xe000000|
|00003f00| 30 20 2d 20 66 66 66 66 | 66 66 66 66 09 72 65 73 |0 - ffff|ffff.res|
|00003f10| 65 72 76 65 64 0a 58 2e | 4c 66 0a 58 2e 42 45 0a |erved.X.|Lf.X.BE.|
|00003f20| 58 54 68 65 20 66 69 72 | 73 74 20 67 72 6f 75 70 |XThe fir|st group|
|00003f30| 20 69 73 20 61 20 72 61 | 6e 67 65 20 6f 66 20 6e | is a ra|nge of n|
|00003f40| 75 6d 62 65 72 73 20 61 | 64 6d 69 6e 69 73 74 65 |umbers a|dministe|
|00003f50| 72 65 64 20 62 79 20 53 | 75 6e 20 4d 69 63 72 6f |red by S|un Micro|
|00003f60| 73 79 73 74 65 6d 73 2c | 0a 58 61 6e 64 20 73 68 |systems,|.Xand sh|
|00003f70| 6f 75 6c 64 20 62 65 20 | 69 64 65 6e 74 69 63 61 |ould be |identica|
|00003f80| 6c 20 66 6f 72 20 61 6c | 6c 20 53 75 6e 20 63 75 |l for al|l Sun cu|
|00003f90| 73 74 6f 6d 65 72 73 2e | 20 20 54 68 65 20 73 65 |stomers.| The se|
|00003fa0| 63 6f 6e 64 20 72 61 6e | 67 65 0a 58 69 73 20 66 |cond ran|ge.Xis f|
|00003fb0| 6f 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |or appli|cations |
|00003fc0| 70 65 63 75 6c 69 61 72 | 20 74 6f 20 61 20 70 61 |peculiar| to a pa|
|00003fd0| 72 74 69 63 75 6c 61 72 | 20 63 75 73 74 6f 6d 65 |rticular| custome|
|00003fe0| 72 2e 0a 58 54 68 69 73 | 20 72 61 6e 67 65 20 69 |r..XThis| range i|
|00003ff0| 73 20 69 6e 74 65 6e 64 | 65 64 20 70 72 69 6d 61 |s intend|ed prima|
|00004000| 72 69 6c 79 20 66 6f 72 | 20 64 65 62 75 67 67 69 |rily for| debuggi|
|00004010| 6e 67 20 6e 65 77 20 70 | 72 6f 67 72 61 6d 73 2e |ng new p|rograms.|
|00004020| 0a 58 57 68 65 6e 20 61 | 20 63 75 73 74 6f 6d 65 |.XWhen a| custome|
|00004030| 72 20 64 65 76 65 6c 6f | 70 73 20 61 6e 20 61 70 |r develo|ps an ap|
|00004040| 70 6c 69 63 61 74 69 6f | 6e 20 74 68 61 74 20 6d |plicatio|n that m|
|00004050| 69 67 68 74 20 62 65 20 | 6f 66 20 67 65 6e 65 72 |ight be |of gener|
|00004060| 61 6c 0a 58 69 6e 74 65 | 72 65 73 74 2c 20 74 68 |al.Xinte|rest, th|
|00004070| 61 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |at appli|cation s|
|00004080| 68 6f 75 6c 64 20 62 65 | 20 67 69 76 65 6e 20 61 |hould be| given a|
|00004090| 6e 20 61 73 73 69 67 6e | 65 64 20 6e 75 6d 62 65 |n assign|ed numbe|
|000040a0| 72 0a 58 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |r.Xin th|e first |
|000040b0| 72 61 6e 67 65 2e 20 20 | 54 68 65 20 74 68 69 72 |range. |The thir|
|000040c0| 64 20 67 72 6f 75 70 20 | 69 73 20 66 6f 72 20 61 |d group |is for a|
|000040d0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|000040e0| 0a 58 67 65 6e 65 72 61 | 74 65 20 70 72 6f 67 72 |.Xgenera|te progr|
|000040f0| 61 6d 20 6e 75 6d 62 65 | 72 73 20 64 79 6e 61 6d |am numbe|rs dynam|
|00004100| 69 63 61 6c 6c 79 2e 20 | 20 54 68 65 20 66 69 6e |ically. | The fin|
|00004110| 61 6c 20 67 72 6f 75 70 | 73 0a 58 61 72 65 20 72 |al group|s.Xare r|
|00004120| 65 73 65 72 76 65 72 65 | 64 20 66 6f 72 20 66 75 |eservere|d for fu|
|00004130| 74 75 72 65 20 75 73 65 | 2c 20 61 6e 64 20 73 68 |ture use|, and sh|
|00004140| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 75 73 65 64 |ould not| be used|
|00004150| 2e 0a 58 2e 4e 48 20 32 | 0a 58 4f 74 68 65 72 20 |..X.NH 2|.XOther |
|00004160| 55 73 65 73 20 6f 66 20 | 74 68 65 20 52 50 43 20 |Uses of |the RPC |
|00004170| 50 72 6f 74 6f 63 6f 6c | 0a 58 2e 4c 50 0a 58 54 |Protocol|.X.LP.XT|
|00004180| 68 65 20 69 6e 74 65 6e | 64 65 64 20 75 73 65 20 |he inten|ded use |
|00004190| 6f 66 20 74 68 69 73 20 | 70 72 6f 74 6f 63 6f 6c |of this |protocol|
|000041a0| 20 69 73 20 66 6f 72 20 | 63 61 6c 6c 69 6e 67 20 | is for |calling |
|000041b0| 72 65 6d 6f 74 65 20 70 | 72 6f 63 65 64 75 72 65 |remote p|rocedure|
|000041c0| 73 2e 0a 58 54 68 61 74 | 20 69 73 2c 20 65 61 63 |s..XThat| is, eac|
|000041d0| 68 20 63 61 6c 6c 20 6d | 65 73 73 61 67 65 20 69 |h call m|essage i|
|000041e0| 73 20 6d 61 74 63 68 65 | 64 20 77 69 74 68 20 61 |s matche|d with a|
|000041f0| 20 72 65 73 70 6f 6e 73 | 65 20 6d 65 73 73 61 67 | respons|e messag|
|00004200| 65 2e 0a 58 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |e..XHowe|ver, the|
|00004210| 20 70 72 6f 74 6f 63 6f | 6c 20 69 74 73 65 6c 66 | protoco|l itself|
|00004220| 20 69 73 20 61 20 6d 65 | 73 73 61 67 65 20 70 61 | is a me|ssage pa|
|00004230| 73 73 69 6e 67 20 70 72 | 6f 74 6f 63 6f 6c 0a 58 |ssing pr|otocol.X|
|00004240| 77 69 74 68 20 77 68 69 | 63 68 20 6f 74 68 65 72 |with whi|ch other|
|00004250| 20 28 6e 6f 6e 2d 52 50 | 43 29 20 70 72 6f 74 6f | (non-RP|C) proto|
|00004260| 63 6f 6c 73 20 63 61 6e | 20 62 65 20 69 6d 70 6c |cols can| be impl|
|00004270| 65 6d 65 6e 74 65 64 2e | 0a 58 53 75 6e 20 63 75 |emented.|.XSun cu|
|00004280| 72 72 65 6e 74 6c 79 20 | 75 73 65 73 2c 20 6f 72 |rrently |uses, or|
|00004290| 20 70 65 72 68 61 70 73 | 20 61 62 75 73 65 73 2c | perhaps| abuses,|
|000042a0| 0a 58 74 68 65 20 52 50 | 43 20 6d 65 73 73 61 67 |.Xthe RP|C messag|
|000042b0| 65 20 70 72 6f 74 6f 63 | 6f 6c 20 66 6f 72 20 74 |e protoc|ol for t|
|000042c0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 77 6f |he follo|wing two|
|000042d0| 20 28 6e 6f 6e 2d 52 50 | 43 29 20 70 72 6f 74 6f | (non-RP|C) proto|
|000042e0| 63 6f 6c 73 3a 0a 58 62 | 61 74 63 68 69 6e 67 20 |cols:.Xb|atching |
|000042f0| 28 6f 72 20 70 69 70 65 | 6c 69 6e 69 6e 67 29 20 |(or pipe|lining) |
|00004300| 61 6e 64 20 62 72 6f 61 | 64 63 61 73 74 20 52 50 |and broa|dcast RP|
|00004310| 43 2e 0a 58 54 68 65 73 | 65 20 74 77 6f 20 70 72 |C..XThes|e two pr|
|00004320| 6f 74 6f 63 6f 6c 73 20 | 61 72 65 20 64 69 73 63 |otocols |are disc|
|00004330| 75 73 73 65 64 20 62 75 | 74 20 6e 6f 74 20 64 65 |ussed bu|t not de|
|00004340| 66 69 6e 65 64 20 62 65 | 6c 6f 77 2e 0a 58 2e 4e |fined be|low..X.N|
|00004350| 48 20 33 0a 58 42 61 74 | 63 68 69 6e 67 0a 58 2e |H 3.XBat|ching.X.|
|00004360| 4c 50 0a 58 42 61 74 63 | 68 69 6e 67 20 61 6c 6c |LP.XBatc|hing all|
|00004370| 6f 77 73 20 61 20 63 6c | 69 65 6e 74 20 74 6f 20 |ows a cl|ient to |
|00004380| 73 65 6e 64 20 61 6e 20 | 61 72 62 69 74 72 61 72 |send an |arbitrar|
|00004390| 69 6c 79 20 6c 61 72 67 | 65 20 73 65 71 75 65 6e |ily larg|e sequen|
|000043a0| 63 65 0a 58 6f 66 20 63 | 61 6c 6c 20 6d 65 73 73 |ce.Xof c|all mess|
|000043b0| 61 67 65 73 20 74 6f 20 | 61 20 73 65 72 76 65 72 |ages to |a server|
|000043c0| 3b 0a 58 62 61 74 63 68 | 69 6e 67 20 75 73 65 73 |;.Xbatch|ing uses|
|000043d0| 20 72 65 6c 69 61 62 6c | 65 20 62 79 74 65 73 20 | reliabl|e bytes |
|000043e0| 73 74 72 65 61 6d 20 70 | 72 6f 74 6f 63 6f 6c 73 |stream p|rotocols|
|000043f0| 20 28 6c 69 6b 65 20 54 | 43 50 2f 49 50 29 0a 58 | (like T|CP/IP).X|
|00004400| 66 6f 72 20 74 68 65 69 | 72 20 74 72 61 6e 73 70 |for thei|r transp|
|00004410| 6f 72 74 2e 0a 58 49 6e | 20 74 68 65 20 63 61 73 |ort..XIn| the cas|
|00004420| 65 20 6f 66 20 62 61 74 | 63 68 69 6e 67 2c 20 74 |e of bat|ching, t|
|00004430| 68 65 20 63 6c 69 65 6e | 74 20 6e 65 76 65 72 20 |he clien|t never |
|00004440| 77 61 69 74 73 20 66 6f | 72 20 61 20 72 65 70 6c |waits fo|r a repl|
|00004450| 79 0a 58 66 72 6f 6d 20 | 74 68 65 20 73 65 72 76 |y.Xfrom |the serv|
|00004460| 65 72 20 61 6e 64 20 74 | 68 65 20 73 65 72 76 65 |er and t|he serve|
|00004470| 72 20 64 6f 65 73 20 6e | 6f 74 20 73 65 6e 64 20 |r does n|ot send |
|00004480| 72 65 70 6c 69 65 73 20 | 74 6f 20 62 61 74 63 68 |replies |to batch|
|00004490| 20 72 65 71 75 65 73 74 | 73 2e 0a 58 41 20 73 65 | request|s..XA se|
|000044a0| 71 75 65 6e 63 65 20 6f | 66 20 62 61 74 63 68 20 |quence o|f batch |
|000044b0| 63 61 6c 6c 73 20 69 73 | 20 75 73 75 61 6c 6c 79 |calls is| usually|
|000044c0| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 62 79 20 61 | termina|ted by a|
|000044d0| 20 6c 65 67 69 74 69 6d | 61 74 65 0a 58 52 50 43 | legitim|ate.XRPC|
|000044e0| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 66 6c 75 | in orde|r to flu|
|000044f0| 73 68 20 74 68 65 20 70 | 69 70 65 6c 69 6e 65 20 |sh the p|ipeline |
|00004500| 28 77 69 74 68 20 70 6f | 73 69 74 69 76 65 20 61 |(with po|sitive a|
|00004510| 63 6b 6e 6f 77 6c 65 64 | 67 65 6d 65 6e 74 29 2e |cknowled|gement).|
|00004520| 0a 58 2e 4e 48 20 33 0a | 58 42 72 6f 61 64 63 61 |.X.NH 3.|XBroadca|
|00004530| 73 74 20 52 50 43 0a 58 | 2e 4c 50 0a 58 49 6e 20 |st RPC.X|.LP.XIn |
|00004540| 62 72 6f 61 64 63 61 73 | 74 20 52 50 43 20 62 61 |broadcas|t RPC ba|
|00004550| 73 65 64 20 70 72 6f 74 | 6f 63 6f 6c 73 2c 0a 58 |sed prot|ocols,.X|
|00004560| 74 68 65 20 63 6c 69 65 | 6e 74 20 73 65 6e 64 73 |the clie|nt sends|
|00004570| 20 61 6e 20 61 20 62 72 | 6f 61 64 63 61 73 74 20 | an a br|oadcast |
|00004580| 70 61 63 6b 65 74 20 74 | 6f 0a 58 74 68 65 20 6e |packet t|o.Xthe n|
|00004590| 65 74 77 6f 72 6b 20 61 | 6e 64 20 77 61 69 74 73 |etwork a|nd waits|
|000045a0| 20 66 6f 72 20 6e 75 6d | 65 72 6f 75 73 20 72 65 | for num|erous re|
|000045b0| 70 6c 69 65 73 2e 0a 58 | 42 72 6f 61 64 63 61 73 |plies..X|Broadcas|
|000045c0| 74 20 52 50 43 20 75 73 | 65 73 20 75 6e 72 65 6c |t RPC us|es unrel|
|000045d0| 69 61 62 6c 65 2c 20 70 | 61 63 6b 65 74 20 62 61 |iable, p|acket ba|
|000045e0| 73 65 64 20 70 72 6f 74 | 6f 63 6f 6c 73 20 28 6c |sed prot|ocols (l|
|000045f0| 69 6b 65 20 55 44 50 2f | 49 50 29 0a 58 61 73 20 |ike UDP/|IP).Xas |
|00004600| 74 68 65 69 72 20 74 72 | 61 6e 73 70 6f 72 74 73 |their tr|ansports|
|00004610| 2e 0a 58 53 65 72 76 65 | 72 73 20 74 68 61 74 20 |..XServe|rs that |
|00004620| 73 75 70 70 6f 72 74 20 | 62 72 6f 61 64 63 61 73 |support |broadcas|
|00004630| 74 20 70 72 6f 74 6f 63 | 6f 6c 73 20 6f 6e 6c 79 |t protoc|ols only|
|00004640| 20 72 65 73 70 6f 6e 64 | 0a 58 77 68 65 6e 20 74 | respond|.Xwhen t|
|00004650| 68 65 20 72 65 71 75 65 | 73 74 20 69 73 20 73 75 |he reque|st is su|
|00004660| 63 63 65 73 73 66 75 6c | 6c 79 20 70 72 6f 63 65 |ccessful|ly proce|
|00004670| 73 73 65 64 2c 0a 58 61 | 6e 64 20 61 72 65 20 73 |ssed,.Xa|nd are s|
|00004680| 69 6c 65 6e 74 20 69 6e | 20 74 68 65 20 66 61 63 |ilent in| the fac|
|00004690| 65 20 6f 66 20 65 72 72 | 6f 72 73 2e 0a 58 2e 64 |e of err|ors..X.d|
|000046a0| 65 20 4e 45 0a 58 2e 62 | 72 0a 58 2e 6e 65 20 31 |e NE.X.b|r.X.ne 1|
|000046b0| 69 0a 58 2e 2e 0a 58 2e | 62 70 0a 58 2e 4e 48 0a |i.X...X.|bp.X.NH.|
|000046c0| 58 54 68 65 20 52 50 43 | 20 4d 65 73 73 61 67 65 |XThe RPC| Message|
|000046d0| 20 50 72 6f 74 6f 63 6f | 6c 0a 58 2e 4c 50 0a 58 | Protoco|l.X.LP.X|
|000046e0| 54 68 69 73 20 73 65 63 | 74 69 6f 6e 20 64 65 66 |This sec|tion def|
|000046f0| 69 6e 65 73 20 74 68 65 | 20 52 50 43 20 6d 65 73 |ines the| RPC mes|
|00004700| 73 61 67 65 20 70 72 6f | 74 6f 63 6f 6c 20 69 6e |sage pro|tocol in|
|00004710| 20 74 68 65 20 58 44 52 | 20 64 61 74 61 20 64 65 | the XDR| data de|
|00004720| 73 63 72 69 70 74 69 6f | 6e 0a 58 6c 61 6e 67 75 |scriptio|n.Xlangu|
|00004730| 61 67 65 2e 20 20 54 68 | 65 20 6d 65 73 73 61 67 |age. Th|e messag|
|00004740| 65 20 69 73 20 64 65 66 | 69 6e 65 64 20 69 6e 20 |e is def|ined in |
|00004750| 61 20 74 6f 70 20 64 6f | 77 6e 20 73 74 79 6c 65 |a top do|wn style|
|00004760| 2e 0a 58 4e 6f 74 65 3a | 20 54 68 69 73 20 69 73 |..XNote:| This is|
|00004770| 20 61 6e 20 58 44 52 20 | 73 70 65 63 69 66 69 63 | an XDR |specific|
|00004780| 61 74 69 6f 6e 2c 20 6e | 6f 74 20 43 20 63 6f 64 |ation, n|ot C cod|
|00004790| 65 2e 0a 58 2e 42 53 0a | 58 2e 4c 53 20 6e 6f 0a |e..X.BS.|X.LS no.|
|000047a0| 58 65 6e 75 6d 20 6d 73 | 67 5f 74 79 70 65 20 7b |Xenum ms|g_type {|
|000047b0| 0a 58 09 43 41 4c 4c 20 | 3d 20 30 2c 0a 58 09 52 |.X.CALL |= 0,.X.R|
|000047c0| 45 50 4c 59 20 3d 20 31 | 0a 58 7d 3b 0a 58 2e 73 |EPLY = 1|.X};.X.s|
|000047d0| 70 2e 35 0a 58 2e 4e 45 | 0a 58 2f 2a 0a 58 20 2a |p.5.X.NE|.X/*.X *|
|000047e0| 20 41 20 72 65 70 6c 79 | 20 74 6f 20 61 20 63 61 | A reply| to a ca|
|000047f0| 6c 6c 20 6d 65 73 73 61 | 67 65 20 63 61 6e 20 74 |ll messa|ge can t|
|00004800| 61 6b 65 20 6f 6e 20 74 | 77 6f 20 66 6f 72 6d 73 |ake on t|wo forms|
|00004810| 3a 0a 58 20 2a 20 74 68 | 65 20 6d 65 73 73 61 67 |:.X * th|e messag|
|00004820| 65 20 77 61 73 20 65 69 | 74 68 65 72 20 61 63 63 |e was ei|ther acc|
|00004830| 65 70 74 65 64 20 6f 72 | 20 72 65 6a 65 63 74 65 |epted or| rejecte|
|00004840| 64 2e 0a 58 20 2a 2f 0a | 58 65 6e 75 6d 20 72 65 |d..X */.|Xenum re|
|00004850| 70 6c 79 5f 73 74 61 74 | 20 7b 0a 58 09 4d 53 47 |ply_stat| {.X.MSG|
|00004860| 5f 41 43 43 45 50 54 45 | 44 20 3d 20 30 2c 0a 58 |_ACCEPTE|D = 0,.X|
|00004870| 09 4d 53 47 5f 44 45 4e | 49 45 44 20 3d 20 31 0a |.MSG_DEN|IED = 1.|
|00004880| 58 7d 3b 0a 58 2e 73 70 | 2e 35 0a 58 2e 4e 45 0a |X};.X.sp|.5.X.NE.|
|00004890| 58 2f 2a 0a 58 20 2a 20 | 47 69 76 65 6e 20 74 68 |X/*.X * |Given th|
|000048a0| 61 74 20 61 20 63 61 6c | 6c 20 6d 65 73 73 61 67 |at a cal|l messag|
|000048b0| 65 20 77 61 73 20 61 63 | 63 65 70 74 65 64 2c 20 |e was ac|cepted, |
|000048c0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 69 73 |the foll|owing is|
|000048d0| 0a 58 20 2a 20 74 68 65 | 20 73 74 61 74 75 73 20 |.X * the| status |
|000048e0| 6f 66 20 61 6e 20 61 74 | 74 65 6d 70 74 20 74 6f |of an at|tempt to|
|000048f0| 20 63 61 6c 6c 20 61 20 | 72 65 6d 6f 74 65 20 70 | call a |remote p|
|00004900| 72 6f 63 65 64 75 72 65 | 2e 0a 58 20 2a 2f 0a 58 |rocedure|..X */.X|
|00004910| 65 6e 75 6d 20 61 63 63 | 65 70 74 5f 73 74 61 74 |enum acc|ept_stat|
|00004920| 20 7b 0a 58 09 53 55 43 | 43 45 53 53 20 3d 20 30 | {.X.SUC|CESS = 0|
|00004930| 2c 09 20 20 2f 2a 20 52 | 50 43 20 65 78 65 63 75 |,. /* R|PC execu|
|00004940| 74 65 64 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |ted succ|essfully|
|00004950| 20 2a 2f 0a 58 09 50 52 | 4f 47 5f 55 4e 41 56 41 | */.X.PR|OG_UNAVA|
|00004960| 49 4c 20 3d 20 31 2c 20 | 2f 2a 20 72 65 6d 6f 74 |IL = 1, |/* remot|
|00004970| 65 20 68 61 73 6e 27 74 | 20 65 78 70 6f 72 74 65 |e hasn't| exporte|
|00004980| 64 20 70 72 6f 67 72 61 | 6d 20 2a 2f 0a 58 09 50 |d progra|m */.X.P|
|00004990| 52 4f 47 5f 4d 49 53 4d | 41 54 43 48 3d 20 32 2c |ROG_MISM|ATCH= 2,|
|000049a0| 20 2f 2a 20 72 65 6d 6f | 74 65 20 63 61 6e 27 74 | /* remo|te can't|
|000049b0| 20 73 75 70 70 6f 72 74 | 20 76 65 72 73 69 6f 6e | support| version|
|000049c0| 20 23 20 2a 2f 0a 58 09 | 50 52 4f 43 5f 55 4e 41 | # */.X.|PROC_UNA|
|000049d0| 56 41 49 4c 20 3d 20 33 | 2c 20 2f 2a 20 70 72 6f |VAIL = 3|, /* pro|
|000049e0| 67 72 61 6d 20 63 61 6e | 27 74 20 73 75 70 70 6f |gram can|'t suppo|
|000049f0| 72 74 20 70 72 6f 63 65 | 64 75 72 65 20 2a 2f 0a |rt proce|dure */.|
|00004a00| 58 09 47 41 52 42 41 47 | 45 5f 41 52 47 53 20 3d |X.GARBAG|E_ARGS =|
|00004a10| 20 34 20 20 2f 2a 20 70 | 72 6f 63 65 64 75 72 65 | 4 /* p|rocedure|
|00004a20| 20 63 61 6e 27 74 20 64 | 65 63 6f 64 65 20 70 61 | can't d|ecode pa|
|00004a30| 72 61 6d 73 20 2a 2f 0a | 58 7d 3b 0a 58 2e 73 70 |rams */.|X};.X.sp|
|00004a40| 2e 35 0a 58 2e 4e 45 0a | 58 2f 2a 0a 58 20 2a 20 |.5.X.NE.|X/*.X * |
|00004a50| 52 65 61 73 6f 6e 73 20 | 77 68 79 20 61 20 63 61 |Reasons |why a ca|
|00004a60| 6c 6c 20 6d 65 73 73 61 | 67 65 20 77 61 73 20 72 |ll messa|ge was r|
|00004a70| 65 6a 65 63 74 65 64 3a | 0a 58 20 2a 2f 0a 58 65 |ejected:|.X */.Xe|
|00004a80| 6e 75 6d 20 72 65 6a 65 | 63 74 5f 73 74 61 74 20 |num reje|ct_stat |
|00004a90| 7b 0a 58 09 52 50 43 5f | 4d 49 53 4d 41 54 43 48 |{.X.RPC_|MISMATCH|
|00004aa0| 20 3d 20 30 2c 20 2f 2a | 20 52 50 43 20 76 65 72 | = 0, /*| RPC ver|
|00004ab0| 73 69 6f 6e 20 6e 75 6d | 62 65 72 20 21 3d 20 32 |sion num|ber != 2|
|00004ac0| 20 2a 2f 0a 58 09 41 55 | 54 48 5f 45 52 52 4f 52 | */.X.AU|TH_ERROR|
|00004ad0| 20 3d 20 31 20 20 20 20 | 2f 2a 20 72 65 6d 6f 74 | = 1 |/* remot|
|00004ae0| 65 20 63 61 6e 27 74 20 | 61 75 74 68 65 6e 74 69 |e can't |authenti|
|00004af0| 63 61 74 65 20 63 61 6c | 6c 65 72 20 2a 2f 0a 58 |cate cal|ler */.X|
|00004b00| 7d 3b 0a 58 2e 73 70 2e | 35 0a 58 2e 4e 45 0a 58 |};.X.sp.|5.X.NE.X|
|00004b10| 2f 2a 0a 58 20 2a 20 57 | 68 79 20 61 75 74 68 65 |/*.X * W|hy authe|
|00004b20| 6e 74 69 63 61 74 69 6f | 6e 20 66 61 69 6c 65 64 |nticatio|n failed|
|00004b30| 3a 0a 58 20 2a 2f 0a 58 | 65 6e 75 6d 20 61 75 74 |:.X */.X|enum aut|
|00004b40| 68 5f 73 74 61 74 20 7b | 0a 58 09 41 55 54 48 5f |h_stat {|.X.AUTH_|
|00004b50| 42 41 44 43 52 45 44 20 | 3d 20 31 2c 20 20 20 20 |BADCRED |= 1, |
|00004b60| 2f 2a 20 62 61 64 20 63 | 72 65 64 65 6e 74 69 61 |/* bad c|redentia|
|00004b70| 6c 73 20 28 73 65 61 6c | 20 62 72 6f 6b 65 6e 29 |ls (seal| broken)|
|00004b80| 20 2a 2f 0a 58 09 41 55 | 54 48 5f 52 45 4a 45 43 | */.X.AU|TH_REJEC|
|00004b90| 54 45 44 43 52 45 44 3d | 32 2c 20 2f 2a 20 63 6c |TEDCRED=|2, /* cl|
|00004ba0| 69 65 6e 74 20 6d 75 73 | 74 20 62 65 67 69 6e 20 |ient mus|t begin |
|00004bb0| 6e 65 77 20 73 65 73 73 | 69 6f 6e 20 2a 2f 0a 58 |new sess|ion */.X|
|00004bc0| 09 41 55 54 48 5f 42 41 | 44 56 45 52 46 20 3d 20 |.AUTH_BA|DVERF = |
|00004bd0| 33 2c 20 20 20 20 2f 2a | 20 62 61 64 20 76 65 72 |3, /*| bad ver|
|00004be0| 69 66 69 65 72 20 28 73 | 65 61 6c 20 62 72 6f 6b |ifier (s|eal brok|
|00004bf0| 65 6e 29 20 2a 2f 0a 58 | 09 41 55 54 48 5f 52 45 |en) */.X|.AUTH_RE|
|00004c00| 4a 45 43 54 45 44 56 45 | 52 46 3d 34 2c 20 2f 2a |JECTEDVE|RF=4, /*|
|00004c10| 20 76 65 72 69 66 69 65 | 72 20 65 78 70 69 72 65 | verifie|r expire|
|00004c20| 64 20 6f 72 20 72 65 70 | 6c 61 79 65 64 20 2a 2f |d or rep|layed */|
|00004c30| 0a 58 09 41 55 54 48 5f | 54 4f 4f 57 45 41 4b 20 |.X.AUTH_|TOOWEAK |
|00004c40| 3d 20 35 2c 20 20 20 20 | 2f 2a 20 72 65 6a 65 63 |= 5, |/* rejec|
|00004c50| 74 65 64 20 66 6f 72 20 | 73 65 63 75 72 69 74 79 |ted for |security|
|00004c60| 20 72 65 61 73 6f 6e 73 | 20 2a 2f 0a 58 7d 3b 0a | reasons| */.X};.|
|00004c70| 58 2e 73 70 2e 35 0a 58 | 2e 4e 45 0a 58 2f 2a 0a |X.sp.5.X|.NE.X/*.|
|00004c80| 58 20 2a 20 54 68 65 20 | 52 50 43 20 6d 65 73 73 |X * The |RPC mess|
|00004c90| 61 67 65 3a 0a 58 20 2a | 20 41 6c 6c 20 6d 65 73 |age:.X *| All mes|
|00004ca0| 73 61 67 65 73 20 73 74 | 61 72 74 20 77 69 74 68 |sages st|art with|
|00004cb0| 20 61 20 74 72 61 6e 73 | 61 63 74 69 6f 6e 20 69 | a trans|action i|
|00004cc0| 64 65 6e 74 69 66 69 65 | 72 2c 20 78 69 64 2c 0a |dentifie|r, xid,.|
|00004cd0| 58 20 2a 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |X * foll|owed by |
|00004ce0| 61 20 74 77 6f 2d 61 72 | 6d 65 64 20 64 69 73 63 |a two-ar|med disc|
|00004cf0| 72 69 6d 69 6e 61 74 65 | 64 20 75 6e 69 6f 6e 2e |riminate|d union.|
|00004d00| 20 20 54 68 65 20 75 6e | 69 6f 6e 27 73 0a 58 20 | The un|ion's.X |
|00004d10| 2a 20 64 69 73 63 72 69 | 6d 69 6e 61 6e 74 20 69 |* discri|minant i|
|00004d20| 73 20 61 20 6d 73 67 5f | 74 79 70 65 20 77 68 69 |s a msg_|type whi|
|00004d30| 63 68 20 73 77 69 74 63 | 68 65 73 20 74 6f 20 6f |ch switc|hes to o|
|00004d40| 6e 65 20 6f 66 20 74 68 | 65 0a 58 20 2a 20 74 77 |ne of th|e.X * tw|
|00004d50| 6f 20 74 79 70 65 73 20 | 6f 66 20 74 68 65 20 6d |o types |of the m|
|00004d60| 65 73 73 61 67 65 2e 20 | 20 54 68 65 20 78 69 64 |essage. | The xid|
|00004d70| 20 6f 66 20 61 20 52 45 | 50 4c 59 20 6d 65 73 73 | of a RE|PLY mess|
|00004d80| 61 67 65 0a 58 20 2a 20 | 61 6c 77 61 79 73 20 6d |age.X * |always m|
|00004d90| 61 74 63 68 65 73 20 74 | 68 61 74 20 6f 66 20 74 |atches t|hat of t|
|00004da0| 68 65 20 69 6e 69 74 69 | 61 74 69 6e 67 20 43 41 |he initi|ating CA|
|00004db0| 4c 4c 20 6d 65 73 73 61 | 67 65 2e 20 20 4e 42 3a |LL messa|ge. NB:|
|00004dc0| 0a 58 20 2a 20 54 68 65 | 20 78 69 64 20 66 69 65 |.X * The| xid fie|
|00004dd0| 6c 64 20 69 73 20 6f 6e | 6c 79 20 75 73 65 64 20 |ld is on|ly used |
|00004de0| 66 6f 72 20 63 6c 69 65 | 6e 74 73 20 6d 61 74 63 |for clie|nts matc|
|00004df0| 68 69 6e 67 20 72 65 70 | 6c 79 0a 58 20 2a 20 6d |hing rep|ly.X * m|
|00004e00| 65 73 73 61 67 65 73 20 | 77 69 74 68 20 63 61 6c |essages |with cal|
|00004e10| 6c 20 6d 65 73 73 61 67 | 65 73 3b 20 74 68 65 20 |l messag|es; the |
|00004e20| 73 65 72 76 69 63 65 20 | 73 69 64 65 20 63 61 6e |service |side can|
|00004e30| 6e 6f 74 0a 58 20 2a 20 | 74 72 65 61 74 20 74 68 |not.X * |treat th|
|00004e40| 69 73 20 69 64 20 61 73 | 20 61 6e 79 20 74 79 70 |is id as| any typ|
|00004e50| 65 20 6f 66 20 73 65 71 | 75 65 6e 63 65 20 6e 75 |e of seq|uence nu|
|00004e60| 6d 62 65 72 2e 0a 58 20 | 2a 2f 0a 58 73 74 72 75 |mber..X |*/.Xstru|
|00004e70| 63 74 20 72 70 63 5f 6d | 73 67 20 7b 0a 58 09 75 |ct rpc_m|sg {.X.u|
|00004e80| 6e 73 69 67 6e 65 64 09 | 78 69 64 3b 0a 58 09 75 |nsigned.|xid;.X.u|
|00004e90| 6e 69 6f 6e 20 73 77 69 | 74 63 68 20 28 65 6e 75 |nion swi|tch (enu|
|00004ea0| 6d 20 6d 73 67 5f 74 79 | 70 65 29 20 7b 0a 58 09 |m msg_ty|pe) {.X.|
|00004eb0| 09 43 41 4c 4c 3a 09 73 | 74 72 75 63 74 20 63 61 |.CALL:.s|truct ca|
|00004ec0| 6c 6c 5f 62 6f 64 79 3b | 0a 58 09 09 52 45 50 4c |ll_body;|.X..REPL|
|00004ed0| 59 3a 09 73 74 72 75 63 | 74 20 72 65 70 6c 79 5f |Y:.struc|t reply_|
|00004ee0| 62 6f 64 79 3b 0a 58 09 | 7d 3b 0a 58 7d 3b 0a 58 |body;.X.|};.X};.X|
|00004ef0| 2e 73 70 2e 35 0a 58 2e | 4e 45 0a 58 2f 2a 0a 58 |.sp.5.X.|NE.X/*.X|
|00004f00| 20 2a 20 42 6f 64 79 20 | 6f 66 20 61 6e 20 52 50 | * Body |of an RP|
|00004f10| 43 20 72 65 71 75 65 73 | 74 20 63 61 6c 6c 3a 0a |C reques|t call:.|
|00004f20| 58 20 2a 20 49 6e 20 76 | 65 72 73 69 6f 6e 20 32 |X * In v|ersion 2|
|00004f30| 20 6f 66 20 74 68 65 20 | 52 50 43 20 70 72 6f 74 | of the |RPC prot|
|00004f40| 6f 63 6f 6c 20 73 70 65 | 63 69 66 69 63 61 74 69 |ocol spe|cificati|
|00004f50| 6f 6e 2c 20 72 70 63 76 | 65 72 73 0a 58 20 2a 20 |on, rpcv|ers.X * |
|00004f60| 6d 75 73 74 20 62 65 20 | 65 71 75 61 6c 20 74 6f |must be |equal to|
|00004f70| 20 32 2e 20 20 54 68 65 | 20 66 69 65 6c 64 73 20 | 2. The| fields |
|00004f80| 70 72 6f 67 2c 20 76 65 | 72 73 2c 20 61 6e 64 20 |prog, ve|rs, and |
|00004f90| 70 72 6f 63 0a 58 20 2a | 20 73 70 65 63 69 66 79 |proc.X *| specify|
|00004fa0| 20 74 68 65 20 72 65 6d | 6f 74 65 20 70 72 6f 67 | the rem|ote prog|
|00004fb0| 72 61 6d 2c 20 69 74 73 | 20 76 65 72 73 69 6f 6e |ram, its| version|
|00004fc0| 20 6e 75 6d 62 65 72 2c | 20 61 6e 64 20 74 68 65 | number,| and the|
|00004fd0| 0a 58 20 2a 20 70 72 6f | 63 65 64 75 72 65 20 77 |.X * pro|cedure w|
|00004fe0| 69 74 68 69 6e 20 74 68 | 65 20 72 65 6d 6f 74 65 |ithin th|e remote|
|00004ff0| 20 70 72 6f 67 72 61 6d | 20 74 6f 20 62 65 20 63 | program| to be c|
|00005000| 61 6c 6c 65 64 2e 20 20 | 41 66 74 65 72 0a 58 20 |alled. |After.X |
|00005010| 2a 20 74 68 65 73 65 20 | 66 69 65 6c 64 73 20 61 |* these |fields a|
|00005020| 72 65 20 74 77 6f 20 20 | 61 75 74 68 65 6e 74 69 |re two |authenti|
|00005030| 63 61 74 69 6f 6e 20 70 | 61 72 61 6d 65 74 65 72 |cation p|arameter|
|00005040| 73 3a 20 63 72 65 64 0a | 58 20 2a 20 28 61 75 74 |s: cred.|X * (aut|
|00005050| 68 65 6e 74 69 63 61 74 | 69 6f 6e 20 63 72 65 64 |henticat|ion cred|
|00005060| 65 6e 74 69 61 6c 73 29 | 20 61 6e 64 20 76 65 72 |entials)| and ver|
|00005070| 66 20 28 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |f (authe|nticatio|
|00005080| 6e 0a 58 20 2a 20 76 65 | 72 69 66 69 65 72 29 2e |n.X * ve|rifier).|
|00005090| 20 20 54 68 65 20 74 77 | 6f 20 20 61 75 74 68 65 | The tw|o authe|
|000050a0| 6e 74 69 63 61 74 69 6f | 6e 20 70 61 72 61 6d 65 |nticatio|n parame|
|000050b0| 74 65 72 73 20 61 72 65 | 0a 58 20 2a 20 66 6f 6c |ters are|.X * fol|
|000050c0| 6c 6f 77 65 64 20 62 79 | 20 74 68 65 20 70 61 72 |lowed by| the par|
|000050d0| 61 6d 65 74 65 72 73 20 | 74 6f 20 74 68 65 20 72 |ameters |to the r|
|000050e0| 65 6d 6f 74 65 20 70 72 | 6f 63 65 64 75 72 65 2c |emote pr|ocedure,|
|000050f0| 0a 58 20 2a 20 77 68 69 | 63 68 20 61 72 65 20 73 |.X * whi|ch are s|
|00005100| 70 65 63 69 66 69 65 64 | 20 62 79 20 74 68 65 20 |pecified| by the |
|00005110| 73 70 65 63 69 66 69 63 | 20 70 72 6f 67 72 61 6d |specific| program|
|00005120| 20 70 72 6f 74 6f 63 6f | 6c 2e 0a 58 20 2a 2f 0a | protoco|l..X */.|
|00005130| 58 73 74 72 75 63 74 20 | 63 61 6c 6c 5f 62 6f 64 |Xstruct |call_bod|
|00005140| 79 20 7b 0a 58 09 75 6e | 73 69 67 6e 65 64 20 72 |y {.X.un|signed r|
|00005150| 70 63 76 65 72 73 3b 09 | 2f 2a 20 6d 75 73 74 20 |pcvers;.|/* must |
|00005160| 62 65 20 65 71 75 61 6c | 20 74 6f 20 74 77 6f 20 |be equal| to two |
|00005170| 28 32 29 20 2a 2f 0a 58 | 09 75 6e 73 69 67 6e 65 |(2) */.X|.unsigne|
|00005180| 64 20 70 72 6f 67 3b 0a | 58 09 75 6e 73 69 67 6e |d prog;.|X.unsign|
|00005190| 65 64 20 76 65 72 73 3b | 0a 58 09 75 6e 73 69 67 |ed vers;|.X.unsig|
|000051a0| 6e 65 64 20 70 72 6f 63 | 3b 0a 58 09 73 74 72 75 |ned proc|;.X.stru|
|000051b0| 63 74 20 6f 70 61 71 75 | 65 5f 61 75 74 68 20 63 |ct opaqu|e_auth c|
|000051c0| 72 65 64 3b 0a 58 09 73 | 74 72 75 63 74 20 6f 70 |red;.X.s|truct op|
|000051d0| 61 71 75 65 5f 61 75 74 | 68 20 76 65 72 66 3b 0a |aque_aut|h verf;.|
|000051e0| 58 09 2f 2a 20 70 72 6f | 63 65 64 75 72 65 20 73 |X./* pro|cedure s|
|000051f0| 70 65 63 69 66 69 63 20 | 70 61 72 61 6d 65 74 65 |pecific |paramete|
|00005200| 72 73 20 73 74 61 72 74 | 20 68 65 72 65 20 2a 2f |rs start| here */|
|00005210| 0a 58 7d 3b 0a 58 2e 73 | 70 2e 35 0a 58 2e 4e 45 |.X};.X.s|p.5.X.NE|
|00005220| 0a 58 2f 2a 0a 58 20 2a | 20 42 6f 64 79 20 6f 66 |.X/*.X *| Body of|
|00005230| 20 61 20 72 65 70 6c 79 | 20 74 6f 20 61 6e 20 52 | a reply| to an R|
|00005240| 50 43 20 72 65 71 75 65 | 73 74 2e 0a 58 20 2a 20 |PC reque|st..X * |
|00005250| 54 68 65 20 63 61 6c 6c | 20 6d 65 73 73 61 67 65 |The call| message|
|00005260| 20 77 61 73 20 65 69 74 | 68 65 72 20 61 63 63 65 | was eit|her acce|
|00005270| 70 74 65 64 20 6f 72 20 | 72 65 6a 65 63 74 65 64 |pted or |rejected|
|00005280| 2e 0a 58 20 2a 2f 0a 58 | 73 74 72 75 63 74 20 72 |..X */.X|struct r|
|00005290| 65 70 6c 79 5f 62 6f 64 | 79 20 7b 0a 58 09 75 6e |eply_bod|y {.X.un|
|000052a0| 69 6f 6e 20 73 77 69 74 | 63 68 20 28 65 6e 75 6d |ion swit|ch (enum|
|000052b0| 20 72 65 70 6c 79 5f 73 | 74 61 74 29 20 7b 0a 58 | reply_s|tat) {.X|
|000052c0| 09 09 4d 53 47 5f 41 43 | 43 45 50 54 45 44 3a 09 |..MSG_AC|CEPTED:.|
|000052d0| 73 74 72 75 63 74 20 61 | 63 63 65 70 74 65 64 5f |struct a|ccepted_|
|000052e0| 72 65 70 6c 79 3b 0a 58 | 09 09 4d 53 47 5f 44 45 |reply;.X|..MSG_DE|
|000052f0| 4e 49 45 44 3a 09 73 74 | 72 75 63 74 20 72 65 6a |NIED:.st|ruct rej|
|00005300| 65 63 74 65 64 5f 72 65 | 70 6c 79 3b 0a 58 09 7d |ected_re|ply;.X.}|
|00005310| 3b 0a 58 7d 3b 0a 58 2e | 73 70 2e 35 0a 58 2e 4e |;.X};.X.|sp.5.X.N|
|00005320| 45 0a 58 2f 2a 0a 58 20 | 2a 20 52 65 70 6c 79 20 |E.X/*.X |* Reply |
|00005330| 74 6f 20 61 6e 20 52 50 | 43 20 72 65 71 75 65 73 |to an RP|C reques|
|00005340| 74 20 74 68 61 74 20 77 | 61 73 20 61 63 63 65 70 |t that w|as accep|
|00005350| 74 65 64 20 62 79 20 74 | 68 65 20 73 65 72 76 65 |ted by t|he serve|
|00005360| 72 2e 0a 58 20 2a 20 4e | 6f 74 65 3a 20 74 68 65 |r..X * N|ote: the|
|00005370| 72 65 20 63 6f 75 6c 64 | 20 62 65 20 61 6e 20 65 |re could| be an e|
|00005380| 72 72 6f 72 20 65 76 65 | 6e 20 74 68 6f 75 67 68 |rror eve|n though|
|00005390| 20 74 68 65 20 72 65 71 | 75 65 73 0a 58 20 2a 20 | the req|ues.X * |
|000053a0| 77 61 73 20 61 63 63 65 | 70 74 65 64 2e 20 20 54 |was acce|pted. T|
|000053b0| 68 65 20 66 69 72 73 74 | 20 66 69 65 6c 64 20 69 |he first| field i|
|000053c0| 73 20 61 6e 20 61 75 74 | 68 65 6e 74 69 63 61 74 |s an aut|henticat|
|000053d0| 69 6f 6e 0a 58 20 2a 20 | 76 65 72 69 66 69 65 72 |ion.X * |verifier|
|000053e0| 20 74 68 61 74 20 74 68 | 65 20 73 65 72 76 65 72 | that th|e server|
|000053f0| 20 67 65 6e 65 72 61 74 | 65 73 20 69 6e 20 6f 72 | generat|es in or|
|00005400| 64 65 72 20 74 6f 20 76 | 61 6c 69 64 61 74 65 0a |der to v|alidate.|
|00005410| 58 20 2a 20 69 74 73 65 | 6c 66 20 74 6f 20 74 68 |X * itse|lf to th|
|00005420| 65 20 63 61 6c 6c 65 72 | 2e 20 20 49 74 20 69 73 |e caller|. It is|
|00005430| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 20 75 | followe|d by a u|
|00005440| 6e 69 6f 6e 20 77 68 6f | 73 65 0a 58 20 2a 20 64 |nion who|se.X * d|
|00005450| 69 73 63 72 69 6d 69 6e | 61 6e 74 20 69 73 20 61 |iscrimin|ant is a|
|00005460| 6e 20 65 6e 75 6d 20 61 | 63 63 65 70 74 5f 73 74 |n enum a|ccept_st|
|00005470| 61 74 2e 20 20 54 68 65 | 20 53 55 43 43 45 53 53 |at. The| SUCCESS|
|00005480| 20 61 72 6d 0a 58 20 2a | 20 6f 66 20 74 68 65 20 | arm.X *| of the |
|00005490| 75 6e 69 6f 6e 20 69 73 | 20 70 72 6f 74 6f 63 6f |union is| protoco|
|000054a0| 6c 20 73 70 65 63 69 66 | 69 63 2e 20 20 54 68 65 |l specif|ic. The|
|000054b0| 20 50 52 4f 47 5f 55 4e | 41 56 41 49 4c 2c 0a 58 | PROG_UN|AVAIL,.X|
|000054c0| 20 2a 20 50 52 4f 43 5f | 55 4e 41 56 41 49 4c 2c | * PROC_|UNAVAIL,|
|000054d0| 20 61 6e 64 20 47 41 52 | 42 41 47 45 5f 41 52 47 | and GAR|BAGE_ARG|
|000054e0| 53 20 61 72 6d 73 20 6f | 66 20 74 68 65 20 75 6e |S arms o|f the un|
|000054f0| 69 6f 6e 20 61 72 65 0a | 58 20 2a 20 76 6f 69 64 |ion are.|X * void|
|00005500| 2e 20 20 54 68 65 20 50 | 52 4f 47 5f 4d 49 53 4d |. The P|ROG_MISM|
|00005510| 41 54 43 48 20 61 72 6d | 20 73 70 65 63 69 66 69 |ATCH arm| specifi|
|00005520| 65 73 20 74 68 65 20 6c | 6f 77 65 73 74 20 61 6e |es the l|owest an|
|00005530| 64 0a 58 20 2a 20 68 69 | 67 68 65 73 74 20 76 65 |d.X * hi|ghest ve|
|00005540| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 73 20 6f 66 |rsion nu|mbers of|
|00005550| 20 74 68 65 20 72 65 6d | 6f 74 65 20 70 72 6f 67 | the rem|ote prog|
|00005560| 72 61 6d 20 74 68 61 74 | 20 61 72 65 0a 58 20 2a |ram that| are.X *|
|00005570| 20 73 75 70 70 6f 72 74 | 65 64 20 62 79 20 74 68 | support|ed by th|
|00005580| 65 20 73 65 72 76 65 72 | 2e 0a 58 20 2a 2f 0a 58 |e server|..X */.X|
|00005590| 73 74 72 75 63 74 20 61 | 63 63 65 70 74 65 64 5f |struct a|ccepted_|
|000055a0| 72 65 70 6c 79 20 7b 0a | 58 09 73 74 72 75 63 74 |reply {.|X.struct|
|000055b0| 20 6f 70 61 71 75 65 5f | 61 75 74 68 09 76 65 72 | opaque_|auth.ver|
|000055c0| 66 3b 0a 58 09 75 6e 69 | 6f 6e 20 73 77 69 74 63 |f;.X.uni|on switc|
|000055d0| 68 20 28 65 6e 75 6d 20 | 61 63 63 65 70 74 5f 73 |h (enum |accept_s|
|000055e0| 74 61 74 29 20 7b 0a 58 | 09 09 53 55 43 43 45 53 |tat) {.X|..SUCCES|
|000055f0| 53 3a 20 73 74 72 75 63 | 74 20 7b 0a 58 09 09 09 |S: struc|t {.X...|
|00005600| 2f 2a 0a 58 09 09 09 20 | 2a 20 70 72 6f 63 65 64 |/*.X... |* proced|
|00005610| 75 72 65 2d 73 70 65 63 | 69 66 69 63 20 72 65 73 |ure-spec|ific res|
|00005620| 75 6c 74 73 20 73 74 61 | 72 74 20 68 65 72 65 0a |ults sta|rt here.|
|00005630| 58 09 09 09 20 2a 2f 0a | 58 09 09 7d 3b 0a 58 09 |X... */.|X..};.X.|
|00005640| 09 50 52 4f 47 5f 4d 49 | 53 4d 41 54 43 48 3a 20 |.PROG_MI|SMATCH: |
|00005650| 73 74 72 75 63 74 20 7b | 0a 58 09 09 09 75 6e 73 |struct {|.X...uns|
|00005660| 69 67 6e 65 64 20 6c 6f | 77 3b 0a 58 09 09 09 75 |igned lo|w;.X...u|
|00005670| 6e 73 69 67 6e 65 64 20 | 20 68 69 67 68 3b 0a 58 |nsigned | high;.X|
|00005680| 09 09 7d 3b 0a 58 09 09 | 64 65 66 61 75 6c 74 3a |..};.X..|default:|
|00005690| 20 73 74 72 75 63 74 20 | 7b 0a 58 09 09 09 2f 2a | struct |{.X.../*|
|000056a0| 0a 58 09 09 09 20 2a 20 | 76 6f 69 64 2e 20 43 61 |.X... * |void. Ca|
|000056b0| 73 65 73 20 69 6e 63 6c | 75 64 65 20 50 52 4f 47 |ses incl|ude PROG|
|000056c0| 5f 55 4e 41 56 41 49 4c | 2c 0a 58 09 09 09 20 2a |_UNAVAIL|,.X... *|
|000056d0| 20 50 52 4f 43 5f 55 4e | 41 56 41 49 4c 2c 20 61 | PROC_UN|AVAIL, a|
|000056e0| 6e 64 20 47 41 52 42 41 | 47 45 5f 41 52 47 53 2e |nd GARBA|GE_ARGS.|
|000056f0| 0a 58 09 09 09 20 2a 2f | 0a 58 09 09 7d 3b 0a 58 |.X... */|.X..};.X|
|00005700| 09 7d 3b 0a 58 7d 3b 0a | 58 2e 73 70 2e 35 0a 58 |.};.X};.|X.sp.5.X|
|00005710| 2e 4e 45 0a 58 2f 2a 0a | 58 20 2a 20 52 65 70 6c |.NE.X/*.|X * Repl|
|00005720| 79 20 74 6f 20 61 6e 20 | 52 50 43 20 72 65 71 75 |y to an |RPC requ|
|00005730| 65 73 74 20 74 68 61 74 | 20 77 61 73 20 72 65 6a |est that| was rej|
|00005740| 65 63 74 65 64 20 62 79 | 20 74 68 65 20 73 65 72 |ected by| the ser|
|00005750| 76 65 72 2e 0a 58 20 2a | 20 54 68 65 20 72 65 71 |ver..X *| The req|
|00005760| 75 65 73 74 20 63 61 6e | 20 62 65 20 72 65 6a 65 |uest can| be reje|
|00005770| 63 74 65 64 20 62 65 63 | 61 75 73 65 20 6f 66 20 |cted bec|ause of |
|00005780| 74 77 6f 20 72 65 61 73 | 6f 6e 73 3a 0a 58 20 2a |two reas|ons:.X *|
|00005790| 20 65 69 74 68 65 72 20 | 74 68 65 20 73 65 72 76 | either |the serv|
|000057a0| 65 72 20 69 73 20 6e 6f | 74 20 72 75 6e 6e 69 6e |er is no|t runnin|
|000057b0| 67 20 61 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 76 |g a comp|atible v|
|000057c0| 65 72 73 69 6f 6e 20 6f | 66 0a 58 20 2a 20 74 68 |ersion o|f.X * th|
|000057d0| 65 20 52 50 43 20 70 72 | 6f 74 6f 63 6f 6c 20 28 |e RPC pr|otocol (|
|000057e0| 52 50 43 5f 4d 49 53 4d | 41 54 43 48 29 2c 20 6f |RPC_MISM|ATCH), o|
|000057f0| 72 20 74 68 65 20 73 65 | 72 76 65 72 20 72 65 66 |r the se|rver ref|
|00005800| 75 73 65 73 0a 58 20 2a | 20 74 6f 20 61 75 74 68 |uses.X *| to auth|
|00005810| 65 6e 74 69 63 61 74 65 | 20 74 68 65 20 63 61 6c |enticate| the cal|
|00005820| 6c 65 72 20 28 41 55 54 | 48 5f 45 52 52 4f 52 29 |ler (AUT|H_ERROR)|
|00005830| 2e 20 20 49 6e 20 74 68 | 65 20 63 61 73 65 20 6f |. In th|e case o|
|00005840| 66 0a 58 20 2a 20 61 6e | 20 52 50 43 20 76 65 72 |f.X * an| RPC ver|
|00005850| 73 69 6f 6e 20 6d 69 73 | 6d 61 74 63 68 2c 20 74 |sion mis|match, t|
|00005860| 68 65 20 73 65 72 76 65 | 72 20 72 65 74 75 72 6e |he serve|r return|
|00005870| 73 20 74 68 65 20 6c 6f | 77 65 73 74 0a 58 20 2a |s the lo|west.X *|
|00005880| 20 61 6e 64 20 68 69 67 | 68 65 73 74 20 73 75 70 | and hig|hest sup|
|00005890| 70 6f 72 74 65 64 20 52 | 50 43 20 76 65 72 73 69 |ported R|PC versi|
|000058a0| 6f 6e 20 6e 75 6d 62 65 | 72 73 2e 20 20 49 6e 20 |on numbe|rs. In |
|000058b0| 74 68 65 20 63 61 73 65 | 0a 58 20 2a 20 6f 66 20 |the case|.X * of |
|000058c0| 72 65 66 75 73 65 64 20 | 61 75 74 68 65 6e 74 69 |refused |authenti|
|000058d0| 63 61 74 69 6f 6e 2c 20 | 66 61 69 6c 75 72 65 20 |cation, |failure |
|000058e0| 73 74 61 74 75 73 20 69 | 73 20 72 65 74 75 72 6e |status i|s return|
|000058f0| 65 64 2e 0a 58 20 2a 2f | 0a 58 73 74 72 75 63 74 |ed..X */|.Xstruct|
|00005900| 20 72 65 6a 65 63 74 65 | 64 5f 72 65 70 6c 79 20 | rejecte|d_reply |
|00005910| 7b 0a 58 09 75 6e 69 6f | 6e 20 73 77 69 74 63 68 |{.X.unio|n switch|
|00005920| 20 28 65 6e 75 6d 20 72 | 65 6a 65 63 74 5f 73 74 | (enum r|eject_st|
|00005930| 61 74 29 20 7b 0a 58 09 | 09 52 50 43 5f 4d 49 53 |at) {.X.|.RPC_MIS|
|00005940| 4d 41 54 43 48 3a 20 73 | 74 72 75 63 74 20 7b 0a |MATCH: s|truct {.|
|00005950| 58 09 09 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 77 |X...unsi|gned low|
|00005960| 3b 0a 58 09 09 09 75 6e | 73 69 67 6e 65 64 20 68 |;.X...un|signed h|
|00005970| 69 67 68 3b 0a 58 09 09 | 7d 3b 0a 58 09 09 41 55 |igh;.X..|};.X..AU|
|00005980| 54 48 5f 45 52 52 4f 52 | 3a 20 65 6e 75 6d 20 61 |TH_ERROR|: enum a|
|00005990| 75 74 68 5f 73 74 61 74 | 3b 0a 58 09 7d 3b 0a 58 |uth_stat|;.X.};.X|
|000059a0| 7d 3b 0a 58 2e 4c 66 0a | 58 2e 42 45 0a 58 2e 4e |};.X.Lf.|X.BE.X.N|
|000059b0| 48 20 32 0a 58 41 75 74 | 68 65 6e 74 69 63 61 74 |H 2.XAut|henticat|
|000059c0| 69 6f 6e 20 50 61 72 61 | 6d 65 74 65 72 20 53 70 |ion Para|meter Sp|
|000059d0| 65 63 69 66 69 63 61 74 | 69 6f 6e 0a 58 2e 4c 50 |ecificat|ion.X.LP|
|000059e0| 0a 58 41 73 20 70 72 65 | 76 69 6f 75 73 6c 79 20 |.XAs pre|viously |
|000059f0| 73 74 61 74 65 64 2c 20 | 61 75 74 68 65 6e 74 69 |stated, |authenti|
|00005a00| 63 61 74 69 6f 6e 20 70 | 61 72 61 6d 65 74 65 72 |cation p|arameter|
|00005a10| 73 20 61 72 65 20 6f 70 | 61 71 75 65 2c 0a 58 62 |s are op|aque,.Xb|
|00005a20| 75 74 20 6f 70 65 6e 2d | 65 6e 64 65 64 20 74 6f |ut open-|ended to|
|00005a30| 20 74 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 65 | the res|t of the|
|00005a40| 0a 58 52 50 43 20 70 72 | 6f 74 6f 63 6f 6c 2e 20 |.XRPC pr|otocol. |
|00005a50| 20 54 68 69 73 20 73 65 | 63 74 69 6f 6e 20 64 65 | This se|ction de|
|00005a60| 66 69 6e 65 73 20 73 6f | 6d 65 20 60 60 66 6c 61 |fines so|me ``fla|
|00005a70| 76 6f 72 73 27 27 20 6f | 66 20 61 75 74 68 65 6e |vors'' o|f authen|
|00005a80| 74 69 63 61 74 69 6f 6e | 0a 58 77 68 69 63 68 20 |tication|.Xwhich |
|00005a90| 68 61 76 65 20 62 65 65 | 6e 20 69 6d 70 6c 65 6d |have bee|n implem|
|00005aa0| 65 6e 74 65 64 20 61 74 | 20 28 61 6e 64 20 73 75 |ented at| (and su|
|00005ab0| 70 70 6f 72 74 65 64 20 | 62 79 29 20 53 75 6e 2e |pported |by) Sun.|
|00005ac0| 0a 58 2e 4e 48 20 33 0a | 58 4e 75 6c 6c 20 41 75 |.X.NH 3.|XNull Au|
|00005ad0| 74 68 65 6e 74 69 63 61 | 74 69 6f 6e 0a 58 2e 4c |thentica|tion.X.L|
|00005ae0| 50 0a 58 4f 66 74 65 6e | 20 63 61 6c 6c 73 20 6d |P.XOften| calls m|
|00005af0| 75 73 74 20 62 65 20 6d | 61 64 65 20 77 68 65 72 |ust be m|ade wher|
|00005b00| 65 20 74 68 65 20 63 61 | 6c 6c 65 72 20 64 6f 65 |e the ca|ller doe|
|00005b10| 73 20 6e 6f 74 20 6b 6e | 6f 77 20 77 68 6f 20 68 |s not kn|ow who h|
|00005b20| 65 20 69 73 20 61 6e 64 | 0a 58 74 68 65 20 73 65 |e is and|.Xthe se|
|00005b30| 72 76 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 63 61 |rver doe|s not ca|
|00005b40| 72 65 20 77 68 6f 20 74 | 68 65 20 63 61 6c 6c 65 |re who t|he calle|
|00005b50| 72 20 69 73 2e 20 20 49 | 6e 20 74 68 69 73 20 63 |r is. I|n this c|
|00005b60| 61 73 65 2c 20 74 68 65 | 20 61 75 74 68 5f 66 6c |ase, the| auth_fl|
|00005b70| 61 76 6f 72 20 76 61 6c | 75 65 0a 58 28 74 68 65 |avor val|ue.X(the|
|00005b80| 20 64 69 73 63 72 69 6d | 69 6e 61 6e 74 20 6f 66 | discrim|inant of|
|00005b90| 20 74 68 65 20 6f 70 61 | 71 75 65 5f 61 75 74 68 | the opa|que_auth|
|00005ba0| 27 73 20 75 6e 69 6f 6e | 29 20 6f 66 20 74 68 65 |'s union|) of the|
|00005bb0| 0a 58 52 50 43 20 6d 65 | 73 73 61 67 65 27 73 20 |.XRPC me|ssage's |
|00005bc0| 63 72 65 64 65 6e 74 69 | 61 6c 73 2c 20 76 65 72 |credenti|als, ver|
|00005bd0| 69 66 69 65 72 2c 20 61 | 6e 64 20 72 65 73 70 6f |ifier, a|nd respo|
|00005be0| 6e 73 65 20 76 65 72 69 | 66 69 65 72 20 69 73 0a |nse veri|fier is.|
|00005bf0| 58 2e 4c 57 20 41 55 54 | 48 5f 4e 55 4c 4c 0a 58 |X.LW AUT|H_NULL.X|
|00005c00| 28 30 29 2e 0a 58 54 68 | 65 20 62 79 74 65 73 20 |(0)..XTh|e bytes |
|00005c10| 6f 66 20 74 68 65 20 61 | 75 74 68 5f 62 6f 64 79 |of the a|uth_body|
|00005c20| 20 73 74 72 69 6e 67 20 | 61 72 65 20 75 6e 64 65 | string |are unde|
|00005c30| 66 69 6e 65 64 2e 0a 58 | 49 74 20 69 73 20 72 65 |fined..X|It is re|
|00005c40| 63 6f 6d 6d 65 6e 64 65 | 64 20 74 68 61 74 20 74 |commende|d that t|
|00005c50| 68 65 20 73 74 72 69 6e | 67 20 6c 65 6e 67 74 68 |he strin|g length|
|00005c60| 20 62 65 20 7a 65 72 6f | 2e 0a 58 2e 4e 48 20 33 | be zero|..X.NH 3|
|00005c70| 0a 58 55 4e 49 58 20 41 | 75 74 68 65 6e 74 69 63 |.XUNIX A|uthentic|
|00005c80| 61 74 69 6f 6e 0a 58 2e | 4c 50 0a 58 54 68 65 20 |ation.X.|LP.XThe |
|00005c90| 63 61 6c 6c 65 72 20 6f | 66 20 61 20 72 65 6d 6f |caller o|f a remo|
|00005ca0| 74 65 20 70 72 6f 63 65 | 64 75 72 65 20 6d 61 79 |te proce|dure may|
|00005cb0| 20 77 69 73 68 20 74 6f | 20 69 64 65 6e 74 69 66 | wish to| identif|
|00005cc0| 79 20 68 69 6d 73 65 6c | 66 20 61 73 20 68 65 20 |y himsel|f as he |
|00005cd0| 69 73 0a 58 69 64 65 6e | 74 69 66 69 65 64 20 6f |is.Xiden|tified o|
|00005ce0| 6e 20 61 0a 58 2e 55 58 | 0a 58 73 79 73 74 65 6d |n a.X.UX|.Xsystem|
|00005cf0| 2e 0a 58 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |..XThe v|alue of |
|00005d00| 74 68 65 0a 58 2e 4c 57 | 20 63 72 65 64 65 6e 74 |the.X.LW| credent|
|00005d10| 69 61 6c 20 27 73 0a 58 | 64 69 73 63 72 69 6d 69 |ial 's.X|discrimi|
|00005d20| 6e 61 6e 74 20 6f 66 0a | 58 61 6e 20 52 50 43 20 |nant of.|Xan RPC |
|00005d30| 63 61 6c 6c 20 6d 65 73 | 73 61 67 65 20 69 73 0a |call mes|sage is.|
|00005d40| 58 2e 4c 57 20 41 55 54 | 48 5f 55 4e 49 58 0a 58 |X.LW AUT|H_UNIX.X|
|00005d50| 28 31 29 2e 20 20 54 68 | 65 20 62 79 74 65 73 20 |(1). Th|e bytes |
|00005d60| 6f 66 20 74 68 65 0a 58 | 2e 4c 57 20 63 72 65 64 |of the.X|.LW cred|
|00005d70| 65 6e 74 69 61 6c 20 27 | 73 0a 58 73 74 72 69 6e |ential '|s.Xstrin|
|00005d80| 67 20 65 6e 63 6f 64 65 | 20 74 68 65 20 74 68 65 |g encode| the the|
|00005d90| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 28 58 44 52 29 | followi|ng (XDR)|
|00005da0| 20 73 74 72 75 63 74 75 | 72 65 3a 0a 58 2e 42 53 | structu|re:.X.BS|
|00005db0| 0a 58 2e 4c 53 0a 58 73 | 74 72 75 63 74 20 61 75 |.X.LS.Xs|truct au|
|00005dc0| 74 68 5f 75 6e 69 78 20 | 7b 0a 58 09 75 6e 73 69 |th_unix |{.X.unsi|
|00005dd0| 67 6e 65 64 09 73 74 61 | 6d 70 3b 0a 58 09 73 74 |gned.sta|mp;.X.st|
|00005de0| 72 69 6e 67 09 09 6d 61 | 63 68 69 6e 65 6e 61 6d |ring..ma|chinenam|
|00005df0| 65 3c 32 35 35 3e 3b 0a | 58 09 75 6e 73 69 67 6e |e<255>;.|X.unsign|
|00005e00| 65 64 09 75 69 64 3b 0a | 58 09 75 6e 73 69 67 6e |ed.uid;.|X.unsign|
|00005e10| 65 64 09 67 69 64 3b 0a | 58 09 75 6e 73 69 67 6e |ed.gid;.|X.unsign|
|00005e20| 65 64 09 67 69 64 73 3c | 31 30 3e 3b 0a 58 7d 3b |ed.gids<|10>;.X};|
|00005e30| 0a 58 2e 4c 66 0a 58 2e | 42 45 0a 58 54 68 65 0a |.X.Lf.X.|BE.XThe.|
|00005e40| 58 2e 4c 57 20 73 74 61 | 6d 70 0a 58 69 73 20 61 |X.LW sta|mp.Xis a|
|00005e50| 6e 20 61 72 62 69 74 72 | 61 72 79 20 69 64 20 77 |n arbitr|ary id w|
|00005e60| 68 69 63 68 20 74 68 65 | 20 63 61 6c 6c 65 72 20 |hich the| caller |
|00005e70| 6d 61 63 68 69 6e 65 20 | 6d 61 79 20 67 65 6e 65 |machine |may gene|
|00005e80| 72 61 74 65 2e 0a 58 54 | 68 65 0a 58 2e 4c 57 20 |rate..XT|he.X.LW |
|00005e90| 6d 61 63 68 69 6e 65 6e | 61 6d 65 0a 58 69 73 20 |machinen|ame.Xis |
|00005ea0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00005eb0| 63 61 6c 6c 65 72 27 73 | 20 6d 61 63 68 69 6e 65 |caller's| machine|
|00005ec0| 20 28 6c 69 6b 65 20 60 | 60 6b 72 79 70 74 6f 6e | (like `|`krypton|
|00005ed0| 27 27 29 2e 0a 58 54 68 | 65 0a 58 2e 4c 57 20 75 |'')..XTh|e.X.LW u|
|00005ee0| 69 64 0a 58 69 73 20 74 | 68 65 20 63 61 6c 6c 65 |id.Xis t|he calle|
|00005ef0| 72 27 73 20 65 66 66 65 | 63 74 69 76 65 20 75 73 |r's effe|ctive us|
|00005f00| 65 72 20 69 64 2e 0a 58 | 54 68 65 0a 58 2e 4c 57 |er id..X|The.X.LW|
|00005f10| 20 67 69 64 0a 58 69 73 | 20 74 68 65 20 63 61 6c | gid.Xis| the cal|
|00005f20| 6c 65 72 73 20 65 66 66 | 65 63 74 69 76 65 20 67 |lers eff|ective g|
|00005f30| 72 6f 75 70 20 69 64 2e | 0a 58 54 68 65 0a 58 2e |roup id.|.XThe.X.|
|00005f40| 4c 57 20 67 69 64 73 0a | 58 69 73 20 61 20 63 6f |LW gids.|Xis a co|
|00005f50| 75 6e 74 65 64 20 61 72 | 72 61 79 20 6f 66 20 67 |unted ar|ray of g|
|00005f60| 72 6f 75 70 73 0a 58 77 | 68 69 63 68 20 63 6f 6e |roups.Xw|hich con|
|00005f70| 74 61 69 6e 20 74 68 65 | 20 63 61 6c 6c 65 72 20 |tain the| caller |
|00005f80| 61 73 20 61 20 6d 65 6d | 62 65 72 2e 0a 58 54 68 |as a mem|ber..XTh|
|00005f90| 65 0a 58 2e 4c 57 20 76 | 65 72 69 66 69 65 72 0a |e.X.LW v|erifier.|
|00005fa0| 58 61 63 63 6f 6d 70 61 | 6e 79 69 6e 67 20 74 68 |Xaccompa|nying th|
|00005fb0| 65 20 63 72 65 64 65 6e | 74 69 61 6c 73 20 73 68 |e creden|tials sh|
|00005fc0| 6f 75 6c 64 20 62 65 20 | 6f 66 0a 58 2e 4c 57 20 |ould be |of.X.LW |
|00005fd0| 41 55 54 48 5f 4e 55 4c | 4c 0a 58 28 64 65 66 69 |AUTH_NUL|L.X(defi|
|00005fe0| 6e 65 64 20 61 62 6f 76 | 65 29 2e 0a 58 2e 4c 50 |ned abov|e)..X.LP|
|00005ff0| 0a 58 54 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |.XThe va|lue of t|
|00006000| 68 65 20 64 69 73 63 72 | 69 6d 69 6e 61 74 65 20 |he discr|iminate |
|00006010| 6f 66 20 74 68 65 0a 58 | 2e 4c 57 20 22 72 65 73 |of the.X|.LW "res|
|00006020| 70 6f 6e 73 65 20 76 65 | 72 69 66 69 65 72 22 0a |ponse ve|rifier".|
|00006030| 58 72 65 63 65 69 76 65 | 64 20 69 6e 20 74 68 65 |Xreceive|d in the|
|00006040| 20 72 65 70 6c 79 20 6d | 65 73 73 61 67 65 20 66 | reply m|essage f|
|00006050| 72 6f 6d 20 74 68 65 20 | 73 65 72 76 65 72 20 6d |rom the |server m|
|00006060| 61 79 20 62 65 0a 58 2e | 4c 57 20 41 55 54 48 5f |ay be.X.|LW AUTH_|
|00006070| 4e 55 4c 4c 0a 58 6f 72 | 0a 58 2e 4c 57 20 41 55 |NULL.Xor|.X.LW AU|
|00006080| 54 48 5f 53 48 4f 52 54 | 20 2e 0a 58 49 6e 20 74 |TH_SHORT| ..XIn t|
|00006090| 68 65 20 63 61 73 65 20 | 6f 66 0a 58 2e 4c 57 20 |he case |of.X.LW |
|000060a0| 41 55 54 48 5f 53 48 4f | 52 54 20 2c 0a 58 74 68 |AUTH_SHO|RT ,.Xth|
|000060b0| 65 20 62 79 74 65 73 20 | 6f 66 20 74 68 65 0a 58 |e bytes |of the.X|
|000060c0| 2e 4c 57 20 22 72 65 73 | 70 6f 6e 73 65 20 76 65 |.LW "res|ponse ve|
|000060d0| 72 69 66 69 65 72 22 20 | 27 73 0a 58 73 74 72 69 |rifier" |'s.Xstri|
|000060e0| 6e 67 20 65 6e 63 6f 64 | 65 20 61 6e 0a 58 2e 4c |ng encod|e an.X.L|
|000060f0| 57 20 61 75 74 68 5f 6f | 70 61 71 75 65 0a 58 73 |W auth_o|paque.Xs|
|00006100| 74 72 75 63 74 75 72 65 | 2e 0a 58 54 68 69 73 20 |tructure|..XThis |
|00006110| 6e 65 77 0a 58 2e 4c 57 | 20 61 75 74 68 5f 6f 70 |new.X.LW| auth_op|
|00006120| 61 71 75 65 0a 58 73 74 | 72 75 63 74 75 72 65 20 |aque.Xst|ructure |
|00006130| 6d 61 79 20 6e 6f 77 20 | 62 65 20 70 61 73 73 65 |may now |be passe|
|00006140| 64 20 74 6f 20 74 68 65 | 20 73 65 72 76 65 72 0a |d to the| server.|
|00006150| 58 69 6e 73 74 65 61 64 | 20 6f 66 20 74 68 65 20 |Xinstead| of the |
|00006160| 6f 72 69 67 69 6e 61 6c | 0a 58 2e 4c 57 20 41 55 |original|.X.LW AU|
|00006170| 54 48 5f 55 4e 49 58 0a | 58 66 6c 61 76 6f 72 20 |TH_UNIX.|Xflavor |
|00006180| 63 72 65 64 65 6e 74 69 | 61 6c 73 2e 0a 58 54 68 |credenti|als..XTh|
|00006190| 65 20 73 65 72 76 65 72 | 20 6b 65 65 70 73 20 61 |e server| keeps a|
|000061a0| 20 63 61 63 68 65 20 77 | 68 69 63 68 20 6d 61 70 | cache w|hich map|
|000061b0| 73 20 73 68 6f 72 74 20 | 68 61 6e 64 0a 58 2e 4c |s short |hand.X.L|
|000061c0| 57 20 61 75 74 68 5f 6f | 70 61 71 75 65 0a 58 73 |W auth_o|paque.Xs|
|000061d0| 74 72 75 63 74 75 72 65 | 73 20 28 70 61 73 73 65 |tructure|s (passe|
|000061e0| 64 20 62 61 63 6b 20 62 | 79 20 77 61 79 20 6f 66 |d back b|y way of|
|000061f0| 20 61 0a 58 2e 4c 57 20 | 41 55 54 48 5f 53 48 4f | a.X.LW |AUTH_SHO|
|00006200| 52 54 0a 58 73 74 79 6c | 65 0a 58 2e 4c 57 20 22 |RT.Xstyl|e.X.LW "|
|00006210| 72 65 73 70 6f 6e 73 65 | 20 76 65 72 69 66 69 65 |response| verifie|
|00006220| 72 22 20 29 0a 58 74 6f | 20 74 68 65 20 6f 72 69 |r" ).Xto| the ori|
|00006230| 67 69 6e 61 6c 20 63 72 | 65 64 65 6e 74 69 61 6c |ginal cr|edential|
|00006240| 73 20 6f 66 20 74 68 65 | 20 63 61 6c 6c 65 72 2e |s of the| caller.|
|00006250| 0a 58 54 68 65 20 63 61 | 6c 6c 65 72 20 63 61 6e |.XThe ca|ller can|
|00006260| 20 73 61 76 65 20 6e 65 | 74 77 6f 72 6b 20 62 61 | save ne|twork ba|
|00006270| 6e 64 77 69 64 74 68 20 | 61 6e 64 20 73 65 72 76 |ndwidth |and serv|
|00006280| 65 72 20 63 70 75 20 63 | 79 63 6c 65 73 0a 58 62 |er cpu c|ycles.Xb|
|00006290| 79 20 75 73 69 6e 67 20 | 74 68 65 20 6e 65 77 20 |y using |the new |
|000062a0| 63 72 65 64 65 6e 74 69 | 61 6c 73 2e 0a 58 2e 4c |credenti|als..X.L|
|000062b0| 50 0a 58 54 68 65 20 73 | 65 72 76 65 72 20 6d 61 |P.XThe s|erver ma|
|000062c0| 79 20 66 6c 75 73 68 20 | 74 68 65 20 73 68 6f 72 |y flush |the shor|
|000062d0| 74 20 68 61 6e 64 0a 58 | 2e 4c 57 20 61 75 74 68 |t hand.X|.LW auth|
|000062e0| 5f 6f 70 61 71 75 65 0a | 58 73 74 72 75 63 74 75 |_opaque.|Xstructu|
|000062f0| 72 65 20 61 74 20 61 6e | 79 20 74 69 6d 65 2e 0a |re at an|y time..|
|00006300| 58 49 66 20 74 68 69 73 | 20 68 61 70 70 65 6e 73 |XIf this| happens|
|00006310| 2c 20 74 68 65 20 72 65 | 6d 6f 74 65 20 70 72 6f |, the re|mote pro|
|00006320| 63 65 64 75 72 65 20 63 | 61 6c 6c 20 6d 65 73 73 |cedure c|all mess|
|00006330| 61 67 65 0a 58 77 69 6c | 6c 20 62 65 20 72 65 6a |age.Xwil|l be rej|
|00006340| 65 63 74 65 64 20 64 75 | 65 20 74 6f 20 61 6e 20 |ected du|e to an |
|00006350| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 20 65 |authenti|cation e|
|00006360| 72 72 6f 72 2e 0a 58 54 | 68 65 20 72 65 61 73 6f |rror..XT|he reaso|
|00006370| 6e 20 66 6f 72 20 74 68 | 65 20 66 61 69 6c 75 72 |n for th|e failur|
|00006380| 65 20 77 69 6c 6c 20 62 | 65 0a 58 2e 4c 57 20 41 |e will b|e.X.LW A|
|00006390| 55 54 48 5f 52 45 4a 45 | 43 54 45 44 43 52 45 44 |UTH_REJE|CTEDCRED|
|000063a0| 20 2e 0a 58 41 74 20 74 | 68 69 73 20 70 6f 69 6e | ..XAt t|his poin|
|000063b0| 74 2c 20 74 68 65 20 63 | 61 6c 6c 65 72 20 6d 61 |t, the c|aller ma|
|000063c0| 79 20 77 69 73 68 20 74 | 6f 20 74 72 79 20 74 68 |y wish t|o try th|
|000063d0| 65 20 6f 72 69 67 69 6e | 61 6c 0a 58 2e 4c 57 20 |e origin|al.X.LW |
|000063e0| 41 55 54 48 5f 55 4e 49 | 58 0a 58 73 74 79 6c 65 |AUTH_UNI|X.Xstyle|
|000063f0| 20 6f 66 20 63 72 65 64 | 65 6e 74 69 61 6c 73 2e | of cred|entials.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.