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: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory netdate/, mode 40755 , uid 0 , gid 0 , size 0 , seconds 5704636454, user root, group root
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU)
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6e 65 74 64 61 74 65 2f | 00 00 00 00 00 00 00 00 |netdate/|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 20 |.... 407|55 . |
|00000070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 37 30 34 36 33 36 | 0 | 5704636|
|00000090| 34 35 34 20 20 31 30 35 | 30 31 00 20 35 00 00 00 |454 105|01. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6e 65 74 64 61 74 65 2f | 4d 61 6b 65 66 69 6c 65 |netdate/|Makefile|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00000270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000280| 20 20 20 20 33 33 30 20 | 20 35 33 32 36 36 32 35 | 330 | 5326625|
|00000290| 31 37 32 20 20 31 32 32 | 30 35 00 20 30 00 00 00 |172 122|05. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 4d 41 4e 44 49 52 3d 2f | 75 73 72 2f 6d 61 6e 2f |MANDIR=/|usr/man/|
|00000410| 6d 61 6e 38 0a 44 45 53 | 54 44 49 52 3d 2f 65 74 |man8.DES|TDIR=/et|
|00000420| 63 2f 69 6e 65 74 0a 0a | 61 6c 6c 3a 0a 09 72 6d |c/inet..|all:..rm|
|00000430| 20 2d 66 20 6e 65 74 64 | 61 74 65 0a 09 63 63 20 | -f netd|ate..cc |
|00000440| 2d 4f 32 20 2d 57 61 6c | 6c 20 2d 6f 20 6e 65 74 |-O2 -Wal|l -o net|
|00000450| 64 61 74 65 20 6e 65 74 | 64 61 74 65 2e 63 0a 0a |date net|date.c..|
|00000460| 69 6e 73 74 61 6c 6c 3a | 20 6e 65 74 64 61 74 65 |install:| netdate|
|00000470| 0a 09 69 6e 73 74 61 6c | 6c 20 2d 73 20 6e 65 74 |..instal|l -s net|
|00000480| 64 61 74 65 20 24 28 44 | 45 53 54 44 49 52 29 2f |date $(D|ESTDIR)/|
|00000490| 6e 65 74 64 61 74 65 0a | 09 69 6e 73 74 61 6c 6c |netdate.|.install|
|000004a0| 20 6e 65 74 64 61 74 65 | 2e 38 20 24 28 4d 41 4e | netdate|.8 $(MAN|
|000004b0| 44 49 52 29 2f 6e 65 74 | 64 61 74 65 2e 38 0a 63 |DIR)/net|date.8.c|
|000004c0| 6c 65 61 6e 3a 0a 09 72 | 6d 20 2d 66 20 6e 65 74 |lean:..r|m -f net|
|000004d0| 64 61 74 65 20 2a 7e 0a | 00 00 00 00 00 00 00 00 |date *~.|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 6e 65 74 64 61 74 65 2f | 52 45 41 44 4d 45 00 00 |netdate/|README..|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00000670| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000680| 20 20 20 33 34 37 34 20 | 20 35 33 32 37 30 37 32 | 3474 | 5327072|
|00000690| 33 37 31 20 20 31 31 34 | 35 37 00 20 30 00 00 00 |371 114|57. 0...|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 09 09 09 09 4e 45 54 44 | 41 54 45 20 0a 09 09 09 |....NETD|ATE ....|
|00000810| 09 3d 3d 3d 3d 3d 3d 3d | 0a 0a 4e 65 74 64 61 74 |.=======|..Netdat|
|00000820| 65 20 2d 20 73 65 74 20 | 64 61 74 65 20 61 6e 64 |e - set |date and|
|00000830| 20 74 69 6d 65 20 61 73 | 20 73 70 65 63 69 66 69 | time as| specifi|
|00000840| 65 64 20 62 79 20 41 52 | 50 41 20 49 6e 74 65 72 |ed by AR|PA Inter|
|00000850| 6e 65 74 20 52 46 43 20 | 38 36 38 0a 0a 4e 65 74 |net RFC |868..Net|
|00000860| 64 61 74 65 20 74 61 6b | 65 73 20 61 20 6c 69 73 |date tak|es a lis|
|00000870| 74 20 6f 66 20 6e 61 6d | 65 73 20 6f 66 20 49 6e |t of nam|es of In|
|00000880| 74 65 72 6e 65 74 20 68 | 6f 73 74 73 20 61 73 20 |ternet h|osts as |
|00000890| 61 72 67 75 6d 65 6e 74 | 73 2c 20 73 65 6c 65 63 |argument|s, selec|
|000008a0| 74 73 20 74 68 65 0a 6f | 6e 65 20 77 68 69 63 68 |ts the.o|ne which|
|000008b0| 20 73 75 70 70 6c 69 65 | 73 20 74 68 65 20 62 65 | supplie|s the be|
|000008c0| 73 74 20 74 69 6d 65 2c | 20 61 6e 64 20 73 65 74 |st time,| and set|
|000008d0| 73 20 74 68 65 20 73 79 | 73 74 65 6d 20 74 69 6d |s the sy|stem tim|
|000008e0| 65 20 61 63 63 6f 72 64 | 69 6e 67 6c 79 2e 20 54 |e accord|ingly. T|
|000008f0| 68 65 0a 69 6e 76 6f 6b | 65 72 20 6d 75 73 74 20 |he.invok|er must |
|00000900| 62 65 20 74 68 65 20 73 | 75 70 65 72 2d 75 73 65 |be the s|uper-use|
|00000910| 72 20 66 6f 72 20 74 68 | 65 20 74 69 6d 65 20 74 |r for th|e time t|
|00000920| 6f 20 62 65 20 73 65 74 | 2e 0a 0a 54 68 65 20 60 |o be set|...The `|
|00000930| 60 62 65 73 74 27 27 20 | 74 69 6d 65 20 69 73 20 |`best'' |time is |
|00000940| 63 68 6f 73 65 6e 20 62 | 79 20 70 6f 6c 6c 69 6e |chosen b|y pollin|
|00000950| 67 20 74 68 65 20 6e 61 | 6d 65 64 20 68 6f 73 74 |g the na|med host|
|00000960| 73 20 6f 6e 63 65 20 65 | 61 63 68 20 74 6f 20 66 |s once e|ach to f|
|00000970| 69 6e 64 0a 74 68 65 69 | 72 20 74 69 6d 65 73 20 |ind.thei|r times |
|00000980| 61 6e 64 20 74 61 6b 69 | 6e 67 20 74 68 65 69 72 |and taki|ng their|
|00000990| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 66 72 6f | differe|nces fro|
|000009a0| 6d 20 74 68 65 20 6c 6f | 63 61 6c 20 68 6f 73 74 |m the lo|cal host|
|000009b0| 27 73 20 74 69 6d 65 2e | 20 54 68 65 73 65 0a 64 |'s time.| These.d|
|000009c0| 69 66 66 65 72 65 6e 63 | 65 73 20 61 72 65 20 75 |ifferenc|es are u|
|000009d0| 73 65 64 20 74 6f 20 66 | 69 6e 64 20 74 68 65 20 |sed to f|ind the |
|000009e0| 6c 61 72 67 65 73 74 20 | 67 72 6f 75 70 20 6f 66 |largest |group of|
|000009f0| 20 68 6f 73 74 73 20 77 | 68 6f 73 65 20 74 69 6d | hosts w|hose tim|
|00000a00| 65 73 20 61 67 72 65 65 | 0a 77 69 74 68 20 65 61 |es agree|.with ea|
|00000a10| 63 68 20 6f 74 68 65 72 | 20 77 69 74 68 69 6e 20 |ch other| within |
|00000a20| 61 20 63 65 72 74 61 69 | 6e 20 6c 69 6d 69 74 2e |a certai|n limit.|
|00000a30| 20 54 68 65 20 66 69 72 | 73 74 20 68 6f 73 74 20 | The fir|st host |
|00000a40| 69 6e 20 74 68 65 20 6c | 61 72 67 65 73 74 20 67 |in the l|argest g|
|00000a50| 72 6f 75 70 0a 69 73 20 | 70 69 63 6b 65 64 20 61 |roup.is |picked a|
|00000a60| 73 20 74 68 65 20 62 65 | 73 74 20 68 6f 73 74 2e |s the be|st host.|
|00000a70| 20 28 54 68 65 20 61 73 | 73 75 6d 70 74 69 6f 6e | (The as|sumption|
|00000a80| 20 69 73 20 74 68 61 74 | 20 74 68 65 20 68 6f 73 | is that| the hos|
|00000a90| 74 73 20 77 68 69 63 68 | 20 61 72 65 0a 75 73 75 |ts which| are.usu|
|00000aa0| 61 6c 6c 79 20 6d 6f 73 | 74 20 61 63 63 75 72 61 |ally mos|t accura|
|00000ab0| 74 65 20 77 69 6c 6c 20 | 62 65 20 6e 61 6d 65 64 |te will |be named|
|00000ac0| 20 66 69 72 73 74 2e 29 | 20 54 68 61 74 20 68 6f | first.)| That ho|
|00000ad0| 73 74 20 69 73 20 70 6f | 6c 6c 65 64 20 61 67 61 |st is po|lled aga|
|00000ae0| 69 6e 20 61 6e 64 0a 74 | 68 65 20 6c 6f 63 61 6c |in and.t|he local|
|00000af0| 20 68 6f 73 74 27 73 20 | 74 69 6d 65 20 69 73 20 | host's |time is |
|00000b00| 73 65 74 20 74 6f 20 74 | 68 65 20 72 65 73 75 6c |set to t|he resul|
|00000b10| 74 2e 20 54 68 65 20 63 | 68 6f 73 65 6e 20 68 6f |t. The c|hosen ho|
|00000b20| 73 74 27 73 20 74 69 6d | 65 20 69 73 0a 63 68 65 |st's tim|e is.che|
|00000b30| 63 6b 65 64 20 6f 6e 20 | 74 68 69 73 20 73 65 63 |cked on |this sec|
|00000b40| 6f 6e 64 20 70 6f 6c 6c | 20 74 6f 20 69 6e 73 75 |ond poll| to insu|
|00000b50| 72 65 20 74 68 61 74 20 | 69 74 73 20 64 69 66 66 |re that |its diff|
|00000b60| 65 72 65 6e 63 65 20 66 | 72 6f 6d 20 74 68 65 20 |erence f|rom the |
|00000b70| 6c 6f 63 61 6c 0a 68 6f | 73 74 27 73 20 74 69 6d |local.ho|st's tim|
|00000b80| 65 20 68 61 73 20 6e 6f | 74 20 76 61 72 69 65 64 |e has no|t varied|
|00000b90| 20 6d 6f 72 65 20 74 68 | 61 6e 20 74 68 65 20 6c | more th|an the l|
|00000ba0| 69 6d 69 74 20 66 72 6f | 6d 20 69 74 73 20 64 69 |imit fro|m its di|
|00000bb0| 66 66 65 72 65 6e 63 65 | 20 61 74 20 74 68 65 0a |fference| at the.|
|00000bc0| 66 69 72 73 74 20 70 6f | 6c 6c 2e 20 0a 0a 54 68 |first po|ll. ..Th|
|00000bd0| 65 20 6f 72 69 67 69 6e | 61 6c 20 73 6f 75 72 63 |e origin|al sourc|
|00000be0| 65 73 20 66 6f 72 20 6e | 65 74 64 61 74 65 20 77 |es for n|etdate w|
|00000bf0| 65 72 65 20 73 6e 61 72 | 66 65 64 20 66 72 6f 6d |ere snar|fed from|
|00000c00| 20 74 68 65 20 53 69 6d | 74 65 6c 2d 32 30 20 61 | the Sim|tel-20 a|
|00000c10| 72 63 68 69 76 65 20 69 | 6e 0a 74 68 65 20 64 69 |rchive i|n.the di|
|00000c20| 72 65 63 74 6f 72 79 20 | 50 44 3f 3a 3c 55 4e 49 |rectory |PD?:<UNI|
|00000c30| 58 2d 43 2e 4e 45 54 57 | 4f 52 4b 53 3e 2e 20 54 |X-C.NETW|ORKS>. T|
|00000c40| 68 65 79 20 63 6f 6e 74 | 61 69 6e 65 64 20 6e 6f |hey cont|ained no|
|00000c50| 20 6d 65 6e 74 69 6f 6e | 20 6f 66 20 77 68 6f 20 | mention| of who |
|00000c60| 74 68 65 0a 61 75 74 68 | 6f 72 20 6d 69 67 68 74 |the.auth|or might|
|00000c70| 20 62 65 2e 20 54 68 69 | 73 20 76 65 72 73 69 6f | be. Thi|s versio|
|00000c80| 6e 20 68 61 73 20 62 65 | 65 6e 20 63 68 61 6e 67 |n has be|en chang|
|00000c90| 65 64 20 61 20 6c 69 74 | 74 6c 65 20 2d 20 6d 61 |ed a lit|tle - ma|
|00000ca0| 69 6e 6c 79 20 63 6f 64 | 65 0a 63 6c 65 61 6e 75 |inly cod|e.cleanu|
|00000cb0| 70 73 2c 20 61 6e 64 20 | 6f 6e 65 20 6d 69 6e 6f |ps, and |one mino|
|00000cc0| 72 20 62 75 67 2d 66 69 | 78 2e 20 20 0a 0a 54 68 |r bug-fi|x. ..Th|
|00000cd0| 65 20 63 6f 64 65 20 69 | 73 20 6e 6f 74 20 65 6e |e code i|s not en|
|00000ce0| 74 69 72 65 6c 79 20 62 | 75 67 2d 66 72 65 65 20 |tirely b|ug-free |
|00000cf0| 2d 20 72 75 6e 6e 69 6e | 67 20 69 74 20 66 72 6f |- runnin|g it fro|
|00000d00| 6d 20 77 69 74 68 69 6e | 20 58 20 63 61 6e 20 63 |m within| X can c|
|00000d10| 61 75 73 65 0a 70 72 6f | 62 6c 65 6d 73 20 2d 20 |ause.pro|blems - |
|00000d20| 74 68 65 20 63 6c 6f 63 | 6b 20 73 74 6f 70 73 2c |the cloc|k stops,|
|00000d30| 20 61 6e 64 20 73 6f 6d | 65 74 69 6d 65 73 20 74 | and som|etimes t|
|00000d40| 68 65 20 73 63 72 65 65 | 6e 20 62 6c 61 6e 6b 73 |he scree|n blanks|
|00000d50| 20 6f 75 74 2e 20 47 6f | 64 20 6b 6e 6f 77 73 0a | out. Go|d knows.|
|00000d60| 77 68 79 2e 2e 2e 0a 0a | 49 66 20 79 6f 75 20 66 |why.....|If you f|
|00000d70| 69 6e 64 20 61 6e 79 20 | 28 72 65 70 65 61 74 61 |ind any |(repeata|
|00000d80| 62 6c 65 29 20 62 75 67 | 73 20 62 65 73 69 64 65 |ble) bug|s beside|
|00000d90| 73 20 74 68 65 20 6f 6e | 65 20 61 62 6f 76 65 2c |s the on|e above,|
|00000da0| 20 74 68 65 6e 20 6c 65 | 74 20 6d 65 20 6b 6e 6f | then le|t me kno|
|00000db0| 77 2e 20 49 0a 6d 69 67 | 68 74 20 66 69 78 20 74 |w. I.mig|ht fix t|
|00000dc0| 68 65 6d 20 69 66 20 49 | 27 6d 20 61 62 6c 65 2c |hem if I|'m able,|
|00000dd0| 20 62 75 74 20 63 6f 6e | 73 69 64 65 72 69 6e 67 | but con|sidering|
|00000de0| 20 6d 79 20 6b 6e 6f 77 | 6c 65 64 67 65 20 6f 66 | my know|ledge of|
|00000df0| 20 55 6e 69 78 20 73 6f | 63 6b 65 74 0a 70 72 6f | Unix so|cket.pro|
|00000e00| 67 72 61 6d 6d 69 6e 67 | 2c 20 74 68 69 73 20 69 |gramming|, this i|
|00000e10| 73 20 75 6e 6c 69 6b 65 | 6c 79 20 3a 2d 29 20 0a |s unlike|ly :-) .|
|00000e20| 0a 46 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 2c 20 |.For mor|e info, |
|00000e30| 73 65 65 20 74 68 65 20 | 6d 61 6e 20 70 61 67 65 |see the |man page|
|00000e40| 2e 20 59 45 53 21 20 49 | 20 6d 65 61 6e 20 69 74 |. YES! I| mean it|
|00000e50| 3a 20 74 68 65 72 65 27 | 73 20 61 20 6d 61 6e 20 |: there'|s a man |
|00000e60| 70 61 67 65 0a 69 6e 63 | 6c 75 64 65 64 21 0a 0a |page.inc|luded!..|
|00000e70| 53 74 61 6e 64 61 72 64 | 20 64 69 73 63 6c 61 69 |Standard| disclai|
|00000e80| 6d 65 72 73 20 61 70 70 | 6c 79 2c 20 61 73 20 75 |mers app|ly, as u|
|00000e90| 73 75 61 6c 20 2d 20 50 | 6c 65 61 73 65 20 73 65 |sual - P|lease se|
|00000ea0| 65 20 6e 65 74 64 61 74 | 65 2e 63 2e 0a 0a 4e 69 |e netdat|e.c...Ni|
|00000eb0| 63 6b 20 48 69 6c 6c 69 | 61 72 64 20 4a 61 6e 2e |ck Hilli|ard Jan.|
|00000ec0| 20 31 39 39 33 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | 1993.--|--------|
|00000ed0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 6e |--------|------.n|
|00000ee0| 69 63 6b 40 63 75 72 69 | 61 2e 75 63 63 2e 69 65 |ick@curi|a.ucc.ie|
|00000ef0| 0a 6e 2e 68 69 6c 6c 69 | 61 72 64 40 62 75 72 65 |.n.hilli|ard@bure|
|00000f00| 61 75 2e 75 63 63 2e 69 | 65 0a 61 72 6d 74 36 30 |au.ucc.i|e.armt60|
|00000f10| 30 33 40 69 72 75 63 63 | 76 61 78 2e 62 69 74 6e |03@irucc|vax.bitn|
|00000f20| 65 74 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |et.-----|--------|
|00000f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 00 00 00 00 |--------|---.....|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 6e 65 74 64 61 74 65 2f | 6e 65 74 64 61 74 65 2e |netdate/|netdate.|
|00001010| 38 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |8.......|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00001070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00001080| 20 20 31 32 31 33 32 20 | 20 35 33 32 36 36 32 35 | 12132 | 5326625|
|00001090| 30 32 36 20 20 31 32 33 | 32 33 00 20 30 00 00 00 |026 123|23. 0...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 2e 54 48 20 4e 45 54 44 | 41 54 45 20 38 4c 20 38 |.TH NETD|ATE 8L 8|
|00001210| 35 2f 30 38 2f 32 31 0a | 2e 55 43 20 34 0a 2e 53 |5/08/21.|.UC 4..S|
|00001220| 48 20 4e 41 4d 45 0a 6e | 65 74 64 61 74 65 20 5c |H NAME.n|etdate \|
|00001230| 2d 20 73 65 74 20 64 61 | 74 65 20 61 6e 64 20 74 |- set da|te and t|
|00001240| 69 6d 65 20 62 79 20 41 | 52 50 41 20 49 6e 74 65 |ime by A|RPA Inte|
|00001250| 72 6e 65 74 20 52 46 43 | 20 38 36 38 0a 2e 53 48 |rnet RFC| 868..SH|
|00001260| 20 53 59 4e 4f 50 53 49 | 53 0a 2e 42 0a 6e 65 74 | SYNOPSI|S..B.net|
|00001270| 64 61 74 65 0a 5b 20 5c | 2d 76 20 5d 20 5b 20 5c |date.[ \|-v ] [ \|
|00001280| 2d 6c 20 6c 69 6d 69 74 | 20 5d 20 5b 20 70 72 6f |-l limit| ] [ pro|
|00001290| 74 6f 63 6f 6c 20 5d 20 | 68 6f 73 74 6e 61 6d 65 |tocol ] |hostname|
|000012a0| 2e 2e 2e 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |.....SH |DESCRIPT|
|000012b0| 49 4f 4e 0a 5c 66 49 4e | 65 74 64 61 74 65 5c 66 |ION.\fIN|etdate\f|
|000012c0| 50 20 74 61 6b 65 73 20 | 61 20 6c 69 73 74 20 6f |P takes |a list o|
|000012d0| 66 20 6e 61 6d 65 73 20 | 6f 66 20 49 6e 74 65 72 |f names |of Inter|
|000012e0| 6e 65 74 20 68 6f 73 74 | 73 20 61 73 20 61 72 67 |net host|s as arg|
|000012f0| 75 6d 65 6e 74 73 2c 0a | 73 65 6c 65 63 74 73 20 |uments,.|selects |
|00001300| 74 68 65 20 6f 6e 65 20 | 77 68 69 63 68 20 73 75 |the one |which su|
|00001310| 70 70 6c 69 65 73 20 74 | 68 65 20 62 65 73 74 20 |pplies t|he best |
|00001320| 74 69 6d 65 2c 20 61 6e | 64 20 73 65 74 73 0a 74 |time, an|d sets.t|
|00001330| 68 65 20 73 79 73 74 65 | 6d 20 74 69 6d 65 20 61 |he syste|m time a|
|00001340| 63 63 6f 72 64 69 6e 67 | 6c 79 2e 0a 54 68 65 20 |ccording|ly..The |
|00001350| 69 6e 76 6f 6b 65 72 20 | 6d 75 73 74 20 62 65 20 |invoker |must be |
|00001360| 74 68 65 20 73 75 70 65 | 72 2d 75 73 65 72 20 66 |the supe|r-user f|
|00001370| 6f 72 20 74 68 65 20 74 | 69 6d 65 20 74 6f 20 62 |or the t|ime to b|
|00001380| 65 20 73 65 74 2e 0a 50 | 72 6f 74 6f 63 6f 6c 20 |e set..P|rotocol |
|00001390| 6e 61 6d 65 73 20 28 65 | 69 74 68 65 72 20 5c 66 |names (e|ither \f|
|000013a0| 42 75 64 70 5c 66 50 20 | 6f 72 20 5c 66 42 74 63 |Budp\fP |or \fBtc|
|000013b0| 70 5c 66 50 29 20 6d 61 | 79 20 62 65 0a 69 6e 74 |p\fP) ma|y be.int|
|000013c0| 65 72 73 70 65 72 73 65 | 64 20 77 69 74 68 20 74 |ersperse|d with t|
|000013d0| 68 65 20 68 6f 73 74 20 | 6e 61 6d 65 73 2c 20 61 |he host |names, a|
|000013e0| 6e 64 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |nd deter|mine the|
|000013f0| 0a 70 72 6f 74 6f 63 6f | 6c 20 77 68 69 63 68 20 |.protoco|l which |
|00001400| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 20 74 6f 20 |will be |used to |
|00001410| 63 6f 6e 6e 65 63 74 20 | 74 6f 20 74 68 65 20 68 |connect |to the h|
|00001420| 6f 73 74 73 0a 77 68 6f | 73 65 20 6e 61 6d 65 73 |osts.who|se names|
|00001430| 20 66 6f 6c 6c 6f 77 2c | 20 75 70 20 74 6f 20 74 | follow,| up to t|
|00001440| 68 65 20 6e 65 78 74 20 | 70 72 6f 74 6f 63 6f 6c |he next |protocol|
|00001450| 20 6e 61 6d 65 20 6f 72 | 0a 74 68 65 20 65 6e 64 | name or|.the end|
|00001460| 20 6f 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | of the |argument|
|00001470| 73 2e 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 70 |s..The d|efault p|
|00001480| 72 6f 74 6f 63 6f 6c 20 | 69 73 20 5c 66 42 75 64 |rotocol |is \fBud|
|00001490| 70 5c 66 50 2e 0a 2e 50 | 50 0a 54 68 65 20 60 60 |p\fP...P|P.The ``|
|000014a0| 62 65 73 74 27 27 20 74 | 69 6d 65 20 69 73 20 63 |best'' t|ime is c|
|000014b0| 68 6f 73 65 6e 20 62 79 | 20 70 6f 6c 6c 69 6e 67 |hosen by| polling|
|000014c0| 20 74 68 65 20 6e 61 6d | 65 64 20 68 6f 73 74 73 | the nam|ed hosts|
|000014d0| 0a 6f 6e 63 65 20 65 61 | 63 68 20 74 6f 20 66 69 |.once ea|ch to fi|
|000014e0| 6e 64 20 74 68 65 69 72 | 20 74 69 6d 65 73 20 61 |nd their| times a|
|000014f0| 6e 64 20 74 61 6b 69 6e | 67 20 74 68 65 69 72 20 |nd takin|g their |
|00001500| 64 69 66 66 65 72 65 6e | 63 65 73 0a 66 72 6f 6d |differen|ces.from|
|00001510| 20 74 68 65 20 6c 6f 63 | 61 6c 20 68 6f 73 74 27 | the loc|al host'|
|00001520| 73 20 74 69 6d 65 2e 0a | 54 68 65 73 65 20 64 69 |s time..|These di|
|00001530| 66 66 65 72 65 6e 63 65 | 73 20 61 72 65 20 75 73 |fference|s are us|
|00001540| 65 64 20 74 6f 20 66 69 | 6e 64 20 74 68 65 20 6c |ed to fi|nd the l|
|00001550| 61 72 67 65 73 74 20 67 | 72 6f 75 70 20 6f 66 20 |argest g|roup of |
|00001560| 68 6f 73 74 73 0a 77 68 | 6f 73 65 20 74 69 6d 65 |hosts.wh|ose time|
|00001570| 73 20 61 67 72 65 65 20 | 77 69 74 68 20 65 61 63 |s agree |with eac|
|00001580| 68 20 6f 74 68 65 72 20 | 77 69 74 68 69 6e 20 61 |h other |within a|
|00001590| 20 63 65 72 74 61 69 6e | 20 6c 69 6d 69 74 2e 0a | certain| limit..|
|000015a0| 54 68 65 20 66 69 72 73 | 74 20 68 6f 73 74 20 69 |The firs|t host i|
|000015b0| 6e 20 74 68 65 20 6c 61 | 72 67 65 73 74 20 67 72 |n the la|rgest gr|
|000015c0| 6f 75 70 20 69 73 20 70 | 69 63 6b 65 64 20 61 73 |oup is p|icked as|
|000015d0| 20 74 68 65 20 62 65 73 | 74 20 68 6f 73 74 2e 0a | the bes|t host..|
|000015e0| 28 54 68 65 20 61 73 73 | 75 6d 70 74 69 6f 6e 20 |(The ass|umption |
|000015f0| 69 73 20 74 68 61 74 20 | 74 68 65 20 68 6f 73 74 |is that |the host|
|00001600| 73 20 77 68 69 63 68 20 | 61 72 65 20 75 73 75 61 |s which |are usua|
|00001610| 6c 6c 79 20 6d 6f 73 74 | 20 61 63 63 75 72 61 74 |lly most| accurat|
|00001620| 65 0a 77 69 6c 6c 20 62 | 65 20 6e 61 6d 65 64 20 |e.will b|e named |
|00001630| 66 69 72 73 74 2e 29 0a | 54 68 61 74 20 68 6f 73 |first.).|That hos|
|00001640| 74 20 69 73 20 70 6f 6c | 6c 65 64 20 61 67 61 69 |t is pol|led agai|
|00001650| 6e 20 61 6e 64 20 74 68 | 65 20 6c 6f 63 61 6c 20 |n and th|e local |
|00001660| 68 6f 73 74 27 73 20 74 | 69 6d 65 20 69 73 20 73 |host's t|ime is s|
|00001670| 65 74 20 74 6f 20 74 68 | 65 20 72 65 73 75 6c 74 |et to th|e result|
|00001680| 2e 0a 54 68 65 20 63 68 | 6f 73 65 6e 20 68 6f 73 |..The ch|osen hos|
|00001690| 74 27 73 20 74 69 6d 65 | 20 69 73 20 63 68 65 63 |t's time| is chec|
|000016a0| 6b 65 64 20 6f 6e 20 74 | 68 69 73 20 73 65 63 6f |ked on t|his seco|
|000016b0| 6e 64 20 70 6f 6c 6c 20 | 74 6f 20 69 6e 73 75 72 |nd poll |to insur|
|000016c0| 65 20 74 68 61 74 0a 69 | 74 73 20 64 69 66 66 65 |e that.i|ts diffe|
|000016d0| 72 65 6e 63 65 20 66 72 | 6f 6d 20 74 68 65 20 6c |rence fr|om the l|
|000016e0| 6f 63 61 6c 20 68 6f 73 | 74 27 73 20 74 69 6d 65 |ocal hos|t's time|
|000016f0| 20 68 61 73 20 6e 6f 74 | 20 76 61 72 69 65 64 20 | has not| varied |
|00001700| 6d 6f 72 65 20 74 68 61 | 6e 20 74 68 65 20 6c 69 |more tha|n the li|
|00001710| 6d 69 74 0a 66 72 6f 6d | 20 69 74 73 20 64 69 66 |mit.from| its dif|
|00001720| 66 65 72 65 6e 63 65 20 | 61 74 20 74 68 65 20 66 |ference |at the f|
|00001730| 69 72 73 74 20 70 6f 6c | 6c 2e 0a 2e 50 50 0a 54 |irst pol|l...PP.T|
|00001740| 68 65 20 64 65 66 61 75 | 6c 74 20 6c 69 6d 69 74 |he defau|lt limit|
|00001750| 20 69 73 20 66 69 76 65 | 20 73 65 63 6f 6e 64 73 | is five| seconds|
|00001760| 2e 20 20 49 74 20 6d 61 | 79 20 62 65 20 73 65 74 |. It ma|y be set|
|00001770| 20 77 69 74 68 20 74 68 | 65 20 5c 66 42 5c 2d 6c | with th|e \fB\-l|
|00001780| 5c 66 50 20 6f 70 74 69 | 6f 6e 2e 0a 54 68 65 20 |\fP opti|on..The |
|00001790| 5c 66 42 5c 2d 76 5c 66 | 50 20 6f 70 74 69 6f 6e |\fB\-v\f|P option|
|000017a0| 20 63 61 75 73 65 73 20 | 74 68 65 20 67 72 6f 75 | causes |the grou|
|000017b0| 70 73 20 74 6f 20 62 65 | 20 73 68 6f 77 6e 2e 0a |ps to be| shown..|
|000017c0| 54 68 65 20 68 6f 73 74 | 20 6e 61 6d 65 20 5c 66 |The host| name \f|
|000017d0| 42 6c 6f 63 61 6c 68 6f | 73 74 5c 66 50 20 69 73 |Blocalho|st\fP is|
|000017e0| 20 72 65 63 6f 67 6e 69 | 7a 65 64 20 61 73 20 61 | recogni|zed as a|
|000017f0| 20 73 79 6e 6f 6e 79 6d | 20 66 6f 72 20 74 68 65 | synonym| for the|
|00001800| 20 6e 61 6d 65 0a 6f 66 | 20 74 68 65 20 6c 6f 63 | name.of| the loc|
|00001810| 61 6c 20 68 6f 73 74 2c | 20 6e 6f 20 6e 65 74 77 |al host,| no netw|
|00001820| 6f 72 6b 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |ork conn|ection i|
|00001830| 73 20 6d 61 64 65 20 66 | 6f 72 20 69 74 2c 20 61 |s made f|or it, a|
|00001840| 6e 64 20 69 74 73 0a 74 | 69 6d 65 20 64 69 66 66 |nd its.t|ime diff|
|00001850| 65 72 65 6e 63 65 20 69 | 73 20 61 6c 77 61 79 73 |erence i|s always|
|00001860| 20 7a 65 72 6f 2e 0a 49 | 66 20 5c 66 42 6c 6f 63 | zero..I|f \fBloc|
|00001870| 61 6c 68 6f 73 74 5c 66 | 50 20 69 73 20 63 68 6f |alhost\f|P is cho|
|00001880| 73 65 6e 20 61 73 20 68 | 61 76 69 6e 67 20 74 68 |sen as h|aving th|
|00001890| 65 20 62 65 73 74 20 74 | 69 6d 65 2c 0a 74 68 65 |e best t|ime,.the|
|000018a0| 20 73 79 73 74 65 6d 20 | 74 69 6d 65 20 77 69 6c | system |time wil|
|000018b0| 6c 20 6e 6f 74 20 62 65 | 20 73 65 74 2e 0a 48 6f |l not be| set..Ho|
|000018c0| 73 74 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |sts whic|h do not|
|000018d0| 20 72 65 73 70 6f 6e 64 | 20 61 72 65 20 6e 6f 74 | respond| are not|
|000018e0| 20 63 6f 75 6e 74 65 64 | 20 69 6e 20 74 68 65 20 | counted| in the |
|000018f0| 67 72 6f 75 70 73 2e 0a | 49 66 20 74 68 65 20 6c |groups..|If the l|
|00001900| 69 6d 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 7a |imit is |set to z|
|00001910| 65 72 6f 2c 20 74 68 65 | 20 74 69 6d 65 20 69 73 |ero, the| time is|
|00001920| 20 73 65 74 20 74 6f 20 | 74 68 61 74 20 6f 66 20 | set to |that of |
|00001930| 74 68 65 0a 66 69 72 73 | 74 20 68 6f 73 74 20 74 |the.firs|t host t|
|00001940| 6f 20 72 65 73 70 6f 6e | 64 20 61 6e 64 20 6e 6f |o respon|d and no|
|00001950| 20 6f 74 68 65 72 20 63 | 68 65 63 6b 69 6e 67 20 | other c|hecking |
|00001960| 69 73 20 64 6f 6e 65 2e | 0a 53 75 70 70 6c 79 69 |is done.|.Supplyi|
|00001970| 6e 67 20 6f 6e 6c 79 20 | 6f 6e 65 20 68 6f 73 74 |ng only |one host|
|00001980| 20 6e 61 6d 65 20 61 72 | 67 75 6d 65 6e 74 20 61 | name ar|gument a|
|00001990| 6c 73 6f 20 73 65 74 73 | 20 74 68 65 20 6c 69 6d |lso sets| the lim|
|000019a0| 69 74 20 74 6f 20 7a 65 | 72 6f 2e 0a 2e 50 50 0a |it to ze|ro...PP.|
|000019b0| 57 68 69 6c 65 20 74 68 | 65 20 52 46 43 38 36 38 |While th|e RFC868|
|000019c0| 20 70 72 6f 74 6f 63 6f | 6c 20 6f 6e 6c 79 20 72 | protoco|l only r|
|000019d0| 65 74 75 72 6e 73 20 33 | 32 5c 20 62 69 74 73 20 |eturns 3|2\ bits |
|000019e0| 6f 66 20 64 61 74 61 2c | 20 63 6f 6e 74 61 69 6e |of data,| contain|
|000019f0| 69 6e 67 0a 74 68 65 20 | 74 69 6d 65 20 69 6e 20 |ing.the |time in |
|00001a00| 73 65 63 6f 6e 64 73 2c | 20 5c 66 49 6e 65 74 64 |seconds,| \fInetd|
|00001a10| 61 74 65 5c 66 50 20 77 | 69 6c 6c 20 61 63 63 65 |ate\fP w|ill acce|
|00001a20| 70 74 20 61 6e 20 65 78 | 74 72 61 20 33 32 5c 20 |pt an ex|tra 32\ |
|00001a30| 62 69 74 73 2c 0a 63 6f | 6e 74 61 69 6e 69 6e 67 |bits,.co|ntaining|
|00001a40| 20 6d 69 63 72 6f 73 65 | 63 6f 6e 64 73 20 28 65 | microse|conds (e|
|00001a50| 78 70 65 63 74 65 64 20 | 74 6f 20 62 65 20 61 63 |xpected |to be ac|
|00001a60| 63 75 72 61 74 65 20 74 | 6f 20 6e 6f 20 6d 6f 72 |curate t|o no mor|
|00001a70| 65 20 74 68 61 6e 20 6d | 69 6c 6c 69 73 65 63 6f |e than m|illiseco|
|00001a80| 6e 64 73 29 2e 0a 44 65 | 6c 61 79 73 20 6f 6e 20 |nds)..De|lays on |
|00001a90| 6c 6f 6e 67 20 68 61 75 | 6c 20 6e 65 74 77 6f 72 |long hau|l networ|
|00001aa0| 6b 73 20 6d 61 79 20 6d | 61 6b 65 20 74 68 69 73 |ks may m|ake this|
|00001ab0| 20 65 78 74 72 61 20 70 | 72 65 63 69 73 69 6f 6e | extra p|recision|
|00001ac0| 20 75 73 65 6c 65 73 73 | 2c 0a 62 75 74 20 69 74 | useless|,.but it|
|00001ad0| 20 69 73 20 75 73 65 66 | 75 6c 20 6f 6e 20 6c 6f | is usef|ul on lo|
|00001ae0| 63 61 6c 20 61 72 65 61 | 20 6e 65 74 77 6f 72 6b |cal area| network|
|00001af0| 73 2e 0a 54 68 65 20 65 | 78 74 72 61 20 70 72 65 |s..The e|xtra pre|
|00001b00| 63 69 73 69 6f 6e 20 69 | 73 20 6e 6f 74 20 75 73 |cision i|s not us|
|00001b10| 65 64 20 6f 6e 20 74 68 | 65 20 66 69 72 73 74 20 |ed on th|e first |
|00001b20| 70 6f 6c 6c 20 6f 66 20 | 61 20 68 6f 73 74 2c 0a |poll of |a host,.|
|00001b30| 62 75 74 20 69 74 20 69 | 73 20 75 73 65 64 20 6f |but it i|s used o|
|00001b40| 6e 20 74 68 65 20 73 65 | 63 6f 6e 64 20 70 6f 6c |n the se|cond pol|
|00001b50| 6c 20 6f 66 20 74 68 65 | 20 63 68 6f 73 65 6e 20 |l of the| chosen |
|00001b60| 68 6f 73 74 2c 0a 69 66 | 20 74 68 61 74 20 68 6f |host,.if| that ho|
|00001b70| 73 74 20 73 75 70 70 6c | 69 65 73 20 69 74 2e 0a |st suppl|ies it..|
|00001b80| 2e 53 48 20 45 58 41 4d | 50 4c 45 0a 54 68 65 20 |.SH EXAM|PLE.The |
|00001b90| 6d 6f 73 74 20 61 63 63 | 75 72 61 74 65 20 68 6f |most acc|urate ho|
|00001ba0| 73 74 73 20 61 72 65 20 | 6e 61 6d 65 64 20 66 69 |sts are |named fi|
|00001bb0| 72 73 74 20 69 6e 20 65 | 61 63 68 20 65 78 61 6d |rst in e|ach exam|
|00001bc0| 70 6c 65 2e 0a 53 6f 6d | 65 20 73 75 63 68 20 63 |ple..Som|e such c|
|00001bd0| 61 6c 6c 20 6f 6e 20 5c | 66 49 6e 65 74 64 61 74 |all on \|fInetdat|
|00001be0| 65 5c 66 50 20 73 68 6f | 75 6c 64 20 62 65 20 70 |e\fP sho|uld be p|
|00001bf0| 75 74 20 61 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |ut at th|e end of|
|00001c00| 20 5c 66 42 2f 65 74 63 | 2f 72 63 2e 6c 6f 63 61 | \fB/etc|/rc.loca|
|00001c10| 6c 5c 66 50 2c 0a 73 6f | 20 74 68 61 74 20 74 68 |l\fP,.so| that th|
|00001c20| 65 20 74 69 6d 65 20 77 | 69 6c 6c 20 62 65 20 73 |e time w|ill be s|
|00001c30| 65 74 20 70 72 6f 70 65 | 72 6c 79 20 6f 6e 20 73 |et prope|rly on s|
|00001c40| 79 73 74 65 6d 20 73 74 | 61 72 74 75 70 2e 0a 49 |ystem st|artup..I|
|00001c50| 74 20 69 73 20 61 6c 73 | 6f 20 75 73 65 66 75 6c |t is als|o useful|
|00001c60| 20 74 6f 20 68 61 76 65 | 20 61 20 73 68 65 6c 6c | to have| a shell|
|00001c70| 20 73 63 72 69 70 74 2c | 20 65 2e 67 2e 2c 20 5c | script,| e.g., \|
|00001c80| 66 42 2f 65 74 63 2f 74 | 69 6d 65 68 6f 73 74 73 |fB/etc/t|imehosts|
|00001c90| 5c 66 50 2c 0a 77 68 69 | 63 68 20 63 6f 6e 74 61 |\fP,.whi|ch conta|
|00001ca0| 69 6e 73 20 61 20 63 61 | 6c 6c 20 6f 6e 20 5c 66 |ins a ca|ll on \f|
|00001cb0| 49 6e 65 74 64 61 74 65 | 5c 66 50 20 77 69 74 68 |Inetdate|\fP with|
|00001cc0| 20 61 72 67 75 6d 65 6e | 74 73 20 61 70 70 72 6f | argumen|ts appro|
|00001cd0| 70 72 69 61 74 65 0a 74 | 6f 20 74 68 65 20 6c 6f |priate.t|o the lo|
|00001ce0| 63 61 6c 20 73 79 73 74 | 65 6d 2c 20 73 6f 20 74 |cal syst|em, so t|
|00001cf0| 68 61 74 20 69 74 20 69 | 73 20 65 61 73 79 20 74 |hat it i|s easy t|
|00001d00| 6f 20 73 65 74 20 74 68 | 65 20 74 69 6d 65 20 6d |o set th|e time m|
|00001d10| 61 6e 75 61 6c 6c 79 2e | 0a 2e 53 48 20 22 6e 65 |anually.|..SH "ne|
|00001d20| 74 64 61 74 65 20 2d 6c | 20 33 30 20 75 64 70 20 |tdate -l| 30 udp |
|00001d30| 64 63 6e 5c 2d 67 61 74 | 65 77 61 79 20 74 63 70 |dcn\-gat|eway tcp|
|00001d40| 20 6e 65 69 67 68 62 6f | 72 22 0a 5c 66 49 44 63 | neighbo|r".\fIDc|
|00001d50| 6e 5c 2d 67 61 74 65 77 | 61 79 5c 66 50 20 69 73 |n\-gatew|ay\fP is|
|00001d60| 20 61 20 68 79 70 6f 74 | 68 65 74 69 63 61 6c 20 | a hypot|hetical |
|00001d70| 68 6f 73 74 20 77 68 69 | 63 68 20 75 73 75 61 6c |host whi|ch usual|
|00001d80| 6c 79 20 6b 65 65 70 73 | 20 74 69 6d 65 0a 61 63 |ly keeps| time.ac|
|00001d90| 63 75 72 61 74 65 20 74 | 6f 20 77 69 74 68 69 6e |curate t|o within|
|00001da0| 20 6d 69 6c 6c 69 73 65 | 63 6f 6e 64 73 20 6f 66 | millise|conds of|
|00001db0| 20 43 6f 6f 72 64 69 6e | 61 74 65 64 20 55 6e 69 | Coordin|ated Uni|
|00001dc0| 76 65 72 73 61 6c 20 54 | 69 6d 65 2c 0a 62 75 74 |versal T|ime,.but|
|00001dd0| 20 6d 61 79 20 6f 63 63 | 61 73 69 6f 6e 61 6c 6c | may occ|asionall|
|00001de0| 79 20 62 65 20 65 69 67 | 68 74 20 68 6f 75 72 73 |y be eig|ht hours|
|00001df0| 20 6f 66 66 2e 0a 5c 66 | 49 4e 65 69 67 68 62 6f | off..\f|INeighbo|
|00001e00| 72 5c 66 50 20 69 73 20 | 61 20 6e 65 69 67 68 62 |r\fP is |a neighb|
|00001e10| 6f 72 20 6f 66 20 74 68 | 65 20 6c 6f 63 61 6c 20 |or of th|e local |
|00001e20| 68 6f 73 74 20 77 68 69 | 63 68 20 6b 65 65 70 73 |host whi|ch keeps|
|00001e30| 20 74 69 6d 65 0a 77 69 | 74 68 20 6d 6f 64 65 72 | time.wi|th moder|
|00001e40| 61 74 65 20 61 63 63 75 | 72 61 63 79 2e 0a 54 68 |ate accu|racy..Th|
|00001e50| 65 20 74 69 6d 65 20 77 | 69 6c 6c 20 62 65 20 73 |e time w|ill be s|
|00001e60| 65 74 20 74 6f 20 74 68 | 61 74 20 6f 66 20 5c 66 |et to th|at of \f|
|00001e70| 49 64 63 6e 5c 2d 67 61 | 74 65 77 61 79 5c 66 50 |Idcn\-ga|teway\fP|
|00001e80| 20 69 66 20 74 68 61 74 | 20 61 6e 64 20 5c 66 49 | if that| and \fI|
|00001e90| 6e 65 69 67 68 62 6f 72 | 5c 66 50 0a 61 67 72 65 |neighbor|\fP.agre|
|00001ea0| 65 20 74 6f 20 77 69 74 | 68 69 6e 20 74 68 69 72 |e to wit|hin thir|
|00001eb0| 74 79 20 73 65 63 6f 6e | 64 73 2c 20 65 6c 73 65 |ty secon|ds, else|
|00001ec0| 20 69 74 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 | it will| not be |
|00001ed0| 73 65 74 20 61 74 20 61 | 6c 6c 2e 0a 54 68 69 73 |set at a|ll..This|
|00001ee0| 20 69 73 20 61 6c 6d 6f | 73 74 20 67 6f 6f 64 20 | is almo|st good |
|00001ef0| 65 6e 6f 75 67 68 20 66 | 6f 72 20 6d 6f 73 74 20 |enough f|or most |
|00001f00| 63 69 72 63 75 6d 73 74 | 61 6e 63 65 73 2c 20 62 |circumst|ances, b|
|00001f10| 75 74 20 77 6f 6e 27 74 | 20 64 6f 0a 77 68 65 6e |ut won't| do.when|
|00001f20| 20 74 68 65 20 6c 6f 63 | 61 6c 20 68 6f 73 74 27 | the loc|al host'|
|00001f30| 73 20 74 69 6d 65 20 69 | 73 20 6b 6e 6f 77 6e 20 |s time i|s known |
|00001f40| 74 6f 20 62 65 20 77 72 | 6f 6e 67 20 28 65 2e 67 |to be wr|ong (e.g|
|00001f50| 2e 2c 20 61 66 74 65 72 | 0a 61 20 6c 6f 6e 67 20 |., after|.a long |
|00001f60| 64 6f 77 6e 74 69 6d 65 | 20 6f 72 20 61 20 62 61 |downtime| or a ba|
|00001f70| 64 20 63 72 61 73 68 29 | 20 61 6e 64 20 6d 75 73 |d crash)| and mus|
|00001f80| 74 20 62 65 20 73 65 74 | 20 74 6f 20 73 6f 6d 65 |t be set| to some|
|00001f90| 74 68 69 6e 67 2e 0a 49 | 66 20 6f 6e 65 20 6f 66 |thing..I|f one of|
|00001fa0| 20 74 68 65 20 68 6f 73 | 74 73 20 6e 61 6d 65 64 | the hos|ts named|
|00001fb0| 20 69 73 20 69 6e 61 63 | 63 75 72 61 74 65 20 6f | is inac|curate o|
|00001fc0| 72 20 6e 6f 74 20 72 65 | 73 70 6f 6e 64 69 6e 67 |r not re|sponding|
|00001fd0| 2c 20 74 68 65 72 65 20 | 69 73 20 61 20 70 72 6f |, there |is a pro|
|00001fe0| 62 6c 65 6d 2e 0a 2e 53 | 48 20 22 6e 65 74 64 61 |blem...S|H "netda|
|00001ff0| 74 65 20 2d 6c 20 33 30 | 20 75 64 70 20 64 63 6e |te -l 30| udp dcn|
|00002000| 5c 2d 67 61 74 65 77 61 | 79 20 74 63 70 20 6e 65 |\-gatewa|y tcp ne|
|00002010| 69 67 68 62 6f 72 20 6e | 65 69 67 68 62 6f 72 32 |ighbor n|eighbor2|
|00002020| 22 0a 4f 6e 6c 79 20 74 | 77 6f 20 6f 66 20 74 68 |".Only t|wo of th|
|00002030| 65 20 74 68 72 65 65 20 | 68 6f 73 74 73 20 6e 61 |e three |hosts na|
|00002040| 6d 65 64 20 6d 75 73 74 | 20 61 67 72 65 65 20 6f |med must| agree o|
|00002050| 6e 20 74 68 65 20 74 69 | 6d 65 2e 0a 54 68 65 20 |n the ti|me..The |
|00002060| 74 69 6d 65 20 77 69 6c | 6c 20 73 74 69 6c 6c 20 |time wil|l still |
|00002070| 62 65 20 73 65 74 20 28 | 74 6f 20 74 68 61 74 20 |be set (|to that |
|00002080| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 6e 65 69 |of the f|irst nei|
|00002090| 67 68 62 6f 72 29 2c 0a | 65 76 65 6e 20 69 66 20 |ghbor),.|even if |
|000020a0| 5c 66 49 64 63 6e 5c 2d | 67 61 74 65 77 61 79 5c |\fIdcn\-|gateway\|
|000020b0| 66 50 20 69 73 20 66 61 | 72 20 6f 66 66 20 61 73 |fP is fa|r off as|
|000020c0| 20 6c 6f 6e 67 20 61 73 | 20 74 68 65 20 74 77 6f | long as| the two|
|000020d0| 20 6e 65 69 67 68 62 6f | 72 73 20 61 67 72 65 65 | neighbo|rs agree|
|000020e0| 2e 0a 54 68 69 73 20 69 | 73 20 70 72 6f 62 61 62 |..This i|s probab|
|000020f0| 6c 79 20 67 6f 6f 64 20 | 65 6e 6f 75 67 68 20 66 |ly good |enough f|
|00002100| 6f 72 20 6d 6f 73 74 20 | 63 61 73 65 73 2e 0a 4f |or most |cases..O|
|00002110| 6e 65 20 63 61 6e 20 61 | 72 62 69 74 72 61 72 69 |ne can a|rbitrari|
|00002120| 6c 79 20 67 65 72 72 79 | 6d 61 6e 64 65 72 20 74 |ly gerry|mander t|
|00002130| 68 65 20 76 6f 74 65 20 | 66 6f 72 20 6d 6f 72 65 |he vote |for more|
|00002140| 20 69 6e 73 75 72 61 6e | 63 65 0a 28 61 6e 64 20 | insuran|ce.(and |
|00002150| 6c 65 73 73 20 63 6c 61 | 72 69 74 79 29 2c 20 61 |less cla|rity), a|
|00002160| 73 20 69 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |s in the| followi|
|00002170| 6e 67 20 65 78 61 6d 70 | 6c 65 2e 0a 2e 53 48 20 |ng examp|le...SH |
|00002180| 22 6e 65 74 64 61 74 65 | 5c 20 75 64 70 5c 20 64 |"netdate|\ udp\ d|
|00002190| 63 6e 5c 2d 67 61 74 65 | 77 61 79 5c 20 64 63 6e |cn\-gate|way\ dcn|
|000021a0| 31 5c 20 74 63 70 5c 20 | 62 62 6e 5c 2d 75 6e 69 |1\ tcp\ |bbn\-uni|
|000021b0| 78 5c 20 6c 6f 63 61 6c | 68 6f 73 74 5c 20 6e 65 |x\ local|host\ ne|
|000021c0| 69 67 68 62 6f 72 22 0a | 48 65 72 65 20 5c 66 49 |ighbor".|Here \fI|
|000021d0| 64 63 6e 31 5c 66 50 20 | 61 6e 64 20 5c 66 49 62 |dcn1\fP |and \fIb|
|000021e0| 62 6e 5c 2d 75 6e 69 78 | 5c 66 50 20 61 72 65 20 |bn\-unix|\fP are |
|000021f0| 6d 6f 72 65 20 68 79 70 | 6f 74 68 65 74 69 63 61 |more hyp|othetica|
|00002200| 6c 20 76 65 72 79 20 61 | 63 63 75 72 61 74 65 0a |l very a|ccurate.|
|00002210| 74 69 6d 65 6b 65 65 70 | 65 72 73 2c 20 61 74 20 |timekeep|ers, at |
|00002220| 6c 65 61 73 74 20 6f 6e | 65 20 6f 66 20 77 68 69 |least on|e of whi|
|00002230| 63 68 20 6b 65 65 70 73 | 20 74 69 6d 65 20 69 6e |ch keeps| time in|
|00002240| 64 65 70 65 6e 64 65 6e | 74 6c 79 20 66 72 6f 6d |dependen|tly from|
|00002250| 0a 5c 66 49 64 63 6e 5c | 2d 67 61 74 65 77 61 79 |.\fIdcn\|-gateway|
|00002260| 5c 66 50 2c 20 6f 6e 65 | 20 68 6f 70 65 73 2e 0a |\fP, one| hopes..|
|00002270| 49 74 20 69 73 20 76 65 | 72 79 20 6c 69 6b 65 6c |It is ve|ry likel|
|00002280| 79 20 74 68 61 74 20 74 | 68 65 20 74 69 6d 65 20 |y that t|he time |
|00002290| 77 69 6c 6c 20 62 65 20 | 73 65 74 20 74 6f 20 74 |will be |set to t|
|000022a0| 68 61 74 20 6f 6e 65 20 | 6f 66 20 74 68 6f 73 65 |hat one |of those|
|000022b0| 20 74 68 72 65 65 0a 76 | 65 72 79 20 61 63 63 75 | three.v|ery accu|
|000022c0| 72 61 74 65 20 68 6f 73 | 74 73 2c 20 61 73 20 6c |rate hos|ts, as l|
|000022d0| 6f 6e 67 20 61 73 20 61 | 74 20 6c 65 61 73 74 20 |ong as a|t least |
|000022e0| 74 77 6f 20 6f 66 20 74 | 68 65 6d 20 61 67 72 65 |two of t|hem agre|
|000022f0| 65 2c 20 6f 72 20 61 74 | 20 6c 65 61 73 74 0a 6f |e, or at| least.o|
|00002300| 6e 65 20 6f 66 20 74 68 | 65 6d 20 61 67 72 65 65 |ne of th|em agree|
|00002310| 73 20 77 69 74 68 20 74 | 68 65 20 6e 65 69 67 68 |s with t|he neigh|
|00002320| 62 6f 72 20 6f 72 20 74 | 68 65 20 6c 6f 63 61 6c |bor or t|he local|
|00002330| 20 68 6f 73 74 27 73 20 | 74 69 6d 65 2e 0a 49 66 | host's |time..If|
|00002340| 20 61 6c 6c 20 74 68 65 | 20 66 6f 72 65 69 67 6e | all the| foreign|
|00002350| 20 68 6f 73 74 73 20 64 | 69 73 61 67 72 65 65 2c | hosts d|isagree,|
|00002360| 20 74 68 65 20 74 69 6d | 65 20 77 69 6c 6c 20 6e | the tim|e will n|
|00002370| 6f 74 20 62 65 20 73 65 | 74 2c 0a 73 69 6e 63 65 |ot be se|t,.since|
|00002380| 20 5c 66 42 6c 6f 63 61 | 6c 68 6f 73 74 5c 66 50 | \fBloca|lhost\fP|
|00002390| 20 77 69 6c 6c 20 62 65 | 20 63 68 6f 73 65 6e 20 | will be| chosen |
|000023a0| 61 73 20 62 65 73 74 2e | 0a 2e 53 48 20 22 6e 65 |as best.|..SH "ne|
|000023b0| 74 64 61 74 65 5c 20 5c | 2d 6c 5c 20 33 5c 20 6c |tdate\ \|-l\ 3\ l|
|000023c0| 6f 63 61 6c 68 6f 73 74 | 5c 20 6c 6f 63 61 6c 68 |ocalhost|\ localh|
|000023d0| 6f 73 74 5c 20 75 64 70 | 5c 20 64 63 6e 5c 2d 67 |ost\ udp|\ dcn\-g|
|000023e0| 61 74 65 77 61 79 5c 20 | 64 63 6e 31 5c 20 74 63 |ateway\ |dcn1\ tc|
|000023f0| 70 5c 20 62 62 6e 5c 2d | 75 6e 69 78 22 0a 54 68 |p\ bbn\-|unix".Th|
|00002400| 69 73 20 65 78 61 6d 70 | 6c 65 20 67 69 76 65 73 |is examp|le gives|
|00002410| 20 5c 66 42 6c 6f 63 61 | 6c 68 6f 73 74 5c 66 50 | \fBloca|lhost\fP|
|00002420| 20 74 77 6f 20 76 6f 74 | 65 73 20 61 6e 64 20 64 | two vot|es and d|
|00002430| 65 63 6c 61 72 65 73 20 | 69 74 20 74 6f 20 75 73 |eclares |it to us|
|00002440| 75 61 6c 6c 79 0a 68 61 | 76 65 20 74 68 65 20 6d |ually.ha|ve the m|
|00002450| 6f 73 74 20 61 63 63 75 | 72 61 74 65 20 74 69 6d |ost accu|rate tim|
|00002460| 65 2e 0a 41 6c 6c 20 74 | 68 72 65 65 20 66 6f 72 |e..All t|hree for|
|00002470| 65 69 67 6e 20 68 6f 73 | 74 73 20 6d 75 73 74 20 |eign hos|ts must |
|00002480| 61 67 72 65 65 20 77 69 | 74 68 69 6e 20 74 68 72 |agree wi|thin thr|
|00002490| 65 65 20 73 65 63 6f 6e | 64 73 0a 61 6e 64 20 61 |ee secon|ds.and a|
|000024a0| 6c 73 6f 20 64 69 66 66 | 65 72 20 66 72 6f 6d 20 |lso diff|er from |
|000024b0| 5c 66 42 6c 6f 63 61 6c | 68 6f 73 74 73 5c 66 50 |\fBlocal|hosts\fP|
|000024c0| 20 62 79 20 6d 6f 72 65 | 20 74 68 61 6e 20 74 68 | by more| than th|
|000024d0| 72 65 65 20 73 65 63 6f | 6e 64 73 0a 66 6f 72 20 |ree seco|nds.for |
|000024e0| 74 68 65 20 74 69 6d 65 | 20 74 6f 20 62 65 20 73 |the time| to be s|
|000024f0| 65 74 2e 0a 54 68 75 73 | 20 74 68 65 20 74 69 6d |et..Thus| the tim|
|00002500| 65 20 77 69 6c 6c 20 62 | 65 20 73 65 74 20 6f 6e |e will b|e set on|
|00002510| 6c 79 20 69 66 20 69 74 | 20 72 65 61 6c 6c 79 20 |ly if it| really |
|00002520| 6e 65 65 64 73 20 74 6f | 20 62 65 2e 0a 2e 53 48 |needs to| be...SH|
|00002530| 20 46 49 4c 45 53 0a 2e | 6e 66 0a 2f 65 74 63 2f | FILES..|nf./etc/|
|00002540| 69 6e 65 74 2f 73 65 72 | 76 69 63 65 73 09 66 6f |inet/ser|vices.fo|
|00002550| 72 20 74 68 65 20 74 69 | 6d 65 20 73 65 72 76 69 |r the ti|me servi|
|00002560| 63 65 20 70 6f 72 74 20 | 6e 75 6d 62 65 72 0a 2f |ce port |number./|
|00002570| 65 74 63 2f 69 6e 65 74 | 2f 70 72 6f 74 6f 63 6f |etc/inet|/protoco|
|00002580| 6c 73 09 66 6f 72 20 74 | 68 65 20 70 72 6f 74 6f |ls.for t|he proto|
|00002590| 63 6f 6c 20 6e 75 6d 62 | 65 72 73 0a 2f 65 74 63 |col numb|ers./etc|
|000025a0| 2f 77 74 6d 70 09 74 6f | 20 72 65 63 6f 72 64 20 |/wtmp.to| record |
|000025b0| 74 69 6d 65 2d 73 65 74 | 74 69 6e 67 0a 2e 53 48 |time-set|ting..SH|
|000025c0| 20 53 45 45 20 41 4c 53 | 4f 0a 41 52 50 41 4e 45 | SEE ALS|O.ARPANE|
|000025d0| 54 20 52 65 71 75 65 73 | 74 20 66 6f 72 20 43 6f |T Reques|t for Co|
|000025e0| 6d 6d 65 6e 74 73 20 38 | 36 38 2c 20 67 65 74 74 |mments 8|68, gett|
|000025f0| 69 6d 65 6f 66 64 61 79 | 28 32 29 2c 20 64 61 74 |imeofday|(2), dat|
|00002600| 65 28 31 29 2c 0a 57 57 | 56 20 28 55 53 41 29 3a |e(1),.WW|V (USA):|
|00002610| 0a 32 2e 35 2c 35 2c 31 | 30 2c 31 35 20 4d 48 7a |.2.5,5,1|0,15 MHz|
|00002620| 20 41 4d 20 66 6f 72 20 | 43 6f 6f 72 64 69 6e 61 | AM for |Coordina|
|00002630| 74 65 64 20 55 6e 69 76 | 65 72 73 61 6c 20 54 69 |ted Univ|ersal Ti|
|00002640| 6d 65 20 28 55 43 54 29 | 2e 0a 2e 53 48 20 44 49 |me (UCT)|...SH DI|
|00002650| 41 47 4e 4f 53 54 49 43 | 53 0a 00 00 00 00 00 00 |AGNOSTIC|S.......|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 6e 65 74 64 61 74 65 2f | 6e 65 74 64 61 74 65 2e |netdate/|netdate.|
|00002810| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00002870| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00002880| 20 20 33 30 34 37 35 20 | 20 35 33 32 37 30 37 32 | 30475 | 5327072|
|00002890| 32 32 36 20 20 31 32 34 | 30 37 00 20 30 00 00 00 |226 124|07. 0...|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 2f 2a 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |/* . | |
|00002a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a20| 4e 4f 20 57 41 52 52 41 | 4e 54 59 0a 0a 20 20 20 |NO WARRA|NTY.. |
|00002a30| 20 54 48 45 52 45 20 49 | 53 20 4e 4f 20 57 41 52 | THERE I|S NO WAR|
|00002a40| 52 41 4e 54 59 20 46 4f | 52 20 54 48 49 53 20 50 |RANTY FO|R THIS P|
|00002a50| 52 4f 47 52 41 4d 2c 20 | 54 4f 20 54 48 45 20 45 |ROGRAM, |TO THE E|
|00002a60| 58 54 45 4e 54 20 50 45 | 52 4d 49 54 54 45 44 20 |XTENT PE|RMITTED |
|00002a70| 42 59 0a 20 20 41 50 50 | 4c 49 43 41 42 4c 45 20 |BY. APP|LICABLE |
|00002a80| 4c 41 57 2e 20 20 45 58 | 43 45 50 54 20 57 48 45 |LAW. EX|CEPT WHE|
|00002a90| 4e 20 4f 54 48 45 52 57 | 49 53 45 20 53 54 41 54 |N OTHERW|ISE STAT|
|00002aa0| 45 44 20 49 4e 20 57 52 | 49 54 49 4e 47 20 54 48 |ED IN WR|ITING TH|
|00002ab0| 45 20 43 4f 50 59 52 49 | 47 48 54 0a 20 20 48 4f |E COPYRI|GHT. HO|
|00002ac0| 4c 44 45 52 53 20 41 4e | 44 2f 4f 52 20 4f 54 48 |LDERS AN|D/OR OTH|
|00002ad0| 45 52 20 50 41 52 54 49 | 45 53 20 50 52 4f 56 49 |ER PARTI|ES PROVI|
|00002ae0| 44 45 20 54 48 45 20 50 | 52 4f 47 52 41 4d 20 22 |DE THE P|ROGRAM "|
|00002af0| 41 53 20 49 53 22 20 57 | 49 54 48 4f 55 54 20 57 |AS IS" W|ITHOUT W|
|00002b00| 41 52 52 41 4e 54 59 0a | 20 20 4f 46 20 41 4e 59 |ARRANTY.| OF ANY|
|00002b10| 20 4b 49 4e 44 2c 20 45 | 49 54 48 45 52 20 45 58 | KIND, E|ITHER EX|
|00002b20| 50 52 45 53 53 45 44 20 | 4f 52 20 49 4d 50 4c 49 |PRESSED |OR IMPLI|
|00002b30| 45 44 2c 20 49 4e 43 4c | 55 44 49 4e 47 2c 20 42 |ED, INCL|UDING, B|
|00002b40| 55 54 20 4e 4f 54 20 4c | 49 4d 49 54 45 44 20 54 |UT NOT L|IMITED T|
|00002b50| 4f 2c 0a 20 20 54 48 45 | 20 49 4d 50 4c 49 45 44 |O,. THE| IMPLIED|
|00002b60| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 4d | WARRANT|IES OF M|
|00002b70| 45 52 43 48 41 4e 54 41 | 42 49 4c 49 54 59 20 41 |ERCHANTA|BILITY A|
|00002b80| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00002b90| 20 50 41 52 54 49 43 55 | 4c 41 52 0a 20 20 50 55 | PARTICU|LAR. PU|
|00002ba0| 52 50 4f 53 45 2e 20 20 | 54 48 45 20 45 4e 54 49 |RPOSE. |THE ENTI|
|00002bb0| 52 45 20 52 49 53 4b 20 | 41 53 20 54 4f 20 54 48 |RE RISK |AS TO TH|
|00002bc0| 45 20 51 55 41 4c 49 54 | 59 20 41 4e 44 20 50 45 |E QUALIT|Y AND PE|
|00002bd0| 52 46 4f 52 4d 41 4e 43 | 45 20 4f 46 20 54 48 45 |RFORMANC|E OF THE|
|00002be0| 20 50 52 4f 47 52 41 4d | 0a 20 20 49 53 20 57 49 | PROGRAM|. IS WI|
|00002bf0| 54 48 20 59 4f 55 2e 20 | 20 53 48 4f 55 4c 44 20 |TH YOU. | SHOULD |
|00002c00| 54 48 45 20 50 52 4f 47 | 52 41 4d 20 50 52 4f 56 |THE PROG|RAM PROV|
|00002c10| 45 20 44 45 46 45 43 54 | 49 56 45 2c 20 59 4f 55 |E DEFECT|IVE, YOU|
|00002c20| 20 41 53 53 55 4d 45 20 | 54 48 45 20 43 4f 53 54 | ASSUME |THE COST|
|00002c30| 20 4f 46 0a 20 20 41 4c | 4c 20 4e 45 43 45 53 53 | OF. AL|L NECESS|
|00002c40| 41 52 59 20 53 45 52 56 | 49 43 49 4e 47 2c 20 52 |ARY SERV|ICING, R|
|00002c50| 45 50 41 49 52 20 4f 52 | 20 43 4f 52 52 45 43 54 |EPAIR OR| CORRECT|
|00002c60| 49 4f 4e 2e 20 20 0a 20 | 20 20 20 20 20 20 20 20 |ION. . | |
|00002c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c80| 20 20 20 20 20 0a 20 20 | 49 4e 20 4e 4f 20 45 56 | . |IN NO EV|
|00002c90| 45 4e 54 20 55 4e 4c 45 | 53 53 20 52 45 51 55 49 |ENT UNLE|SS REQUI|
|00002ca0| 52 45 44 20 42 59 20 41 | 50 50 4c 49 43 41 42 4c |RED BY A|PPLICABL|
|00002cb0| 45 20 4c 41 57 20 4f 52 | 20 41 47 52 45 45 44 20 |E LAW OR| AGREED |
|00002cc0| 54 4f 20 49 4e 20 57 52 | 49 54 49 4e 47 20 57 49 |TO IN WR|ITING WI|
|00002cd0| 4c 4c 0a 20 20 41 4e 59 | 20 43 4f 50 59 52 49 47 |LL. ANY| COPYRIG|
|00002ce0| 48 54 20 48 4f 4c 44 45 | 52 2c 20 4f 52 20 41 4e |HT HOLDE|R, OR AN|
|00002cf0| 59 20 4f 54 48 45 52 20 | 50 41 52 54 59 20 57 48 |Y OTHER |PARTY WH|
|00002d00| 4f 20 4d 41 59 20 4d 4f | 44 49 46 59 20 41 4e 44 |O MAY MO|DIFY AND|
|00002d10| 2f 4f 52 0a 20 20 52 45 | 44 49 53 54 52 49 42 55 |/OR. RE|DISTRIBU|
|00002d20| 54 45 20 54 48 45 20 50 | 52 4f 47 52 41 4d 2c 20 |TE THE P|ROGRAM, |
|00002d30| 42 45 20 4c 49 41 42 4c | 45 20 54 4f 20 59 4f 55 |BE LIABL|E TO YOU|
|00002d40| 20 46 4f 52 20 44 41 4d | 41 47 45 53 2c 20 49 4e | FOR DAM|AGES, IN|
|00002d50| 43 4c 55 44 49 4e 47 20 | 41 4e 59 0a 20 20 47 45 |CLUDING |ANY. GE|
|00002d60| 4e 45 52 41 4c 2c 20 53 | 50 45 43 49 41 4c 2c 20 |NERAL, S|PECIAL, |
|00002d70| 49 4e 43 49 44 45 4e 54 | 41 4c 20 4f 52 20 43 4f |INCIDENT|AL OR CO|
|00002d80| 4e 53 45 51 55 45 4e 54 | 49 41 4c 20 44 41 4d 41 |NSEQUENT|IAL DAMA|
|00002d90| 47 45 53 20 41 52 49 53 | 49 4e 47 20 4f 55 54 20 |GES ARIS|ING OUT |
|00002da0| 4f 46 20 54 48 45 0a 20 | 20 55 53 45 20 4f 52 20 |OF THE. | USE OR |
|00002db0| 49 4e 41 42 49 4c 49 54 | 59 20 54 4f 20 55 53 45 |INABILIT|Y TO USE|
|00002dc0| 20 54 48 45 20 50 52 4f | 47 52 41 4d 20 28 49 4e | THE PRO|GRAM (IN|
|00002dd0| 43 4c 55 44 49 4e 47 20 | 42 55 54 20 4e 4f 54 20 |CLUDING |BUT NOT |
|00002de0| 4c 49 4d 49 54 45 44 20 | 54 4f 20 4c 4f 53 53 20 |LIMITED |TO LOSS |
|00002df0| 4f 46 0a 20 20 44 41 54 | 41 20 4f 52 20 44 41 54 |OF. DAT|A OR DAT|
|00002e00| 41 20 42 45 49 4e 47 20 | 52 45 4e 44 45 52 45 44 |A BEING |RENDERED|
|00002e10| 20 49 4e 41 43 43 55 52 | 41 54 45 20 4f 52 20 4c | INACCUR|ATE OR L|
|00002e20| 4f 53 53 45 53 20 53 55 | 53 54 41 49 4e 45 44 20 |OSSES SU|STAINED |
|00002e30| 42 59 20 59 4f 55 20 4f | 52 20 54 48 49 52 44 0a |BY YOU O|R THIRD.|
|00002e40| 20 20 50 41 52 54 49 45 | 53 20 4f 52 20 41 20 46 | PARTIE|S OR A F|
|00002e50| 41 49 4c 55 52 45 20 4f | 46 20 54 48 45 20 50 52 |AILURE O|F THE PR|
|00002e60| 4f 47 52 41 4d 20 54 4f | 20 4f 50 45 52 41 54 45 |OGRAM TO| OPERATE|
|00002e70| 20 57 49 54 48 20 41 4e | 59 20 4f 54 48 45 52 20 | WITH AN|Y OTHER |
|00002e80| 50 52 4f 47 52 41 4d 53 | 29 2c 0a 20 20 45 56 45 |PROGRAMS|),. EVE|
|00002e90| 4e 20 49 46 20 53 55 43 | 48 20 48 4f 4c 44 45 52 |N IF SUC|H HOLDER|
|00002ea0| 20 4f 52 20 4f 54 48 45 | 52 20 50 41 52 54 59 20 | OR OTHE|R PARTY |
|00002eb0| 48 41 53 20 42 45 45 4e | 20 41 44 56 49 53 45 44 |HAS BEEN| ADVISED|
|00002ec0| 20 4f 46 20 54 48 45 20 | 50 4f 53 53 49 42 49 4c | OF THE |POSSIBIL|
|00002ed0| 49 54 59 20 4f 46 0a 20 | 20 53 55 43 48 20 44 41 |ITY OF. | SUCH DA|
|00002ee0| 4d 41 47 45 53 2e 20 20 | 0a 20 20 20 20 20 20 20 |MAGES. |. |
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f00| 20 20 20 20 20 20 20 20 | 20 0a 2a 2f 0a 0a 23 69 | | .*/..#i|
|00002f10| 66 6e 64 65 66 20 6c 69 | 6e 74 0a 09 63 68 61 72 |fndef li|nt..char|
|00002f20| 20 73 63 63 73 69 64 5b | 5d 3d 22 40 28 23 29 20 | sccsid[|]="@(#) |
|00002f30| 6e 65 74 64 61 74 65 2e | 63 20 31 2e 31 36 20 38 |netdate.|c 1.16 8|
|00002f40| 35 2f 30 38 2f 32 31 22 | 3b 0a 23 65 6e 64 69 66 |5/08/21"|;.#endif|
|00002f50| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 70 |.#includ|e <sys/p|
|00002f60| 61 72 61 6d 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |aram.h>.|#include|
|00002f70| 20 3c 73 79 73 2f 73 74 | 61 74 2e 68 3e 0a 23 69 | <sys/st|at.h>.#i|
|00002f80| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 69 6f 63 74 |nclude <|sys/ioct|
|00002f90| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|00002fa0| 79 73 2f 73 6f 63 6b 65 | 74 2e 68 3e 0a 23 69 6e |ys/socke|t.h>.#in|
|00002fb0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 74 69 6d 65 2e |clude <s|ys/time.|
|00002fc0| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 6e 65 |h>..#inc|lude <ne|
|00002fd0| 74 69 6e 65 74 2f 69 6e | 2e 68 3e 0a 0a 23 69 6e |tinet/in|.h>..#in|
|00002fe0| 63 6c 75 64 65 20 3c 66 | 63 6e 74 6c 2e 68 3e 0a |clude <f|cntl.h>.|
|00002ff0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 72 69 6e 67 |#include| <string|
|00003000| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00003010| 64 6c 69 62 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |dlib.h>.|#include|
|00003020| 20 3c 75 6e 69 73 74 64 | 2e 68 3e 0a 23 69 6e 63 | <unistd|.h>.#inc|
|00003030| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|00003040| 69 6e 63 6c 75 64 65 20 | 3c 6e 65 74 64 62 2e 68 |include |<netdb.h|
|00003050| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 65 74 6a |>.#inclu|de <setj|
|00003060| 6d 70 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |mp.h>.#i|nclude <|
|00003070| 73 69 67 6e 61 6c 2e 68 | 3e 0a 23 69 6e 63 6c 75 |signal.h|>.#inclu|
|00003080| 64 65 20 3c 75 74 6d 70 | 2e 68 3e 0a 23 64 65 66 |de <utmp|.h>.#def|
|00003090| 69 6e 65 20 57 54 4d 50 | 20 22 2f 65 74 63 2f 77 |ine WTMP| "/etc/w|
|000030a0| 74 6d 70 22 0a 0a 73 74 | 72 75 63 74 20 75 74 6d |tmp"..st|ruct utm|
|000030b0| 70 20 77 74 6d 70 5b 32 | 5d 20 3d 20 7b 0a 09 7b |p wtmp[2|] = {..{|
|000030c0| 20 30 2c 20 30 2c 20 22 | 7c 22 2c 20 22 22 2c 20 | 0, 0, "||", "", |
|000030d0| 30 2c 20 22 22 2c 20 22 | 22 2c 20 30 7d 2c 0a 09 |0, "", "|", 0},..|
|000030e0| 7b 20 30 2c 20 30 2c 20 | 22 7b 22 2c 20 22 22 2c |{ 0, 0, |"{", "",|
|000030f0| 20 30 2c 20 22 22 2c 20 | 22 22 2c 20 30 7d 0a 7d | 0, "", |"", 0}.}|
|00003100| 3b 0a 0a 63 68 61 72 20 | 2a 73 65 72 76 69 63 65 |;..char |*service|
|00003110| 20 3d 20 22 74 69 6d 65 | 22 3b 0a 63 68 61 72 20 | = "time|";.char |
|00003120| 2a 64 65 66 61 75 6c 74 | 70 72 6f 74 6f 20 3d 20 |*default|proto = |
|00003130| 22 75 64 70 22 3b 0a 2f | 2a 20 64 69 66 66 65 72 |"udp";./|* differ|
|00003140| 65 6e 63 65 20 62 65 74 | 77 65 65 6e 20 31 39 30 |ence bet|ween 190|
|00003150| 30 20 28 52 46 43 38 36 | 38 29 20 61 6e 64 20 31 |0 (RFC86|8) and 1|
|00003160| 39 37 30 20 28 55 4e 49 | 58 29 20 62 61 73 65 20 |970 (UNI|X) base |
|00003170| 74 69 6d 65 73 20 2a 2f | 0a 23 64 65 66 69 6e 65 |times */|.#define|
|00003180| 20 4e 45 54 42 41 53 45 | 09 32 32 30 38 39 38 38 | NETBASE|.2208988|
|00003190| 38 30 30 0a 0a 6c 6f 6e | 67 20 6c 69 6d 69 74 20 |800..lon|g limit |
|000031a0| 3d 20 35 3b 0a 23 64 65 | 66 69 6e 65 20 4d 41 58 |= 5;.#de|fine MAX|
|000031b0| 48 4f 53 54 53 20 32 30 | 0a 0a 23 64 65 66 69 6e |HOSTS 20|..#defin|
|000031c0| 65 20 4c 4f 43 41 4c 48 | 4f 53 54 20 22 6c 6f 63 |e LOCALH|OST "loc|
|000031d0| 61 6c 68 6f 73 74 22 0a | 63 68 61 72 20 2a 77 68 |alhost".|char *wh|
|000031e0| 6f 61 6d 69 3b 0a 63 68 | 61 72 20 68 6f 73 74 6e |oami;.ch|ar hostn|
|000031f0| 61 6d 65 5b 36 35 5d 3b | 0a 73 74 72 75 63 74 20 |ame[65];|.struct |
|00003200| 74 69 6d 65 76 61 6c 20 | 6e 6f 77 3b 0a 73 74 72 |timeval |now;.str|
|00003210| 75 63 74 20 74 69 6d 65 | 68 6f 73 74 20 7b 0a 09 |uct time|host {..|
|00003220| 63 68 61 72 20 2a 68 6f | 73 74 6e 61 6d 65 3b 0a |char *ho|stname;.|
|00003230| 09 73 68 6f 72 74 20 6c | 6f 63 61 6c 3b 0a 09 73 |.short l|ocal;..s|
|00003240| 68 6f 72 74 20 62 61 64 | 3b 0a 09 63 68 61 72 20 |hort bad|;..char |
|00003250| 2a 70 72 6f 74 6f 6e 61 | 6d 65 3b 0a 09 6c 6f 6e |*protona|me;..lon|
|00003260| 67 20 70 72 6f 74 6f 6e | 75 6d 62 65 72 3b 0a 09 |g proton|umber;..|
|00003270| 69 6e 74 20 73 6f 63 6b | 74 79 70 65 3b 0a 09 73 |int sock|type;..s|
|00003280| 74 72 75 63 74 20 74 69 | 6d 65 76 61 6c 20 61 73 |truct ti|meval as|
|00003290| 6b 65 64 3b 0a 09 73 74 | 72 75 63 74 20 74 69 6d |ked;..st|ruct tim|
|000032a0| 65 76 61 6c 20 74 68 65 | 6e 3b 0a 09 73 74 72 75 |eval the|n;..stru|
|000032b0| 63 74 20 74 69 6d 65 76 | 61 6c 20 61 63 6b 65 64 |ct timev|al acked|
|000032c0| 3b 0a 09 6c 6f 6e 67 20 | 64 69 66 66 65 72 65 6e |;..long |differen|
|000032d0| 63 65 3b 0a 09 6c 6f 6e | 67 20 63 6f 75 6e 74 3b |ce;..lon|g count;|
|000032e0| 0a 7d 20 74 69 6d 65 68 | 6f 73 74 73 5b 4d 41 58 |.} timeh|osts[MAX|
|000032f0| 48 4f 53 54 53 5d 3b 0a | 73 74 72 75 63 74 20 74 |HOSTS];.|struct t|
|00003300| 69 6d 65 68 6f 73 74 20 | 2a 74 6f 70 68 6f 73 74 |imehost |*tophost|
|00003310| 20 3d 20 26 74 69 6d 65 | 68 6f 73 74 73 5b 4d 41 | = &time|hosts[MA|
|00003320| 58 48 4f 53 54 53 5d 3b | 0a 0a 76 6f 69 64 09 75 |XHOSTS];|..void.u|
|00003330| 73 61 67 65 20 28 76 6f | 69 64 29 3b 0a 69 6e 74 |sage (vo|id);.int|
|00003340| 09 73 65 74 70 72 6f 74 | 6f 20 28 63 68 61 72 20 |.setprot|o (char |
|00003350| 2a 2c 20 73 74 72 75 63 | 74 20 74 69 6d 65 68 6f |*, struc|t timeho|
|00003360| 73 74 20 2a 29 3b 0a 76 | 6f 69 64 09 6d 61 69 6e |st *);.v|oid.main|
|00003370| 20 28 69 6e 74 2c 20 63 | 68 61 72 20 2a 2a 29 3b | (int, c|har **);|
|00003380| 0a 69 6e 74 09 67 65 74 | 64 69 66 66 20 28 73 74 |.int.get|diff (st|
|00003390| 72 75 63 74 20 74 69 6d | 65 68 6f 73 74 20 2a 29 |ruct tim|ehost *)|
|000033a0| 3b 0a 69 6e 74 09 67 65 | 74 64 61 74 65 20 28 73 |;.int.ge|tdate (s|
|000033b0| 74 72 75 63 74 20 74 69 | 6d 65 68 6f 73 74 20 2a |truct ti|mehost *|
|000033c0| 29 3b 0a 76 6f 69 64 09 | 70 72 69 6e 74 69 74 20 |);.void.|printit |
|000033d0| 28 73 74 72 75 63 74 20 | 74 69 6d 65 68 6f 73 74 |(struct |timehost|
|000033e0| 20 2a 29 3b 0a 76 6f 69 | 64 09 74 76 73 75 62 20 | *);.voi|d.tvsub |
|000033f0| 28 73 74 72 75 63 74 20 | 74 69 6d 65 76 61 6c 20 |(struct |timeval |
|00003400| 2a 2c 20 73 74 72 75 63 | 74 20 74 69 6d 65 76 61 |*, struc|t timeva|
|00003410| 6c 20 2a 2c 20 73 74 72 | 75 63 74 20 74 69 6d 65 |l *, str|uct time|
|00003420| 76 61 6c 20 2a 29 3b 0a | 76 6f 69 64 09 70 72 69 |val *);.|void.pri|
|00003430| 6e 74 64 69 66 66 20 28 | 63 68 61 72 20 2a 2c 20 |ntdiff (|char *, |
|00003440| 73 74 72 75 63 74 20 74 | 69 6d 65 76 61 6c 20 2a |struct t|imeval *|
|00003450| 29 3b 0a 76 6f 69 64 09 | 74 69 6d 65 6f 75 74 20 |);.void.|timeout |
|00003460| 28 29 3b 0a 73 74 61 74 | 69 63 09 69 6e 74 65 72 |();.stat|ic.inter|
|00003470| 6e 65 74 74 69 6d 65 20 | 28 73 74 72 75 63 74 20 |nettime |(struct |
|00003480| 74 69 6d 65 68 6f 73 74 | 20 2a 74 68 69 73 68 6f |timehost| *thisho|
|00003490| 73 74 29 3b 0a 6c 6f 6e | 67 09 67 65 74 70 6f 72 |st);.lon|g.getpor|
|000034a0| 74 20 28 63 68 61 72 20 | 2a 70 72 6f 74 6f 6e 61 |t (char |*protona|
|000034b0| 6d 65 29 3b 0a 0a 73 74 | 61 74 69 63 20 69 6e 74 |me);..st|atic int|
|000034c0| 20 69 6e 74 65 72 6e 65 | 74 74 69 6d 65 20 28 73 | interne|ttime (s|
|000034d0| 74 72 75 63 74 20 74 69 | 6d 65 68 6f 73 74 20 2a |truct ti|mehost *|
|000034e0| 74 68 69 73 68 6f 73 74 | 29 3b 0a 73 74 72 75 63 |thishost|);.struc|
|000034f0| 74 20 74 69 6d 65 68 6f | 73 74 20 2a 6d 75 6e 67 |t timeho|st *mung|
|00003500| 65 64 69 66 66 73 28 73 | 74 72 75 63 74 20 74 69 |ediffs(s|truct ti|
|00003510| 6d 65 68 6f 73 74 20 2a | 29 3b 0a 0a 0a 76 6f 69 |mehost *|);...voi|
|00003520| 64 0a 75 73 61 67 65 20 | 28 76 6f 69 64 29 0a 7b |d.usage |(void).{|
|00003530| 0a 09 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 |..fprint|f (stder|
|00003540| 72 2c 0a 22 75 73 61 67 | 65 3a 20 25 73 20 5b 20 |r,."usag|e: %s [ |
|00003550| 2d 6c 20 6c 69 6d 69 74 | 20 5d 20 68 6f 73 74 20 |-l limit| ] host |
|00003560| 2e 2e 2e 5c 6e 22 0a 22 | 25 73 20 74 72 69 65 73 |...\n"."|%s tries|
|00003570| 20 74 6f 20 66 69 6e 64 | 20 61 20 67 72 6f 75 70 | to find| a group|
|00003580| 20 6f 66 20 61 74 20 6c | 65 61 73 74 20 74 77 6f | of at l|east two|
|00003590| 20 68 6f 73 74 73 20 77 | 68 6f 73 65 20 74 69 6d | hosts w|hose tim|
|000035a0| 65 73 20 61 67 72 65 65 | 5c 6e 22 0a 22 77 69 74 |es agree|\n"."wit|
|000035b0| 68 69 6e 20 25 64 20 73 | 65 63 6f 6e 64 73 2c 20 |hin %d s|econds, |
|000035c0| 61 6e 64 20 73 65 74 73 | 20 74 68 65 20 74 69 6d |and sets| the tim|
|000035d0| 65 20 74 6f 20 74 68 61 | 74 20 6f 66 20 74 68 65 |e to tha|t of the|
|000035e0| 20 66 69 72 73 74 20 68 | 6f 73 74 20 69 6e 20 74 | first h|ost in t|
|000035f0| 68 65 20 67 72 6f 75 70 | 2e 5c 6e 22 2c 0a 09 09 |he group|.\n",...|
|00003600| 77 68 6f 61 6d 69 2c 20 | 77 68 6f 61 6d 69 2c 20 |whoami, |whoami, |
|00003610| 6c 69 6d 69 74 29 3b 0a | 09 66 70 72 69 6e 74 66 |limit);.|.fprintf|
|00003620| 20 28 73 74 64 65 72 72 | 2c 0a 22 54 68 65 20 6c | (stderr|,."The l|
|00003630| 69 6d 69 74 20 6d 61 79 | 20 62 65 20 73 65 74 20 |imit may| be set |
|00003640| 77 69 74 68 20 74 68 65 | 20 2d 6c 20 6f 70 74 69 |with the| -l opti|
|00003650| 6f 6e 2e 20 20 53 65 74 | 74 69 6e 67 20 69 74 20 |on. Set|ting it |
|00003660| 74 6f 20 7a 65 72 6f 20 | 28 6f 72 20 73 75 70 70 |to zero |(or supp|
|00003670| 6c 79 69 6e 67 5c 6e 22 | 0a 22 6f 6e 6c 79 20 6f |lying\n"|."only o|
|00003680| 6e 65 20 68 6f 73 74 20 | 6e 61 6d 65 20 61 72 67 |ne host |name arg|
|00003690| 75 6d 65 6e 74 29 20 77 | 69 6c 6c 20 73 65 74 20 |ument) w|ill set |
|000036a0| 74 68 65 20 74 69 6d 65 | 20 74 6f 20 74 68 61 74 |the time| to that|
|000036b0| 20 6f 66 20 74 68 65 20 | 66 69 72 73 74 20 68 6f | of the |first ho|
|000036c0| 73 74 20 74 6f 5c 6e 22 | 0a 22 72 65 73 70 6f 6e |st to\n"|."respon|
|000036d0| 64 2e 20 54 68 65 20 63 | 61 6c 6c 65 72 20 6d 75 |d. The c|aller mu|
|000036e0| 73 74 20 62 65 20 73 75 | 70 65 72 2d 75 73 65 72 |st be su|per-user|
|000036f0| 20 66 6f 72 20 74 68 65 | 20 73 79 73 74 65 6d 20 | for the| system |
|00003700| 74 69 6d 65 20 74 6f 20 | 62 65 20 73 65 74 2e 5c |time to |be set.\|
|00003710| 6e 22 29 3b 0a 0a 09 65 | 78 69 74 20 28 31 29 3b |n");...e|xit (1);|
|00003720| 0a 7d 0a 0a 69 6e 74 20 | 72 64 61 74 65 20 3d 20 |.}..int |rdate = |
|00003730| 30 3b 0a 69 6e 74 20 76 | 65 72 62 6f 73 65 20 3d |0;.int v|erbose =|
|00003740| 20 30 3b 0a 69 6e 74 20 | 64 65 62 75 67 20 3d 20 | 0;.int |debug = |
|00003750| 30 3b 0a 0a 76 6f 69 64 | 0a 6d 61 69 6e 20 28 69 |0;..void|.main (i|
|00003760| 6e 74 20 61 72 67 63 2c | 20 63 68 61 72 20 2a 2a |nt argc,| char **|
|00003770| 61 72 67 76 29 0a 7b 0a | 09 65 78 74 65 72 6e 20 |argv).{.|.extern |
|00003780| 63 68 61 72 20 2a 72 69 | 6e 64 65 78 28 29 3b 0a |char *ri|ndex();.|
|00003790| 09 73 74 72 75 63 74 20 | 74 69 6d 65 68 6f 73 74 |.struct |timehost|
|000037a0| 20 2a 6d 75 6e 67 65 64 | 69 66 66 73 28 29 3b 0a | *munged|iffs();.|
|000037b0| 09 72 65 67 69 73 74 65 | 72 20 73 74 72 75 63 74 |.registe|r struct|
|000037c0| 20 74 69 6d 65 68 6f 73 | 74 20 2a 74 68 69 73 68 | timehos|t *thish|
|000037d0| 6f 73 74 3b 0a 09 69 6e | 74 20 68 6f 73 74 61 72 |ost;..in|t hostar|
|000037e0| 67 73 20 3d 20 30 3b 0a | 0a 09 69 66 20 28 28 77 |gs = 0;.|..if ((w|
|000037f0| 68 6f 61 6d 69 20 3d 20 | 72 69 6e 64 65 78 28 2a |hoami = |rindex(*|
|00003800| 61 72 67 76 2c 20 27 2f | 27 29 29 20 21 3d 20 4e |argv, '/|')) != N|
|00003810| 55 4c 4c 29 0a 09 09 77 | 68 6f 61 6d 69 2b 2b 3b |ULL)...w|hoami++;|
|00003820| 0a 09 65 6c 73 65 0a 09 | 09 77 68 6f 61 6d 69 20 |..else..|.whoami |
|00003830| 3d 20 2a 61 72 67 76 3b | 0a 09 69 66 20 28 73 74 |= *argv;|..if (st|
|00003840| 72 63 6d 70 20 28 77 68 | 6f 61 6d 69 2c 20 22 72 |rcmp (wh|oami, "r|
|00003850| 64 61 74 65 22 29 20 3d | 3d 20 30 29 20 7b 09 2f |date") =|= 0) {./|
|00003860| 2a 20 65 6d 75 6c 61 74 | 65 20 53 4d 49 20 72 64 |* emulat|e SMI rd|
|00003870| 61 74 65 20 63 6f 6d 6d | 61 6e 64 20 2a 2f 0a 09 |ate comm|and */..|
|00003880| 09 72 64 61 74 65 20 3d | 20 31 3b 0a 09 09 64 65 |.rdate =| 1;...de|
|00003890| 66 61 75 6c 74 70 72 6f | 74 6f 20 3d 20 22 74 63 |faultpro|to = "tc|
|000038a0| 70 22 3b 0a 09 09 6c 69 | 6d 69 74 20 3d 20 30 3b |p";...li|mit = 0;|
|000038b0| 0a 09 7d 0a 09 69 66 20 | 28 67 65 74 68 6f 73 74 |..}..if |(gethost|
|000038c0| 6e 61 6d 65 28 68 6f 73 | 74 6e 61 6d 65 2c 20 28 |name(hos|tname, (|
|000038d0| 69 6e 74 29 73 69 7a 65 | 6f 66 20 28 68 6f 73 74 |int)size|of (host|
|000038e0| 6e 61 6d 65 29 29 20 3d | 3d 20 2d 31 29 20 7b 0a |name)) =|= -1) {.|
|000038f0| 09 09 70 65 72 72 6f 72 | 20 28 22 67 65 74 68 6f |..perror| ("getho|
|00003900| 73 74 6e 61 6d 65 22 29 | 3b 0a 09 09 65 78 69 74 |stname")|;...exit|
|00003910| 20 28 31 29 3b 0a 09 7d | 0a 09 77 68 69 6c 65 20 | (1);..}|..while |
|00003920| 28 2a 2b 2b 61 72 67 76 | 20 21 3d 20 4e 55 4c 4c |(*++argv| != NULL|
|00003930| 20 26 26 20 2a 2a 61 72 | 67 76 20 3d 3d 20 27 2d | && **ar|gv == '-|
|00003940| 27 29 20 7b 0a 09 09 73 | 77 69 74 63 68 20 28 61 |') {...s|witch (a|
|00003950| 72 67 76 5b 30 5d 5b 31 | 5d 29 20 7b 0a 09 09 63 |rgv[0][1|]) {...c|
|00003960| 61 73 65 20 27 64 27 3a | 0a 09 09 09 64 65 62 75 |ase 'd':|....debu|
|00003970| 67 2b 2b 3b 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |g++;....|break;..|
|00003980| 09 63 61 73 65 20 27 76 | 27 3a 0a 09 09 09 76 65 |.case 'v|':....ve|
|00003990| 72 62 6f 73 65 2b 2b 3b | 0a 09 09 09 62 72 65 61 |rbose++;|....brea|
|000039a0| 6b 3b 0a 09 09 63 61 73 | 65 20 27 6c 27 3a 0a 09 |k;...cas|e 'l':..|
|000039b0| 09 09 69 66 20 28 2a 2b | 2b 61 72 67 76 20 3d 3d |..if (*+|+argv ==|
|000039c0| 20 4e 55 4c 4c 29 0a 09 | 09 09 09 75 73 61 67 65 | NULL)..|...usage|
|000039d0| 28 29 3b 0a 09 09 09 6c | 69 6d 69 74 20 3d 20 61 |();....l|imit = a|
|000039e0| 74 6f 69 28 2a 61 72 67 | 76 29 3b 0a 09 09 09 62 |toi(*arg|v);....b|
|000039f0| 72 65 61 6b 3b 0a 09 09 | 64 65 66 61 75 6c 74 3a |reak;...|default:|
|00003a00| 0a 09 09 09 66 70 72 69 | 6e 74 66 20 28 73 74 64 |....fpri|ntf (std|
|00003a10| 65 72 72 2c 20 22 55 6e | 6b 6e 6f 77 6e 20 6f 70 |err, "Un|known op|
|00003a20| 74 69 6f 6e 3a 20 20 25 | 73 5c 6e 22 2c 20 2a 61 |tion: %|s\n", *a|
|00003a30| 72 67 76 29 3b 0a 09 09 | 09 75 73 61 67 65 28 29 |rgv);...|.usage()|
|00003a40| 3b 0a 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 7d 0a |;....bre|ak;...}.|
|00003a50| 09 7d 0a 09 69 66 20 28 | 2a 61 72 67 76 20 3d 3d |.}..if (|*argv ==|
|00003a60| 20 4e 55 4c 4c 29 0a 09 | 09 75 73 61 67 65 28 29 | NULL)..|.usage()|
|00003a70| 3b 0a 09 69 66 20 28 64 | 65 62 75 67 29 0a 09 09 |;..if (d|ebug)...|
|00003a80| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00003a90| 20 22 25 73 3a 20 72 64 | 61 74 65 20 25 64 3b 20 | "%s: rd|ate %d; |
|00003aa0| 76 65 72 62 6f 73 65 20 | 25 64 3b 20 6c 69 6d 69 |verbose |%d; limi|
|00003ab0| 74 20 25 64 2e 5c 6e 22 | 2c 20 0a 09 09 09 77 68 |t %d.\n"|, ....wh|
|00003ac0| 6f 61 6d 69 2c 20 72 64 | 61 74 65 2c 20 76 65 72 |oami, rd|ate, ver|
|00003ad0| 62 6f 73 65 2c 20 6c 69 | 6d 69 74 29 3b 0a 09 66 |bose, li|mit);..f|
|00003ae0| 6f 72 20 28 74 68 69 73 | 68 6f 73 74 20 3d 20 26 |or (this|host = &|
|00003af0| 74 69 6d 65 68 6f 73 74 | 73 5b 30 5d 3b 20 2a 61 |timehost|s[0]; *a|
|00003b00| 72 67 76 20 21 3d 20 4e | 55 4c 4c 3b 20 61 72 67 |rgv != N|ULL; arg|
|00003b10| 76 2b 2b 29 20 7b 0a 09 | 09 69 66 20 28 74 68 69 |v++) {..|.if (thi|
|00003b20| 73 68 6f 73 74 20 3e 3d | 20 74 6f 70 68 6f 73 74 |shost >=| tophost|
|00003b30| 29 20 7b 0a 09 09 09 66 | 70 72 69 6e 74 66 28 73 |) {....f|printf(s|
|00003b40| 74 64 65 72 72 2c 20 22 | 54 6f 6f 20 6d 61 6e 79 |tderr, "|Too many|
|00003b50| 20 68 6f 73 74 73 3a 20 | 69 67 6e 6f 72 69 6e 67 | hosts: |ignoring|
|00003b60| 22 29 3b 0a 09 09 09 64 | 6f 20 7b 0a 09 09 09 09 |");....d|o {.....|
|00003b70| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00003b80| 20 22 20 25 73 22 2c 20 | 2a 61 72 67 76 29 3b 0a | " %s", |*argv);.|
|00003b90| 09 09 09 7d 20 77 68 69 | 6c 65 20 28 2a 2b 2b 61 |...} whi|le (*++a|
|00003ba0| 72 67 76 20 21 3d 20 4e | 55 4c 4c 29 3b 0a 09 09 |rgv != N|ULL);...|
|00003bb0| 09 66 70 72 69 6e 74 66 | 20 28 73 74 64 65 72 72 |.fprintf| (stderr|
|00003bc0| 2c 20 22 5c 6e 22 29 3b | 0a 09 09 09 62 72 65 61 |, "\n");|....brea|
|00003bd0| 6b 3b 0a 09 09 7d 0a 09 | 09 69 66 20 28 73 65 74 |k;...}..|.if (set|
|00003be0| 70 72 6f 74 6f 28 2a 61 | 72 67 76 2c 20 74 68 69 |proto(*a|rgv, thi|
|00003bf0| 73 68 6f 73 74 29 29 0a | 09 09 09 63 6f 6e 74 69 |shost)).|...conti|
|00003c00| 6e 75 65 3b 0a 09 09 74 | 68 69 73 68 6f 73 74 20 |nue;...t|hishost |
|00003c10| 2d 3e 20 68 6f 73 74 6e | 61 6d 65 20 3d 20 2a 61 |-> hostn|ame = *a|
|00003c20| 72 67 76 3b 0a 09 09 74 | 68 69 73 68 6f 73 74 20 |rgv;...t|hishost |
|00003c30| 2d 3e 20 62 61 64 20 3d | 20 30 3b 0a 09 09 69 66 |-> bad =| 0;...if|
|00003c40| 20 28 73 74 72 63 6d 70 | 20 28 74 68 69 73 68 6f | (strcmp| (thisho|
|00003c50| 73 74 20 2d 3e 20 68 6f | 73 74 6e 61 6d 65 2c 20 |st -> ho|stname, |
|00003c60| 4c 4f 43 41 4c 48 4f 53 | 54 29 20 3d 3d 20 30 29 |LOCALHOS|T) == 0)|
|00003c70| 0a 09 09 09 74 68 69 73 | 68 6f 73 74 20 2d 3e 20 |....this|host -> |
|00003c80| 6c 6f 63 61 6c 20 3d 20 | 31 3b 0a 09 09 69 66 20 |local = |1;...if |
|00003c90| 28 2b 2b 68 6f 73 74 61 | 72 67 73 20 3d 3d 20 31 |(++hosta|rgs == 1|
|00003ca0| 20 26 26 20 61 72 67 76 | 5b 31 5d 20 3d 3d 20 4e | && argv|[1] == N|
|00003cb0| 55 4c 4c 29 09 2f 2a 20 | 4f 6e 6c 79 20 6f 6e 65 |ULL)./* |Only one|
|00003cc0| 20 68 6f 73 74 20 61 72 | 67 2c 20 2a 2f 0a 09 09 | host ar|g, */...|
|00003cd0| 09 6c 69 6d 69 74 20 3d | 20 30 3b 09 09 09 2f 2a |.limit =| 0;.../*|
|00003ce0| 20 73 6f 20 6a 75 73 74 | 20 73 65 74 20 74 6f 20 | so just| set to |
|00003cf0| 69 74 2e 20 2a 2f 0a 09 | 09 69 66 20 28 6c 69 6d |it. */..|.if (lim|
|00003d00| 69 74 20 3d 3d 20 30 29 | 20 7b 0a 09 09 09 69 66 |it == 0)| {....if|
|00003d10| 20 28 21 67 65 74 64 61 | 74 65 28 74 68 69 73 68 | (!getda|te(thish|
|00003d20| 6f 73 74 29 29 0a 09 09 | 09 09 63 6f 6e 74 69 6e |ost))...|..contin|
|00003d30| 75 65 3b 0a 09 09 09 65 | 78 69 74 28 30 29 3b 0a |ue;....e|xit(0);.|
|00003d40| 09 09 7d 0a 09 09 69 66 | 20 28 21 67 65 74 64 69 |..}...if| (!getdi|
|00003d50| 66 66 20 28 74 68 69 73 | 68 6f 73 74 29 29 0a 09 |ff (this|host))..|
|00003d60| 09 09 63 6f 6e 74 69 6e | 75 65 3b 0a 09 09 74 68 |..contin|ue;...th|
|00003d70| 69 73 68 6f 73 74 2b 2b | 3b 0a 09 7d 0a 09 69 66 |ishost++|;..}..if|
|00003d80| 20 28 6c 69 6d 69 74 20 | 3d 3d 20 30 29 0a 09 09 | (limit |== 0)...|
|00003d90| 65 78 69 74 28 31 29 3b | 0a 09 69 66 20 28 74 68 |exit(1);|..if (th|
|00003da0| 69 73 68 6f 73 74 20 3d | 3d 20 26 74 69 6d 65 68 |ishost =|= &timeh|
|00003db0| 6f 73 74 73 5b 30 5d 29 | 0a 09 09 65 78 69 74 28 |osts[0])|...exit(|
|00003dc0| 31 29 3b 0a 09 69 66 20 | 28 28 74 68 69 73 68 6f |1);..if |((thisho|
|00003dd0| 73 74 20 3d 20 6d 75 6e | 67 65 64 69 66 66 73 28 |st = mun|gediffs(|
|00003de0| 74 68 69 73 68 6f 73 74 | 29 29 20 3d 3d 20 4e 55 |thishost|)) == NU|
|00003df0| 4c 4c 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 20 |LL) {...|fprintf |
|00003e00| 28 73 74 64 65 72 72 2c | 0a 09 09 09 22 4e 6f 20 |(stderr,|...."No |
|00003e10| 74 77 6f 20 68 6f 73 74 | 73 20 61 67 72 65 65 20 |two host|s agree |
|00003e20| 6f 6e 20 74 68 65 20 74 | 69 6d 65 20 77 69 74 68 |on the t|ime with|
|00003e30| 69 6e 20 25 64 20 73 65 | 63 6f 6e 64 73 5c 6e 22 |in %d se|conds\n"|
|00003e40| 2c 0a 09 09 09 6c 69 6d | 69 74 29 3b 0a 09 09 65 |,....lim|it);...e|
|00003e50| 78 69 74 28 31 29 3b 0a | 09 7d 0a 09 69 66 20 28 |xit(1);.|.}..if (|
|00003e60| 21 67 65 74 64 61 74 65 | 20 28 74 68 69 73 68 6f |!getdate| (thisho|
|00003e70| 73 74 29 29 0a 09 09 65 | 78 69 74 20 28 31 29 3b |st))...e|xit (1);|
|00003e80| 0a 09 65 78 69 74 28 30 | 29 3b 0a 7d 0a 0a 69 6e |..exit(0|);.}..in|
|00003e90| 74 0a 73 65 74 70 72 6f | 74 6f 28 63 68 61 72 20 |t.setpro|to(char |
|00003ea0| 2a 77 68 61 74 2c 20 73 | 74 72 75 63 74 20 74 69 |*what, s|truct ti|
|00003eb0| 6d 65 68 6f 73 74 20 2a | 74 68 69 73 68 6f 73 74 |mehost *|thishost|
|00003ec0| 29 0a 7b 0a 09 73 74 61 | 74 69 63 09 63 68 61 72 |).{..sta|tic.char|
|00003ed0| 20 2a 70 72 6f 74 6f 6e | 61 6d 65 3b 0a 09 73 74 | *proton|ame;..st|
|00003ee0| 61 74 69 63 09 6c 6f 6e | 67 20 70 72 6f 74 6f 6e |atic.lon|g proton|
|00003ef0| 75 6d 62 65 72 3b 0a 09 | 73 74 61 74 69 63 09 69 |umber;..|static.i|
|00003f00| 6e 74 20 73 6f 63 6b 74 | 79 70 65 3b 0a 09 72 65 |nt sockt|ype;..re|
|00003f10| 67 69 73 74 65 72 20 73 | 74 72 75 63 74 20 70 72 |gister s|truct pr|
|00003f20| 6f 74 6f 65 6e 74 20 2a | 70 70 3b 0a 0a 09 73 65 |otoent *|pp;...se|
|00003f30| 74 70 72 6f 74 6f 65 6e | 74 28 31 29 3b 0a 09 69 |tprotoen|t(1);..i|
|00003f40| 66 20 28 28 70 70 20 3d | 20 67 65 74 70 72 6f 74 |f ((pp =| getprot|
|00003f50| 6f 62 79 6e 61 6d 65 20 | 28 77 68 61 74 29 29 20 |obyname |(what)) |
|00003f60| 3d 3d 20 4e 55 4c 4c 29 | 20 7b 0a 09 09 69 66 20 |== NULL)| {...if |
|00003f70| 28 70 72 6f 74 6f 6e 61 | 6d 65 20 3d 3d 20 4e 55 |(protona|me == NU|
|00003f80| 4c 4c 29 0a 09 09 09 69 | 66 20 28 21 73 65 74 70 |LL)....i|f (!setp|
|00003f90| 72 6f 74 6f 28 64 65 66 | 61 75 6c 74 70 72 6f 74 |roto(def|aultprot|
|00003fa0| 6f 2c 20 74 68 69 73 68 | 6f 73 74 29 29 20 7b 0a |o, thish|ost)) {.|
|00003fb0| 09 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |....fpri|ntf(stde|
|00003fc0| 72 72 2c 0a 09 09 22 44 | 65 66 61 75 6c 74 20 70 |rr,..."D|efault p|
|00003fd0| 72 6f 74 6f 63 6f 6c 20 | 25 73 20 77 61 73 20 6e |rotocol |%s was n|
|00003fe0| 6f 74 20 66 6f 75 6e 64 | 20 69 6e 20 2f 65 74 63 |ot found| in /etc|
|00003ff0| 2f 70 72 6f 74 6f 63 6f | 6c 73 2e 5c 6e 22 2c 0a |/protoco|ls.\n",.|
|00004000| 09 09 09 09 09 09 64 65 | 66 61 75 6c 74 70 72 6f |......de|faultpro|
|00004010| 74 6f 29 3b 0a 09 09 09 | 09 65 78 69 74 28 31 29 |to);....|.exit(1)|
|00004020| 3b 0a 09 09 09 7d 0a 09 | 09 74 68 69 73 68 6f 73 |;....}..|.thishos|
|00004030| 74 20 2d 3e 20 70 72 6f | 74 6f 6e 61 6d 65 20 3d |t -> pro|toname =|
|00004040| 20 70 72 6f 74 6f 6e 61 | 6d 65 3b 0a 09 09 74 68 | protona|me;...th|
|00004050| 69 73 68 6f 73 74 20 2d | 3e 20 70 72 6f 74 6f 6e |ishost -|> proton|
|00004060| 75 6d 62 65 72 20 3d 20 | 70 72 6f 74 6f 6e 75 6d |umber = |protonum|
|00004070| 62 65 72 3b 0a 09 09 74 | 68 69 73 68 6f 73 74 20 |ber;...t|hishost |
|00004080| 2d 3e 20 73 6f 63 6b 74 | 79 70 65 20 3d 20 73 6f |-> sockt|ype = so|
|00004090| 63 6b 74 79 70 65 3b 0a | 09 09 72 65 74 75 72 6e |cktype;.|..return|
|000040a0| 28 30 29 3b 0a 09 7d 0a | 09 70 72 6f 74 6f 6e 61 |(0);..}.|.protona|
|000040b0| 6d 65 20 3d 20 77 68 61 | 74 3b 09 2f 2a 70 70 20 |me = wha|t;./*pp |
|000040c0| 2d 3e 20 70 5f 6e 61 6d | 65 3b 09 74 68 69 73 20 |-> p_nam|e;.this |
|000040d0| 69 73 20 73 74 61 74 69 | 63 3a 20 20 64 6f 6e 27 |is stati|c: don'|
|000040e0| 74 20 75 73 65 20 69 74 | 2e 2a 2f 0a 09 70 72 6f |t use it|.*/..pro|
|000040f0| 74 6f 6e 75 6d 62 65 72 | 20 3d 20 70 70 20 2d 3e |tonumber| = pp ->|
|00004100| 20 70 5f 70 72 6f 74 6f | 3b 0a 09 73 77 69 74 63 | p_proto|;..switc|
|00004110| 68 20 28 70 72 6f 74 6f | 6e 75 6d 62 65 72 29 20 |h (proto|number) |
|00004120| 7b 0a 09 09 63 61 73 65 | 20 49 50 50 52 4f 54 4f |{...case| IPPROTO|
|00004130| 5f 54 43 50 3a 0a 09 09 | 09 73 6f 63 6b 74 79 70 |_TCP:...|.socktyp|
|00004140| 65 20 3d 20 53 4f 43 4b | 5f 53 54 52 45 41 4d 3b |e = SOCK|_STREAM;|
|00004150| 0a 09 09 09 69 66 20 28 | 64 65 62 75 67 29 0a 09 |....if (|debug)..|
|00004160| 09 09 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |...fprin|tf(stder|
|00004170| 72 2c 20 22 25 73 20 53 | 4f 43 4b 5f 53 54 52 45 |r, "%s S|OCK_STRE|
|00004180| 41 4d 5c 6e 22 2c 20 70 | 72 6f 74 6f 6e 61 6d 65 |AM\n", p|rotoname|
|00004190| 29 3b 0a 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 63 |);....br|eak;...c|
|000041a0| 61 73 65 20 49 50 50 52 | 4f 54 4f 5f 55 44 50 3a |ase IPPR|OTO_UDP:|
|000041b0| 0a 09 09 09 73 6f 63 6b | 74 79 70 65 20 3d 20 53 |....sock|type = S|
|000041c0| 4f 43 4b 5f 44 47 52 41 | 4d 3b 0a 09 09 09 69 66 |OCK_DGRA|M;....if|
|000041d0| 20 28 64 65 62 75 67 29 | 0a 09 09 09 09 66 70 72 | (debug)|.....fpr|
|000041e0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|000041f0| 20 53 4f 43 4b 5f 44 47 | 52 41 4d 5c 6e 22 2c 20 | SOCK_DG|RAM\n", |
|00004200| 70 72 6f 74 6f 6e 61 6d | 65 29 3b 0a 09 09 09 62 |protonam|e);....b|
|00004210| 72 65 61 6b 3b 0a 09 09 | 64 65 66 61 75 6c 74 3a |reak;...|default:|
|00004220| 0a 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |....fpri|ntf(stde|
|00004230| 72 72 2c 20 22 55 6e 6b | 6e 6f 77 6e 20 70 72 6f |rr, "Unk|nown pro|
|00004240| 74 6f 63 6f 6c 3a 20 20 | 25 73 5c 6e 22 2c 20 70 |tocol: |%s\n", p|
|00004250| 72 6f 74 6f 6e 61 6d 65 | 29 3b 0a 09 09 09 65 78 |rotoname|);....ex|
|00004260| 69 74 28 31 29 3b 0a 09 | 09 09 62 72 65 61 6b 3b |it(1);..|..break;|
|00004270| 0a 09 7d 0a 09 72 65 74 | 75 72 6e 28 31 29 3b 0a |..}..ret|urn(1);.|
|00004280| 7d 0a 0a 69 6e 74 0a 67 | 65 74 64 69 66 66 28 73 |}..int.g|etdiff(s|
|00004290| 74 72 75 63 74 20 74 69 | 6d 65 68 6f 73 74 20 2a |truct ti|mehost *|
|000042a0| 74 68 69 73 68 6f 73 74 | 29 0a 7b 0a 09 69 66 20 |thishost|).{..if |
|000042b0| 28 21 69 6e 74 65 72 6e | 65 74 74 69 6d 65 20 28 |(!intern|ettime (|
|000042c0| 74 68 69 73 68 6f 73 74 | 29 29 0a 09 09 72 65 74 |thishost|))...ret|
|000042d0| 75 72 6e 28 30 29 3b 0a | 09 74 68 69 73 68 6f 73 |urn(0);.|.thishos|
|000042e0| 74 20 2d 3e 20 64 69 66 | 66 65 72 65 6e 63 65 20 |t -> dif|ference |
|000042f0| 3d 20 74 68 69 73 68 6f | 73 74 20 2d 3e 20 74 68 |= thisho|st -> th|
|00004300| 65 6e 2e 74 76 5f 73 65 | 63 20 2d 20 6e 6f 77 2e |en.tv_se|c - now.|
|00004310| 74 76 5f 73 65 63 3b 0a | 09 69 66 20 28 21 72 64 |tv_sec;.|.if (!rd|
|00004320| 61 74 65 29 0a 09 09 70 | 72 69 6e 74 69 74 28 74 |ate)...p|rintit(t|
|00004330| 68 69 73 68 6f 73 74 29 | 3b 0a 09 72 65 74 75 72 |hishost)|;..retur|
|00004340| 6e 28 31 29 3b 0a 7d 0a | 0a 0a 2f 2a 0a 09 46 69 |n(1);.}.|../*..Fi|
|00004350| 6e 64 20 74 68 65 20 6c | 61 72 67 65 73 74 20 67 |nd the l|argest g|
|00004360| 72 6f 75 70 20 6f 66 20 | 68 6f 73 74 73 20 77 68 |roup of |hosts wh|
|00004370| 69 63 68 20 61 67 72 65 | 65 20 77 69 74 68 69 6e |ich agre|e within|
|00004380| 20 74 68 65 20 6c 69 6d | 69 74 0a 09 61 6e 64 20 | the lim|it..and |
|00004390| 72 65 74 75 72 6e 20 74 | 68 65 20 66 69 72 73 74 |return t|he first|
|000043a0| 20 6f 66 20 74 68 61 74 | 20 67 72 6f 75 70 2e 20 | of that| group. |
|000043b0| 20 49 66 20 6e 6f 20 74 | 77 6f 20 68 6f 73 74 73 | If no t|wo hosts|
|000043c0| 20 61 67 72 65 65 2c 0a | 09 67 69 76 65 20 75 70 | agree,.|.give up|
|000043d0| 2e 0a 20 2a 2f 0a 20 0a | 73 74 72 75 63 74 20 74 |.. */. .|struct t|
|000043e0| 69 6d 65 68 6f 73 74 20 | 2a 0a 6d 75 6e 67 65 64 |imehost |*.munged|
|000043f0| 69 66 66 73 28 73 74 72 | 75 63 74 20 74 69 6d 65 |iffs(str|uct time|
|00004400| 68 6f 73 74 20 2a 74 6f | 70 68 6f 73 74 29 0a 7b |host *to|phost).{|
|00004410| 0a 09 72 65 67 69 73 74 | 65 72 20 73 74 72 75 63 |..regist|er struc|
|00004420| 74 20 74 69 6d 65 68 6f | 73 74 20 2a 74 68 69 73 |t timeho|st *this|
|00004430| 68 6f 73 74 2c 20 2a 61 | 68 6f 73 74 2c 20 2a 67 |host, *a|host, *g|
|00004440| 6f 6f 64 68 6f 73 74 3b | 0a 09 6c 6f 6e 67 20 64 |oodhost;|..long d|
|00004450| 69 66 66 3b 0a 0a 09 74 | 6f 70 68 6f 73 74 2d 2d |iff;...t|ophost--|
|00004460| 3b 09 2f 2a 20 73 69 6d | 70 6c 69 66 69 65 73 20 |;./* sim|plifies |
|00004470| 74 68 65 20 63 6f 6d 70 | 61 72 69 73 6f 6e 73 20 |the comp|arisons |
|00004480| 2a 2f 0a 09 67 6f 6f 64 | 68 6f 73 74 20 3d 20 26 |*/..good|host = &|
|00004490| 74 69 6d 65 68 6f 73 74 | 73 5b 30 5d 3b 0a 09 66 |timehost|s[0];..f|
|000044a0| 6f 72 20 28 74 68 69 73 | 68 6f 73 74 20 3d 20 26 |or (this|host = &|
|000044b0| 74 69 6d 65 68 6f 73 74 | 73 5b 30 5d 3b 20 74 68 |timehost|s[0]; th|
|000044c0| 69 73 68 6f 73 74 20 3c | 20 74 6f 70 68 6f 73 74 |ishost <| tophost|
|000044d0| 3b 20 74 68 69 73 68 6f | 73 74 2b 2b 29 20 7b 0a |; thisho|st++) {.|
|000044e0| 09 09 69 66 20 28 74 68 | 69 73 68 6f 73 74 20 2d |..if (th|ishost -|
|000044f0| 3e 20 62 61 64 29 0a 09 | 09 09 63 6f 6e 74 69 6e |> bad)..|..contin|
|00004500| 75 65 3b 0a 09 09 74 68 | 69 73 68 6f 73 74 20 2d |ue;...th|ishost -|
|00004510| 3e 20 63 6f 75 6e 74 20 | 3d 20 31 3b 0a 09 09 69 |> count |= 1;...i|
|00004520| 66 20 28 76 65 72 62 6f | 73 65 29 0a 09 09 09 70 |f (verbo|se)....p|
|00004530| 72 69 6e 74 66 20 28 22 | 25 73 22 2c 20 74 68 69 |rintf ("|%s", thi|
|00004540| 73 68 6f 73 74 20 2d 3e | 20 68 6f 73 74 6e 61 6d |shost ->| hostnam|
|00004550| 65 29 3b 0a 09 09 66 6f | 72 20 28 61 68 6f 73 74 |e);...fo|r (ahost|
|00004560| 20 3d 20 74 68 69 73 68 | 6f 73 74 20 2b 20 31 3b | = thish|ost + 1;|
|00004570| 20 61 68 6f 73 74 20 3c | 3d 20 74 6f 70 68 6f 73 | ahost <|= tophos|
|00004580| 74 3b 20 61 68 6f 73 74 | 2b 2b 29 20 7b 0a 09 09 |t; ahost|++) {...|
|00004590| 09 69 66 20 28 74 68 69 | 73 68 6f 73 74 20 2d 3e |.if (thi|shost ->|
|000045a0| 20 62 61 64 29 0a 09 09 | 09 09 63 6f 6e 74 69 6e | bad)...|..contin|
|000045b0| 75 65 3b 0a 09 09 09 64 | 69 66 66 20 3d 20 61 68 |ue;....d|iff = ah|
|000045c0| 6f 73 74 20 2d 3e 20 64 | 69 66 66 65 72 65 6e 63 |ost -> d|ifferenc|
|000045d0| 65 20 2d 20 74 68 69 73 | 68 6f 73 74 20 2d 3e 20 |e - this|host -> |
|000045e0| 64 69 66 66 65 72 65 6e | 63 65 3b 0a 09 09 09 69 |differen|ce;....i|
|000045f0| 66 20 28 61 62 73 28 64 | 69 66 66 29 20 3c 20 6c |f (abs(d|iff) < l|
|00004600| 69 6d 69 74 29 20 7b 0a | 09 09 09 09 74 68 69 73 |imit) {.|....this|
|00004610| 68 6f 73 74 20 2d 3e 20 | 63 6f 75 6e 74 2b 2b 3b |host -> |count++;|
|00004620| 0a 09 09 09 09 69 66 20 | 28 76 65 72 62 6f 73 65 |.....if |(verbose|
|00004630| 29 0a 09 09 09 09 09 70 | 72 69 6e 74 66 20 28 22 |)......p|rintf ("|
|00004640| 20 25 73 22 2c 20 61 68 | 6f 73 74 20 2d 3e 20 68 | %s", ah|ost -> h|
|00004650| 6f 73 74 6e 61 6d 65 29 | 3b 0a 09 09 09 7d 0a 09 |ostname)|;....}..|
|00004660| 09 7d 0a 09 09 69 66 20 | 28 76 65 72 62 6f 73 65 |.}...if |(verbose|
|00004670| 29 20 7b 0a 09 09 09 70 | 72 69 6e 74 66 20 28 22 |) {....p|rintf ("|
|00004680| 20 25 64 5c 6e 22 2c 20 | 74 68 69 73 68 6f 73 74 | %d\n", |thishost|
|00004690| 20 2d 3e 20 63 6f 75 6e | 74 29 3b 0a 09 09 09 28 | -> coun|t);....(|
|000046a0| 76 6f 69 64 29 66 66 6c | 75 73 68 28 73 74 64 6f |void)ffl|ush(stdo|
|000046b0| 75 74 29 3b 0a 09 09 7d | 0a 09 09 69 66 20 28 74 |ut);...}|...if (t|
|000046c0| 68 69 73 68 6f 73 74 20 | 2d 3e 20 63 6f 75 6e 74 |hishost |-> count|
|000046d0| 20 3e 20 67 6f 6f 64 68 | 6f 73 74 20 2d 3e 20 63 | > goodh|ost -> c|
|000046e0| 6f 75 6e 74 29 0a 09 09 | 09 67 6f 6f 64 68 6f 73 |ount)...|.goodhos|
|000046f0| 74 20 3d 20 74 68 69 73 | 68 6f 73 74 3b 0a 09 7d |t = this|host;..}|
|00004700| 0a 09 69 66 20 28 67 6f | 6f 64 68 6f 73 74 20 2d |..if (go|odhost -|
|00004710| 3e 20 63 6f 75 6e 74 20 | 3e 20 31 29 0a 09 09 72 |> count |> 1)...r|
|00004720| 65 74 75 72 6e 28 67 6f | 6f 64 68 6f 73 74 29 3b |eturn(go|odhost);|
|00004730| 0a 09 72 65 74 75 72 6e | 28 4e 55 4c 4c 29 3b 0a |..return|(NULL);.|
|00004740| 7d 0a 0a 69 6e 74 0a 67 | 65 74 64 61 74 65 20 28 |}..int.g|etdate (|
|00004750| 73 74 72 75 63 74 20 74 | 69 6d 65 68 6f 73 74 20 |struct t|imehost |
|00004760| 2a 74 68 69 73 68 6f 73 | 74 29 0a 7b 0a 09 69 6e |*thishos|t).{..in|
|00004770| 74 20 73 65 74 20 3d 20 | 30 3b 0a 0a 09 69 66 20 |t set = |0;...if |
|00004780| 28 21 69 6e 74 65 72 6e | 65 74 74 69 6d 65 20 28 |(!intern|ettime (|
|00004790| 74 68 69 73 68 6f 73 74 | 29 29 0a 09 09 72 65 74 |thishost|))...ret|
|000047a0| 75 72 6e 20 28 30 29 3b | 0a 09 69 66 20 28 74 68 |urn (0);|..if (th|
|000047b0| 69 73 68 6f 73 74 20 2d | 3e 20 6c 6f 63 61 6c 29 |ishost -|> local)|
|000047c0| 20 7b 0a 09 09 70 72 69 | 6e 74 66 20 28 22 4c 6f | {...pri|ntf ("Lo|
|000047d0| 63 61 6c 20 68 6f 73 74 | 20 25 73 20 68 61 73 20 |cal host| %s has |
|000047e0| 62 65 73 74 20 74 69 6d | 65 2c 20 73 6f 20 6e 6f |best tim|e, so no|
|000047f0| 74 20 73 65 74 74 69 6e | 67 20 64 61 74 65 5c 6e |t settin|g date\n|
|00004800| 22 2c 0a 09 09 09 68 6f | 73 74 6e 61 6d 65 29 3b |",....ho|stname);|
|00004810| 0a 09 09 70 72 69 6e 74 | 69 74 28 74 68 69 73 68 |...print|it(thish|
|00004820| 6f 73 74 29 3b 0a 09 09 | 65 78 69 74 28 30 29 3b |ost);...|exit(0);|
|00004830| 0a 09 7d 0a 09 69 66 20 | 28 6c 69 6d 69 74 20 21 |..}..if |(limit !|
|00004840| 3d 20 30 0a 09 26 26 20 | 61 62 73 28 28 74 68 69 |= 0..&& |abs((thi|
|00004850| 73 68 6f 73 74 20 2d 3e | 20 74 68 65 6e 2e 74 76 |shost ->| then.tv|
|00004860| 5f 73 65 63 20 2d 20 6e | 6f 77 2e 74 76 5f 73 65 |_sec - n|ow.tv_se|
|00004870| 63 29 20 2d 20 74 68 69 | 73 68 6f 73 74 20 2d 3e |c) - thi|shost ->|
|00004880| 20 64 69 66 66 65 72 65 | 6e 63 65 29 0a 09 20 20 | differe|nce).. |
|00004890| 20 20 3e 20 6c 69 6d 69 | 74 29 20 7b 0a 09 09 66 | > limi|t) {...f|
|000048a0| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 0a |printf (|stderr,.|
|000048b0| 09 09 22 54 69 6d 65 20 | 66 72 6f 6d 20 25 73 20 |.."Time |from %s |
|000048c0| 68 61 73 20 76 61 72 69 | 65 64 20 6d 6f 72 65 20 |has vari|ed more |
|000048d0| 74 68 61 6e 20 74 68 65 | 20 6c 69 6d 69 74 20 6f |than the| limit o|
|000048e0| 66 20 25 64 20 73 65 63 | 6f 6e 64 73 5c 6e 22 2c |f %d sec|onds\n",|
|000048f0| 0a 09 09 09 74 68 69 73 | 68 6f 73 74 20 2d 3e 20 |....this|host -> |
|00004900| 68 6f 73 74 6e 61 6d 65 | 2c 20 6c 69 6d 69 74 29 |hostname|, limit)|
|00004910| 3b 0a 09 09 70 72 69 6e | 74 69 74 28 74 68 69 73 |;...prin|tit(this|
|00004920| 68 6f 73 74 29 3b 0a 09 | 09 65 78 69 74 28 31 29 |host);..|.exit(1)|
|00004930| 3b 0a 09 7d 0a 09 69 66 | 20 28 73 65 74 74 69 6d |;..}..if| (settim|
|00004940| 65 6f 66 64 61 79 20 28 | 26 74 68 69 73 68 6f 73 |eofday (|&thishos|
|00004950| 74 20 2d 3e 20 74 68 65 | 6e 2c 20 28 73 74 72 75 |t -> the|n, (stru|
|00004960| 63 74 20 74 69 6d 65 7a | 6f 6e 65 20 2a 29 30 29 |ct timez|one *)0)|
|00004970| 20 3d 3d 20 2d 31 29 0a | 09 09 70 65 72 72 6f 72 | == -1).|..perror|
|00004980| 20 28 22 6e 65 74 64 61 | 74 65 3b 20 73 65 74 74 | ("netda|te; sett|
|00004990| 69 6d 65 6f 66 64 61 79 | 22 29 3b 0a 09 65 6c 73 |imeofday|");..els|
|000049a0| 65 20 7b 0a 09 09 69 6e | 74 20 77 66 3b 0a 09 09 |e {...in|t wf;...|
|000049b0| 69 66 20 28 28 77 66 20 | 3d 20 6f 70 65 6e 28 57 |if ((wf |= open(W|
|000049c0| 54 4d 50 2c 20 31 29 29 | 20 3e 3d 20 30 29 20 7b |TMP, 1))| >= 0) {|
|000049d0| 0a 09 09 09 77 74 6d 70 | 5b 30 5d 2e 75 74 5f 74 |....wtmp|[0].ut_t|
|000049e0| 69 6d 65 20 3d 20 6e 6f | 77 2e 74 76 5f 73 65 63 |ime = no|w.tv_sec|
|000049f0| 3b 0a 09 09 09 77 74 6d | 70 5b 31 5d 2e 75 74 5f |;....wtm|p[1].ut_|
|00004a00| 74 69 6d 65 20 3d 20 74 | 68 69 73 68 6f 73 74 20 |time = t|hishost |
|00004a10| 2d 3e 20 74 68 65 6e 2e | 74 76 5f 73 65 63 3b 0a |-> then.|tv_sec;.|
|00004a20| 09 09 09 28 76 6f 69 64 | 29 6c 73 65 65 6b 28 77 |...(void|)lseek(w|
|00004a30| 66 2c 20 30 4c 2c 20 32 | 29 3b 0a 09 09 09 28 76 |f, 0L, 2|);....(v|
|00004a40| 6f 69 64 29 77 72 69 74 | 65 28 77 66 2c 20 28 63 |oid)writ|e(wf, (c|
|00004a50| 68 61 72 20 2a 29 77 74 | 6d 70 2c 20 73 69 7a 65 |har *)wt|mp, size|
|00004a60| 6f 66 28 77 74 6d 70 29 | 29 3b 0a 09 09 09 28 76 |of(wtmp)|);....(v|
|00004a70| 6f 69 64 29 63 6c 6f 73 | 65 28 77 66 29 3b 0a 09 |oid)clos|e(wf);..|
|00004a80| 09 7d 0a 09 09 73 65 74 | 20 3d 20 31 3b 0a 09 7d |.}...set| = 1;..}|
|00004a90| 0a 09 70 72 69 6e 74 69 | 74 28 74 68 69 73 68 6f |..printi|t(thisho|
|00004aa0| 73 74 29 3b 0a 09 72 65 | 74 75 72 6e 28 73 65 74 |st);..re|turn(set|
|00004ab0| 29 3b 0a 7d 0a 0a 76 6f | 69 64 0a 70 72 69 6e 74 |);.}..vo|id.print|
|00004ac0| 69 74 28 73 74 72 75 63 | 74 20 74 69 6d 65 68 6f |it(struc|t timeho|
|00004ad0| 73 74 20 2a 74 68 69 73 | 68 6f 73 74 29 0a 7b 0a |st *this|host).{.|
|00004ae0| 09 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 63 74 |.extern |char *ct|
|00004af0| 69 6d 65 28 29 3b 0a 09 | 73 74 72 75 63 74 20 74 |ime();..|struct t|
|00004b00| 6d 20 2a 74 70 2c 20 2a | 6c 6f 63 61 6c 74 69 6d |m *tp, *|localtim|
|00004b10| 65 28 29 3b 0a 09 73 74 | 72 75 63 74 20 74 69 6d |e();..st|ruct tim|
|00004b20| 65 76 61 6c 20 64 69 66 | 66 3b 0a 09 63 68 61 72 |eval dif|f;..char|
|00004b30| 20 6e 65 77 73 74 72 69 | 6e 67 5b 31 32 38 5d 3b | newstri|ng[128];|
|00004b40| 0a 0a 09 69 66 20 28 72 | 64 61 74 65 29 0a 09 09 |...if (r|date)...|
|00004b50| 70 72 69 6e 74 66 20 28 | 22 25 73 22 2c 20 63 74 |printf (|"%s", ct|
|00004b60| 69 6d 65 28 28 75 6e 73 | 69 67 6e 65 64 20 6c 6f |ime((uns|igned lo|
|00004b70| 6e 67 20 2a 29 26 74 68 | 69 73 68 6f 73 74 20 2d |ng *)&th|ishost -|
|00004b80| 3e 20 74 68 65 6e 2e 74 | 76 5f 73 65 63 29 29 3b |> then.t|v_sec));|
|00004b90| 0a 09 65 6c 73 65 20 7b | 0a 09 09 28 76 6f 69 64 |..else {|...(void|
|00004ba0| 29 73 70 72 69 6e 74 66 | 28 6e 65 77 73 74 72 69 |)sprintf|(newstri|
|00004bb0| 6e 67 2c 20 22 25 73 20 | 22 2c 20 74 68 69 73 68 |ng, "%s |", thish|
|00004bc0| 6f 73 74 20 2d 3e 20 68 | 6f 73 74 6e 61 6d 65 29 |ost -> h|ostname)|
|00004bd0| 3b 0a 09 09 74 76 73 75 | 62 28 26 64 69 66 66 2c |;...tvsu|b(&diff,|
|00004be0| 20 26 74 68 69 73 68 6f | 73 74 20 2d 3e 20 74 68 | &thisho|st -> th|
|00004bf0| 65 6e 2c 20 26 6e 6f 77 | 29 3b 0a 09 09 70 72 69 |en, &now|);...pri|
|00004c00| 6e 74 64 69 66 66 28 26 | 6e 65 77 73 74 72 69 6e |ntdiff(&|newstrin|
|00004c10| 67 5b 73 74 72 6c 65 6e | 28 6e 65 77 73 74 72 69 |g[strlen|(newstri|
|00004c20| 6e 67 29 5d 2c 20 26 64 | 69 66 66 29 3b 0a 09 09 |ng)], &d|iff);...|
|00004c30| 70 72 69 6e 74 66 20 28 | 22 25 2d 32 34 73 20 25 |printf (|"%-24s %|
|00004c40| 2e 31 39 73 2e 25 30 33 | 64 22 2c 20 6e 65 77 73 |.19s.%03|d", news|
|00004c50| 74 72 69 6e 67 2c 0a 09 | 09 09 63 74 69 6d 65 28 |tring,..|..ctime(|
|00004c60| 28 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 2a |(unsigne|d long *|
|00004c70| 29 26 74 68 69 73 68 6f | 73 74 20 2d 3e 20 74 68 |)&thisho|st -> th|
|00004c80| 65 6e 2e 74 76 5f 73 65 | 63 29 2c 0a 09 09 09 09 |en.tv_se|c),.....|
|00004c90| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 74 68 65 6e |thishost| -> then|
|00004ca0| 2e 74 76 5f 75 73 65 63 | 20 2f 20 31 30 30 30 29 |.tv_usec| / 1000)|
|00004cb0| 3b 0a 09 09 69 66 20 28 | 76 65 72 62 6f 73 65 29 |;...if (|verbose)|
|00004cc0| 20 7b 0a 09 09 09 74 70 | 20 3d 20 6c 6f 63 61 6c | {....tp| = local|
|00004cd0| 74 69 6d 65 28 28 75 6e | 73 69 67 6e 65 64 20 6c |time((un|signed l|
|00004ce0| 6f 6e 67 20 2a 29 26 74 | 68 69 73 68 6f 73 74 20 |ong *)&t|hishost |
|00004cf0| 2d 3e 20 61 63 6b 65 64 | 29 3b 0a 09 09 09 70 72 |-> acked|);....pr|
|00004d00| 69 6e 74 66 28 22 20 61 | 74 20 25 30 32 64 3a 25 |intf(" a|t %02d:%|
|00004d10| 30 32 64 3a 25 30 32 64 | 2e 25 30 33 64 22 2c 0a |02d:%02d|.%03d",.|
|00004d20| 09 09 09 09 74 70 20 2d | 3e 20 74 6d 5f 68 6f 75 |....tp -|> tm_hou|
|00004d30| 72 2c 20 74 70 20 2d 3e | 20 74 6d 5f 6d 69 6e 2c |r, tp ->| tm_min,|
|00004d40| 20 74 70 20 2d 3e 20 74 | 6d 5f 73 65 63 2c 0a 09 | tp -> t|m_sec,..|
|00004d50| 09 09 09 74 68 69 73 68 | 6f 73 74 20 2d 3e 20 61 |...thish|ost -> a|
|00004d60| 63 6b 65 64 2e 74 76 5f | 75 73 65 63 20 2f 20 31 |cked.tv_|usec / 1|
|00004d70| 30 30 30 29 3b 0a 09 09 | 09 74 76 73 75 62 28 26 |000);...|.tvsub(&|
|00004d80| 64 69 66 66 2c 20 26 74 | 68 69 73 68 6f 73 74 20 |diff, &t|hishost |
|00004d90| 2d 3e 20 61 63 6b 65 64 | 2c 20 26 74 68 69 73 68 |-> acked|, &thish|
|00004da0| 6f 73 74 20 2d 3e 20 61 | 73 6b 65 64 29 3b 0a 09 |ost -> a|sked);..|
|00004db0| 09 09 70 72 69 6e 74 64 | 69 66 66 28 6e 65 77 73 |..printd|iff(news|
|00004dc0| 74 72 69 6e 67 2c 20 26 | 64 69 66 66 29 3b 0a 09 |tring, &|diff);..|
|00004dd0| 09 09 70 72 69 6e 74 66 | 28 22 20 64 65 6c 61 79 |..printf|(" delay|
|00004de0| 20 25 73 22 2c 20 6e 65 | 77 73 74 72 69 6e 67 29 | %s", ne|wstring)|
|00004df0| 3b 0a 09 09 7d 0a 09 09 | 70 72 69 6e 74 66 28 22 |;...}...|printf("|
|00004e00| 5c 6e 22 29 3b 0a 09 7d | 0a 09 28 76 6f 69 64 29 |\n");..}|..(void)|
|00004e10| 66 66 6c 75 73 68 20 28 | 73 74 64 6f 75 74 29 3b |fflush (|stdout);|
|00004e20| 0a 7d 0a 0a 76 6f 69 64 | 0a 74 76 73 75 62 28 74 |.}..void|.tvsub(t|
|00004e30| 64 69 66 66 2c 20 74 31 | 2c 20 74 30 29 0a 73 74 |diff, t1|, t0).st|
|00004e40| 72 75 63 74 20 74 69 6d | 65 76 61 6c 20 2a 74 64 |ruct tim|eval *td|
|00004e50| 69 66 66 2c 20 2a 74 31 | 2c 20 2a 74 30 3b 0a 7b |iff, *t1|, *t0;.{|
|00004e60| 0a 09 74 64 69 66 66 2d | 3e 74 76 5f 73 65 63 20 |..tdiff-|>tv_sec |
|00004e70| 3d 20 74 31 2d 3e 74 76 | 5f 73 65 63 20 2d 20 74 |= t1->tv|_sec - t|
|00004e80| 30 2d 3e 74 76 5f 73 65 | 63 3b 0a 09 74 64 69 66 |0->tv_se|c;..tdif|
|00004e90| 66 2d 3e 74 76 5f 75 73 | 65 63 20 3d 20 74 31 2d |f->tv_us|ec = t1-|
|00004ea0| 3e 74 76 5f 75 73 65 63 | 20 2d 20 74 30 2d 3e 74 |>tv_usec| - t0->t|
|00004eb0| 76 5f 75 73 65 63 3b 0a | 09 69 66 20 28 74 64 69 |v_usec;.|.if (tdi|
|00004ec0| 66 66 2d 3e 74 76 5f 73 | 65 63 20 3c 20 30 20 26 |ff->tv_s|ec < 0 &|
|00004ed0| 26 20 74 64 69 66 66 2d | 3e 74 76 5f 75 73 65 63 |& tdiff-|>tv_usec|
|00004ee0| 20 3e 20 30 29 0a 09 09 | 74 64 69 66 66 2d 3e 74 | > 0)...|tdiff->t|
|00004ef0| 76 5f 73 65 63 2b 2b 2c | 20 74 64 69 66 66 2d 3e |v_sec++,| tdiff->|
|00004f00| 74 76 5f 75 73 65 63 20 | 2d 3d 20 31 30 30 30 30 |tv_usec |-= 10000|
|00004f10| 30 30 3b 0a 09 69 66 20 | 28 74 64 69 66 66 2d 3e |00;..if |(tdiff->|
|00004f20| 74 76 5f 73 65 63 20 3e | 20 30 20 26 26 20 74 64 |tv_sec >| 0 && td|
|00004f30| 69 66 66 2d 3e 74 76 5f | 75 73 65 63 20 3c 20 30 |iff->tv_|usec < 0|
|00004f40| 29 0a 09 09 74 64 69 66 | 66 2d 3e 74 76 5f 73 65 |)...tdif|f->tv_se|
|00004f50| 63 2d 2d 2c 20 74 64 69 | 66 66 2d 3e 74 76 5f 75 |c--, tdi|ff->tv_u|
|00004f60| 73 65 63 20 2b 3d 20 31 | 30 30 30 30 30 30 3b 0a |sec += 1|000000;.|
|00004f70| 7d 0a 0a 76 6f 69 64 0a | 70 72 69 6e 74 64 69 66 |}..void.|printdif|
|00004f80| 66 28 63 68 61 72 20 2a | 77 68 65 72 65 2c 20 73 |f(char *|where, s|
|00004f90| 74 72 75 63 74 20 74 69 | 6d 65 76 61 6c 20 2a 64 |truct ti|meval *d|
|00004fa0| 69 66 66 29 0a 7b 0a 09 | 28 76 6f 69 64 29 20 73 |iff).{..|(void) s|
|00004fb0| 70 72 69 6e 74 66 20 28 | 77 68 65 72 65 2c 20 22 |printf (|where, "|
|00004fc0| 25 63 25 64 2e 25 2e 30 | 33 64 22 2c 0a 09 09 28 |%c%d.%.0|3d",...(|
|00004fd0| 64 69 66 66 2d 3e 74 76 | 5f 73 65 63 20 3c 20 30 |diff->tv|_sec < 0|
|00004fe0| 20 7c 7c 20 64 69 66 66 | 2d 3e 74 76 5f 75 73 65 | || diff|->tv_use|
|00004ff0| 63 20 3c 20 30 29 20 3f | 20 27 2d 27 20 3a 20 27 |c < 0) ?| '-' : '|
|00005000| 2b 27 2c 0a 09 09 61 62 | 73 28 64 69 66 66 2d 3e |+',...ab|s(diff->|
|00005010| 74 76 5f 73 65 63 29 2c | 20 61 62 73 28 64 69 66 |tv_sec),| abs(dif|
|00005020| 66 2d 3e 74 76 5f 75 73 | 65 63 29 20 2f 20 31 30 |f->tv_us|ec) / 10|
|00005030| 30 30 29 3b 0a 7d 0a 0a | 73 74 61 74 69 63 09 6a |00);.}..|static.j|
|00005040| 6d 70 5f 62 75 66 20 6a | 62 3b 0a 76 6f 69 64 0a |mp_buf j|b;.void.|
|00005050| 74 69 6d 65 6f 75 74 28 | 29 0a 7b 0a 09 6c 6f 6e |timeout(|).{..lon|
|00005060| 67 6a 6d 70 28 6a 62 2c | 20 31 29 3b 0a 7d 0a 0a |gjmp(jb,| 1);.}..|
|00005070| 73 74 61 74 69 63 20 69 | 6e 74 0a 69 6e 74 65 72 |static i|nt.inter|
|00005080| 6e 65 74 74 69 6d 65 20 | 28 73 74 72 75 63 74 20 |nettime |(struct |
|00005090| 74 69 6d 65 68 6f 73 74 | 20 2a 74 68 69 73 68 6f |timehost| *thisho|
|000050a0| 73 74 29 0a 7b 0a 09 72 | 65 67 69 73 74 65 72 20 |st).{..r|egister |
|000050b0| 73 74 72 75 63 74 20 68 | 6f 73 74 65 6e 74 20 2a |struct h|ostent *|
|000050c0| 68 70 3b 0a 09 73 74 72 | 75 63 74 20 73 6f 63 6b |hp;..str|uct sock|
|000050d0| 61 64 64 72 5f 69 6e 20 | 73 69 6e 3b 0a 09 6c 6f |addr_in |sin;..lo|
|000050e0| 6e 67 20 70 6f 72 74 3b | 0a 09 69 6e 74 20 6e 72 |ng port;|..int nr|
|000050f0| 65 61 64 3b 0a 09 73 74 | 61 74 69 63 20 69 6e 74 |ead;..st|atic int|
|00005100| 20 73 20 3d 20 2d 31 3b | 0a 0a 09 69 66 20 28 74 | s = -1;|...if (t|
|00005110| 68 69 73 68 6f 73 74 20 | 2d 3e 20 6c 6f 63 61 6c |hishost |-> local|
|00005120| 29 20 7b 0a 09 09 69 66 | 20 28 67 65 74 74 69 6d |) {...if| (gettim|
|00005130| 65 6f 66 64 61 79 20 28 | 26 6e 6f 77 2c 20 28 73 |eofday (|&now, (s|
|00005140| 74 72 75 63 74 20 74 69 | 6d 65 7a 6f 6e 65 20 2a |truct ti|mezone *|
|00005150| 29 30 29 20 3d 3d 20 2d | 31 29 20 7b 0a 09 09 09 |)0) == -|1) {....|
|00005160| 70 65 72 72 6f 72 20 28 | 22 6e 65 74 64 61 74 65 |perror (|"netdate|
|00005170| 3a 20 67 65 74 74 69 6d | 65 6f 66 64 61 79 22 29 |: gettim|eofday")|
|00005180| 3b 0a 09 09 09 65 78 69 | 74 20 28 31 29 3b 0a 09 |;....exi|t (1);..|
|00005190| 09 7d 0a 09 09 74 68 69 | 73 68 6f 73 74 20 2d 3e |.}...thi|shost ->|
|000051a0| 20 61 73 6b 65 64 20 3d | 20 6e 6f 77 3b 0a 09 09 | asked =| now;...|
|000051b0| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 74 68 65 6e |thishost| -> then|
|000051c0| 20 3d 20 6e 6f 77 3b 0a | 09 09 74 68 69 73 68 6f | = now;.|..thisho|
|000051d0| 73 74 20 2d 3e 20 61 63 | 6b 65 64 20 3d 20 6e 6f |st -> ac|ked = no|
|000051e0| 77 3b 0a 09 09 72 65 74 | 75 72 6e 28 31 29 3b 0a |w;...ret|urn(1);.|
|000051f0| 09 7d 0a 09 74 69 6d 65 | 72 63 6c 65 61 72 28 26 |.}..time|rclear(&|
|00005200| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 74 68 65 6e |thishost| -> then|
|00005210| 29 3b 0a 09 69 66 20 28 | 73 65 74 6a 6d 70 28 6a |);..if (|setjmp(j|
|00005220| 62 29 29 0a 09 09 67 6f | 74 6f 20 62 61 64 3b 0a |b))...go|to bad;.|
|00005230| 09 28 76 6f 69 64 29 73 | 69 67 6e 61 6c 28 53 49 |.(void)s|ignal(SI|
|00005240| 47 41 4c 52 4d 2c 20 74 | 69 6d 65 6f 75 74 29 3b |GALRM, t|imeout);|
|00005250| 0a 09 69 66 20 28 73 20 | 21 3d 20 2d 31 29 0a 09 |..if (s |!= -1)..|
|00005260| 09 28 76 6f 69 64 29 20 | 63 6c 6f 73 65 20 28 73 |.(void) |close (s|
|00005270| 29 2c 20 73 20 3d 20 2d | 31 3b 0a 09 70 6f 72 74 |), s = -|1;..port|
|00005280| 20 3d 20 67 65 74 70 6f | 72 74 28 74 68 69 73 68 | = getpo|rt(thish|
|00005290| 6f 73 74 20 2d 3e 20 70 | 72 6f 74 6f 6e 61 6d 65 |ost -> p|rotoname|
|000052a0| 29 3b 0a 09 62 7a 65 72 | 6f 28 28 63 68 61 72 20 |);..bzer|o((char |
|000052b0| 2a 29 26 73 69 6e 2c 20 | 73 69 7a 65 6f 66 20 28 |*)&sin, |sizeof (|
|000052c0| 73 69 6e 29 29 3b 0a 09 | 73 65 74 68 6f 73 74 65 |sin));..|sethoste|
|000052d0| 6e 74 28 31 29 3b 0a 09 | 69 66 20 28 28 68 70 20 |nt(1);..|if ((hp |
|000052e0| 3d 20 67 65 74 68 6f 73 | 74 62 79 6e 61 6d 65 28 |= gethos|tbyname(|
|000052f0| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 68 6f 73 74 |thishost| -> host|
|00005300| 6e 61 6d 65 29 29 20 3d | 3d 20 4e 55 4c 4c 29 20 |name)) =|= NULL) |
|00005310| 7b 0a 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |{...fpri|ntf(stde|
|00005320| 72 72 2c 20 22 25 73 3a | 20 25 73 3a 20 75 6e 6b |rr, "%s:| %s: unk|
|00005330| 6e 6f 77 6e 20 68 6f 73 | 74 5c 6e 22 2c 0a 09 09 |nown hos|t\n",...|
|00005340| 09 77 68 6f 61 6d 69 2c | 20 74 68 69 73 68 6f 73 |.whoami,| thishos|
|00005350| 74 20 2d 3e 20 68 6f 73 | 74 6e 61 6d 65 29 3b 0a |t -> hos|tname);.|
|00005360| 09 09 67 6f 74 6f 20 6f | 75 74 3b 0a 09 7d 0a 09 |..goto o|ut;..}..|
|00005370| 73 69 6e 2e 73 69 6e 5f | 66 61 6d 69 6c 79 20 3d |sin.sin_|family =|
|00005380| 20 68 70 2d 3e 68 5f 61 | 64 64 72 74 79 70 65 3b | hp->h_a|ddrtype;|
|00005390| 0a 09 28 76 6f 69 64 29 | 61 6c 61 72 6d 28 32 30 |..(void)|alarm(20|
|000053a0| 29 3b 0a 09 73 20 3d 20 | 73 6f 63 6b 65 74 28 68 |);..s = |socket(h|
|000053b0| 70 2d 3e 68 5f 61 64 64 | 72 74 79 70 65 2c 20 74 |p->h_add|rtype, t|
|000053c0| 68 69 73 68 6f 73 74 20 | 2d 3e 20 73 6f 63 6b 74 |hishost |-> sockt|
|000053d0| 79 70 65 2c 20 30 20 2f | 2a 70 72 6f 74 6f 6e 75 |ype, 0 /|*protonu|
|000053e0| 6d 62 65 72 2a 2f 29 3b | 0a 09 69 66 20 28 73 20 |mber*/);|..if (s |
|000053f0| 3c 20 30 29 20 7b 0a 09 | 09 70 65 72 72 6f 72 28 |< 0) {..|.perror(|
|00005400| 22 6e 65 74 64 61 74 65 | 3a 20 73 6f 63 6b 65 74 |"netdate|: socket|
|00005410| 22 29 3b 0a 09 09 28 76 | 6f 69 64 29 61 6c 61 72 |");...(v|oid)alar|
|00005420| 6d 28 30 29 3b 0a 09 09 | 67 6f 74 6f 20 6f 75 74 |m(0);...|goto out|
|00005430| 3b 0a 09 7d 0a 09 69 66 | 20 28 74 68 69 73 68 6f |;..}..if| (thisho|
|00005440| 73 74 20 2d 3e 20 73 6f | 63 6b 74 79 70 65 20 3d |st -> so|cktype =|
|00005450| 3d 20 53 4f 43 4b 5f 53 | 54 52 45 41 4d 29 20 7b |= SOCK_S|TREAM) {|
|00005460| 0a 09 09 69 66 20 28 62 | 69 6e 64 28 73 2c 20 28 |...if (b|ind(s, (|
|00005470| 73 74 72 75 63 74 20 73 | 6f 63 6b 61 64 64 72 20 |struct s|ockaddr |
|00005480| 2a 29 26 73 69 6e 2c 20 | 73 69 7a 65 6f 66 20 28 |*)&sin, |sizeof (|
|00005490| 73 69 6e 29 29 20 3c 20 | 30 29 20 7b 0a 09 09 09 |sin)) < |0) {....|
|000054a0| 70 65 72 72 6f 72 28 22 | 6e 65 74 64 61 74 65 3a |perror("|netdate:|
|000054b0| 20 62 69 6e 64 22 29 3b | 0a 09 09 09 67 6f 74 6f | bind");|....goto|
|000054c0| 20 62 61 64 3b 0a 09 09 | 7d 0a 09 7d 0a 09 62 63 | bad;...|}..}..bc|
|000054d0| 6f 70 79 28 68 70 2d 3e | 68 5f 61 64 64 72 2c 20 |opy(hp->|h_addr, |
|000054e0| 28 63 68 61 72 20 2a 29 | 26 73 69 6e 2e 73 69 6e |(char *)|&sin.sin|
|000054f0| 5f 61 64 64 72 2c 20 68 | 70 2d 3e 68 5f 6c 65 6e |_addr, h|p->h_len|
|00005500| 67 74 68 29 3b 0a 09 73 | 69 6e 2e 73 69 6e 5f 70 |gth);..s|in.sin_p|
|00005510| 6f 72 74 20 3d 20 70 6f | 72 74 3b 0a 09 28 76 6f |ort = po|rt;..(vo|
|00005520| 69 64 29 67 65 74 74 69 | 6d 65 6f 66 64 61 79 20 |id)getti|meofday |
|00005530| 28 26 74 68 69 73 68 6f | 73 74 20 2d 3e 20 61 73 |(&thisho|st -> as|
|00005540| 6b 65 64 2c 20 28 73 74 | 72 75 63 74 20 74 69 6d |ked, (st|ruct tim|
|00005550| 65 7a 6f 6e 65 20 2a 29 | 30 29 3b 0a 09 69 66 20 |ezone *)|0);..if |
|00005560| 28 63 6f 6e 6e 65 63 74 | 28 73 2c 20 28 73 74 72 |(connect|(s, (str|
|00005570| 75 63 74 20 73 6f 63 6b | 61 64 64 72 20 2a 29 26 |uct sock|addr *)&|
|00005580| 73 69 6e 2c 20 73 69 7a | 65 6f 66 20 28 73 69 6e |sin, siz|eof (sin|
|00005590| 29 29 20 3c 20 30 29 20 | 7b 0a 09 09 70 65 72 72 |)) < 0) |{...perr|
|000055a0| 6f 72 28 22 6e 65 74 64 | 61 74 65 3a 20 63 6f 6e |or("netd|ate: con|
|000055b0| 6e 65 63 74 22 29 3b 0a | 09 09 67 6f 74 6f 20 62 |nect");.|..goto b|
|000055c0| 61 64 3b 0a 09 7d 0a 09 | 69 66 20 28 74 68 69 73 |ad;..}..|if (this|
|000055d0| 68 6f 73 74 20 2d 3e 20 | 73 6f 63 6b 74 79 70 65 |host -> |socktype|
|000055e0| 20 3d 3d 20 53 4f 43 4b | 5f 44 47 52 41 4d 29 20 | == SOCK|_DGRAM) |
|000055f0| 7b 0a 09 09 69 66 20 28 | 77 72 69 74 65 20 28 73 |{...if (|write (s|
|00005600| 2c 20 22 5c 6e 22 2c 20 | 31 29 20 3c 20 30 29 20 |, "\n", |1) < 0) |
|00005610| 7b 0a 09 09 09 70 65 72 | 72 6f 72 20 28 22 6e 65 |{....per|ror ("ne|
|00005620| 74 64 61 74 65 3a 20 73 | 65 6e 64 22 29 3b 0a 09 |tdate: s|end");..|
|00005630| 09 09 67 6f 74 6f 20 62 | 61 64 3b 0a 09 09 7d 0a |..goto b|ad;...}.|
|00005640| 09 7d 0a 09 6e 72 65 61 | 64 20 3d 20 72 65 61 64 |.}..nrea|d = read|
|00005650| 20 28 73 2c 20 28 63 68 | 61 72 20 2a 29 26 74 68 | (s, (ch|ar *)&th|
|00005660| 69 73 68 6f 73 74 20 2d | 3e 20 74 68 65 6e 2c 20 |ishost -|> then, |
|00005670| 73 69 7a 65 6f 66 20 28 | 74 68 69 73 68 6f 73 74 |sizeof (|thishost|
|00005680| 20 2d 3e 20 74 68 65 6e | 29 29 3b 0a 09 28 76 6f | -> then|));..(vo|
|00005690| 69 64 29 67 65 74 74 69 | 6d 65 6f 66 64 61 79 20 |id)getti|meofday |
|000056a0| 28 26 74 68 69 73 68 6f | 73 74 20 2d 3e 20 61 63 |(&thisho|st -> ac|
|000056b0| 6b 65 64 2c 20 28 73 74 | 72 75 63 74 20 74 69 6d |ked, (st|ruct tim|
|000056c0| 65 7a 6f 6e 65 20 2a 29 | 30 29 3b 0a 09 28 76 6f |ezone *)|0);..(vo|
|000056d0| 69 64 29 61 6c 61 72 6d | 28 30 29 3b 0a 09 6e 6f |id)alarm|(0);..no|
|000056e0| 77 20 3d 20 74 68 69 73 | 68 6f 73 74 20 2d 3e 20 |w = this|host -> |
|000056f0| 61 63 6b 65 64 3b 0a 09 | 69 66 20 28 6e 72 65 61 |acked;..|if (nrea|
|00005700| 64 20 3c 20 73 69 7a 65 | 6f 66 28 74 68 69 73 68 |d < size|of(thish|
|00005710| 6f 73 74 20 2d 3e 20 74 | 68 65 6e 2e 74 76 5f 73 |ost -> t|hen.tv_s|
|00005720| 65 63 29 29 20 7b 0a 09 | 09 70 65 72 72 6f 72 20 |ec)) {..|.perror |
|00005730| 28 22 6e 65 74 64 61 74 | 65 3a 20 72 65 61 64 22 |("netdat|e: read"|
|00005740| 29 3b 0a 09 09 67 6f 74 | 6f 20 62 61 64 3b 0a 09 |);...got|o bad;..|
|00005750| 7d 0a 09 2f 2a 20 52 46 | 43 20 38 36 38 20 6f 6e |}../* RF|C 868 on|
|00005760| 6c 79 20 61 6c 6c 6f 77 | 73 20 73 65 63 6f 6e 64 |ly allow|s second|
|00005770| 73 2c 20 62 75 74 20 77 | 68 61 74 20 74 68 65 20 |s, but w|hat the |
|00005780| 68 65 6c 6c 20 2a 2f 0a | 09 69 66 20 28 6e 72 65 |hell */.|.if (nre|
|00005790| 61 64 20 3d 3d 20 73 69 | 7a 65 6f 66 28 74 68 69 |ad == si|zeof(thi|
|000057a0| 73 68 6f 73 74 20 2d 3e | 20 74 68 65 6e 29 29 0a |shost ->| then)).|
|000057b0| 09 09 74 68 69 73 68 6f | 73 74 20 2d 3e 20 74 68 |..thisho|st -> th|
|000057c0| 65 6e 2e 74 76 5f 75 73 | 65 63 20 3d 20 6e 74 6f |en.tv_us|ec = nto|
|000057d0| 68 6c 28 74 68 69 73 68 | 6f 73 74 20 2d 3e 20 74 |hl(thish|ost -> t|
|000057e0| 68 65 6e 2e 74 76 5f 75 | 73 65 63 29 3b 0a 09 65 |hen.tv_u|sec);..e|
|000057f0| 6c 73 65 0a 09 09 74 68 | 69 73 68 6f 73 74 20 2d |lse...th|ishost -|
|00005800| 3e 20 74 68 65 6e 2e 74 | 76 5f 75 73 65 63 20 3d |> then.t|v_usec =|
|00005810| 20 30 4c 3b 0a 09 74 68 | 69 73 68 6f 73 74 20 2d | 0L;..th|ishost -|
|00005820| 3e 20 74 68 65 6e 2e 74 | 76 5f 73 65 63 20 3d 20 |> then.t|v_sec = |
|00005830| 6e 74 6f 68 6c 20 28 74 | 68 69 73 68 6f 73 74 20 |ntohl (t|hishost |
|00005840| 2d 3e 20 74 68 65 6e 2e | 74 76 5f 73 65 63 29 20 |-> then.|tv_sec) |
|00005850| 2d 20 4e 45 54 42 41 53 | 45 3b 0a 09 72 65 74 75 |- NETBAS|E;..retu|
|00005860| 72 6e 20 28 31 29 3b 09 | 2f 2a 20 64 6f 6e 27 74 |rn (1);.|/* don't|
|00005870| 20 63 6c 6f 73 65 20 62 | 65 66 6f 72 65 20 72 65 | close b|efore re|
|00005880| 74 75 72 6e 69 6e 67 20 | 74 6f 20 61 76 6f 69 64 |turning |to avoid|
|00005890| 20 64 65 6c 61 79 73 20 | 2a 2f 0a 62 61 64 3a 0a | delays |*/.bad:.|
|000058a0| 09 28 76 6f 69 64 29 61 | 6c 61 72 6d 28 30 29 3b |.(void)a|larm(0);|
|000058b0| 0a 09 28 76 6f 69 64 29 | 20 63 6c 6f 73 65 20 28 |..(void)| close (|
|000058c0| 73 29 2c 20 73 20 3d 20 | 2d 31 3b 0a 6f 75 74 3a |s), s = |-1;.out:|
|000058d0| 0a 09 69 66 20 28 67 65 | 74 74 69 6d 65 6f 66 64 |..if (ge|ttimeofd|
|000058e0| 61 79 20 28 26 6e 6f 77 | 2c 20 28 73 74 72 75 63 |ay (&now|, (struc|
|000058f0| 74 20 74 69 6d 65 7a 6f | 6e 65 20 2a 29 30 29 20 |t timezo|ne *)0) |
|00005900| 3d 3d 20 2d 31 29 20 7b | 0a 09 09 70 65 72 72 6f |== -1) {|...perro|
|00005910| 72 20 28 22 6e 65 74 64 | 61 74 65 3a 20 67 65 74 |r ("netd|ate: get|
|00005920| 74 69 6d 65 6f 66 64 61 | 79 22 29 3b 0a 09 09 65 |timeofda|y");...e|
|00005930| 78 69 74 20 28 31 29 3b | 0a 09 7d 0a 09 74 68 69 |xit (1);|..}..thi|
|00005940| 73 68 6f 73 74 20 2d 3e | 20 61 73 6b 65 64 20 3d |shost ->| asked =|
|00005950| 20 6e 6f 77 3b 0a 09 74 | 68 69 73 68 6f 73 74 20 | now;..t|hishost |
|00005960| 2d 3e 20 74 68 65 6e 20 | 3d 20 6e 6f 77 3b 0a 09 |-> then |= now;..|
|00005970| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 61 63 6b 65 |thishost| -> acke|
|00005980| 64 20 3d 20 6e 6f 77 3b | 0a 09 74 68 69 73 68 6f |d = now;|..thisho|
|00005990| 73 74 20 2d 3e 20 62 61 | 64 20 3d 20 31 3b 0a 09 |st -> ba|d = 1;..|
|000059a0| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|000059b0| 20 22 43 6f 6e 6e 65 63 | 74 69 6f 6e 20 77 69 74 | "Connec|tion wit|
|000059c0| 68 20 25 73 20 74 6f 20 | 25 73 20 66 61 69 6c 65 |h %s to |%s faile|
|000059d0| 64 2e 5c 6e 22 2c 0a 09 | 09 74 68 69 73 68 6f 73 |d.\n",..|.thishos|
|000059e0| 74 20 2d 3e 20 70 72 6f | 74 6f 6e 61 6d 65 2c 20 |t -> pro|toname, |
|000059f0| 74 68 69 73 68 6f 73 74 | 20 2d 3e 20 68 6f 73 74 |thishost| -> host|
|00005a00| 6e 61 6d 65 29 3b 0a 09 | 72 65 74 75 72 6e 28 30 |name);..|return(0|
|00005a10| 29 3b 0a 7d 0a 0a 6c 6f | 6e 67 0a 67 65 74 70 6f |);.}..lo|ng.getpo|
|00005a20| 72 74 28 63 68 61 72 20 | 2a 70 72 6f 74 6f 6e 61 |rt(char |*protona|
|00005a30| 6d 65 29 0a 7b 0a 09 72 | 65 67 69 73 74 65 72 20 |me).{..r|egister |
|00005a40| 73 74 72 75 63 74 20 73 | 65 72 76 65 6e 74 20 2a |struct s|ervent *|
|00005a50| 73 70 3b 0a 09 73 74 61 | 74 69 63 20 6c 6f 6e 67 |sp;..sta|tic long|
|00005a60| 20 70 6f 72 74 3b 0a 0a | 09 69 66 20 28 70 6f 72 | port;..|.if (por|
|00005a70| 74 20 21 3d 20 30 29 0a | 09 09 72 65 74 75 72 6e |t != 0).|..return|
|00005a80| 28 70 6f 72 74 29 3b 0a | 09 69 66 20 28 28 73 70 |(port);.|.if ((sp|
|00005a90| 20 3d 20 67 65 74 73 65 | 72 76 62 79 6e 61 6d 65 | = getse|rvbyname|
|00005aa0| 28 73 65 72 76 69 63 65 | 2c 20 70 72 6f 74 6f 6e |(service|, proton|
|00005ab0| 61 6d 65 29 29 20 3d 3d | 20 30 29 20 7b 0a 09 09 |ame)) ==| 0) {...|
|00005ac0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00005ad0| 22 25 73 3a 20 25 73 2f | 25 73 3a 20 75 6e 6b 6e |"%s: %s/|%s: unkn|
|00005ae0| 6f 77 6e 20 73 65 72 76 | 69 63 65 5c 6e 22 2c 0a |own serv|ice\n",.|
|00005af0| 09 09 09 77 68 6f 61 6d | 69 2c 20 73 65 72 76 69 |...whoam|i, servi|
|00005b00| 63 65 2c 20 70 72 6f 74 | 6f 6e 61 6d 65 29 3b 0a |ce, prot|oname);.|
|00005b10| 09 09 65 78 69 74 28 31 | 29 3b 0a 09 7d 0a 09 72 |..exit(1|);..}..r|
|00005b20| 65 74 75 72 6e 20 28 70 | 6f 72 74 20 3d 20 73 70 |eturn (p|ort = sp|
|00005b30| 2d 3e 73 5f 70 6f 72 74 | 29 3b 0a 7d 0a 00 00 00 |->s_port|);.}....|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.