|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: i
Length: 13201 (0x3391)
Names: »intro.4n«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat4/intro.4n«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 44 65 76 69 63 65 73 20 61 6e 64 20 46 61 63 69 ┆ u_ a_ l Devices and Faci┆
0x0040…0060 6c 69 74 69 65 73 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 72 6f 28 34 6e 29 0a 0a 0a 0a ┆lities intro(4n) ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x0080…00a0 20 20 6e 65 74 77 6f 72 6b 69 6e 67 20 2d 20 69 6e 74 72 6f 64 75 63 74 69 6f 6e 20 74 6f 20 6e ┆ networking - introduction to n┆
0x00a0…00c0 65 74 77 6f 72 6b 69 6e 67 20 66 61 63 69 6c 69 74 69 65 73 0a 0a 53 08 53 08 53 08 53 59 08 59 ┆etworking facilities S S S SY Y┆
0x00c0…00e0 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 ┆ Y YN N N NT T T TA A A AX X X X┆
0x00e0…0100 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 ┆ # # # #i i i in n n nc c c┆
0x0100…0120 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c ┆ cl l l lu u u ud d d de e e e <┆
0x0120…0140 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f ┆ < < <s s s sy y y ys s s s/ / /┆
0x0140…0160 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 ┆ /t t t ty y y yp p p pe e e es ┆
0x0160…0180 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 ┆s s s. . . .h h h h> > > > ┆
0x0180…01a0 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 ┆# # # #i i i in n n nc c c cl l ┆
0x01a0…01c0 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c ┆l lu u u ud d d de e e e < < < <┆
0x01c0…01e0 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 ┆s s s sy y y ys s s s/ / / /s s ┆
0x01e0…0200 73 08 73 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 ┆s so o o oc c c ck k k ke e e et┆
0x0200…0220 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 ┆ t t t. . . .h h h h> > > > ┆
0x0220…0240 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c ┆ # # # #i i i in n n nc c c cl l┆
0x0240…0260 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 ┆ l lu u u ud d d de e e e < < < ┆
0x0260…0280 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 74 08 74 08 74 08 74 2f 08 2f 08 2f 08 2f 63 08 63 ┆<n n n ne e e et t t t/ / / /c c┆
0x0280…02a0 08 63 08 63 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 69 08 69 08 69 08 69 ┆ c co o o on n n nf f f fi i i i┆
0x02a0…02c0 67 08 67 08 67 08 67 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 ┆g g g g. . . .h h h h> > > > ┆
0x02c0…02e0 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 ┆ # # # #i i i in n n nc c c cl ┆
0x02e0…0300 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c ┆l l lu u u ud d d de e e e < < <┆
0x0300…0320 08 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 74 08 74 08 74 08 74 2f 08 2f 08 2f 08 2f 72 08 ┆ <n n n ne e e et t t t/ / / /r ┆
0x0320…0340 72 08 72 08 72 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 74 08 74 08 74 08 74 65 08 65 08 65 08 ┆r r ro o o ou u u ut t t te e e ┆
0x0340…0360 65 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 ┆e. . . .h h h h> > > > # # ┆
0x0360…0380 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 ┆# #i i i in n n nc c c cl l l lu┆
0x0380…03a0 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 6e 08 6e 08 ┆ u u ud d d de e e e < < < <n n ┆
0x03a0…03c0 6e 08 6e 65 08 65 08 65 08 65 74 08 74 08 74 08 74 2f 08 2f 08 2f 08 2f 69 08 69 08 69 08 69 66 ┆n ne e e et t t t/ / / /i i i if┆
0x03c0…03e0 08 66 08 66 08 66 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 44 08 44 ┆ f f f. . . .h h h h> > > > D D┆
0x03e0…0400 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 ┆ D DE E E ES S S SC C C CR R R R┆
0x0400…0420 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 ┆I I I IP P P PT T T TI I I IO O ┆
0x0420…0440 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 69 73 20 73 65 63 74 69 6f 6e 20 62 72 69 ┆O ON N N N This section bri┆
0x0440…0460 65 66 6c 79 20 64 65 73 63 72 69 62 65 73 20 74 68 65 20 6e 65 74 77 6f 72 6b 69 6e 67 20 66 61 ┆efly describes the networking fa┆
0x0460…0480 63 69 6c 69 74 69 65 73 0a 20 20 20 20 20 61 76 61 69 6c 61 62 6c 65 20 69 6e 20 74 68 65 20 73 ┆cilities available in the s┆
0x0480…04a0 79 73 74 65 6d 2e 20 20 44 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 69 6e 20 74 68 69 73 20 70 61 ┆ystem. Documentation in this pa┆
0x04a0…04c0 72 74 20 6f 66 20 73 65 63 2d 0a 20 20 20 20 20 74 69 6f 6e 20 34 20 69 73 20 62 72 6f 6b 65 6e ┆rt of sec- tion 4 is broken┆
0x04c0…04e0 20 75 70 20 69 6e 74 6f 20 74 68 72 65 65 20 61 72 65 61 73 3a 20 5f 08 70 5f 08 72 5f 08 6f 5f ┆ up into three areas: _ p_ r_ o_┆
0x04e0…0500 08 74 5f 08 6f 5f 08 63 5f 08 6f 5f 08 6c 20 5f 08 66 5f 08 61 5f 08 6d 5f 08 69 5f 08 6c 5f 08 ┆ t_ o_ c_ o_ l _ f_ a_ m_ i_ l_ ┆
0x0500…0520 69 5f 08 65 5f 08 73 0a 20 20 20 20 20 28 64 6f 6d 61 69 6e 73 29 2c 20 5f 08 70 5f 08 72 5f 08 ┆i_ e_ s (domains), _ p_ r_ ┆
0x0520…0540 6f 5f 08 74 5f 08 6f 5f 08 63 5f 08 6f 5f 08 6c 5f 08 73 2c 20 61 6e 64 20 5f 08 6e 5f 08 65 5f ┆o_ t_ o_ c_ o_ l_ s, and _ n_ e_┆
0x0540…0560 08 74 5f 08 77 5f 08 6f 5f 08 72 5f 08 6b 20 5f 08 69 5f 08 6e 5f 08 74 5f 08 65 5f 08 72 5f 08 ┆ t_ w_ o_ r_ k _ i_ n_ t_ e_ r_ ┆
0x0560…0580 66 5f 08 61 5f 08 63 5f 08 65 5f 08 73 2e 20 20 45 6e 74 72 69 65 73 0a 20 20 20 20 20 64 65 73 ┆f_ a_ c_ e_ s. Entries des┆
0x0580…05a0 63 72 69 62 69 6e 67 20 61 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 61 72 65 20 6d 61 ┆cribing a protocol family are ma┆
0x05a0…05c0 72 6b 65 64 20 60 60 34 66 2c 27 27 20 77 68 69 6c 65 0a 20 20 20 20 20 65 6e 74 72 69 65 73 20 ┆rked ``4f,'' while entries ┆
0x05c0…05e0 64 65 73 63 72 69 62 69 6e 67 20 70 72 6f 74 6f 63 6f 6c 20 75 73 65 20 61 72 65 20 6d 61 72 6b ┆describing protocol use are mark┆
0x05e0…0600 65 64 20 60 60 34 70 2e 27 27 20 48 61 72 64 77 61 72 65 0a 20 20 20 20 20 73 75 70 70 6f 72 74 ┆ed ``4p.'' Hardware support┆
0x0600…0620 20 66 6f 72 20 6e 65 74 77 6f 72 6b 20 69 6e 74 65 72 66 61 63 65 73 20 61 72 65 20 66 6f 75 6e ┆ for network interfaces are foun┆
0x0620…0640 64 20 61 6d 6f 6e 67 20 74 68 65 20 73 74 61 6e 64 61 72 64 0a 20 20 20 20 20 60 60 34 27 27 20 ┆d among the standard ``4'' ┆
0x0640…0660 65 6e 74 72 69 65 73 2e 0a 0a 20 20 20 20 20 41 6c 6c 20 6e 65 74 77 6f 72 6b 20 70 72 6f 74 6f ┆entries. All network proto┆
0x0660…0680 63 6f 6c 73 20 61 72 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 61 20 73 70 65 63 69 ┆cols are associated with a speci┆
0x0680…06a0 66 69 63 20 5f 08 70 5f 08 72 5f 08 6f 5f 08 74 5f 08 6f 5f 08 2d 0a 20 20 20 20 20 5f 08 63 5f ┆fic _ p_ r_ o_ t_ o_ - _ c_┆
0x06a0…06c0 08 6f 5f 08 6c 20 5f 08 66 5f 08 61 5f 08 6d 5f 08 69 5f 08 6c 5f 08 79 2e 20 20 41 20 70 72 6f ┆ o_ l _ f_ a_ m_ i_ l_ y. A pro┆
0x06c0…06e0 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 70 72 6f 76 69 64 65 73 20 62 61 73 69 63 20 73 65 72 76 ┆tocol family provides basic serv┆
0x06e0…0700 69 63 65 73 20 74 6f 0a 20 20 20 20 20 74 68 65 20 70 72 6f 74 6f 63 6f 6c 20 69 6d 70 6c 65 6d ┆ices to the protocol implem┆
0x0700…0720 65 6e 74 61 74 69 6f 6e 20 74 6f 20 61 6c 6c 6f 77 20 69 74 20 74 6f 20 66 75 6e 63 74 69 6f 6e ┆entation to allow it to function┆
0x0720…0740 20 77 69 74 68 69 6e 20 61 0a 20 20 20 20 20 73 70 65 63 69 66 69 63 20 6e 65 74 77 6f 72 6b 20 ┆ within a specific network ┆
0x0740…0760 65 6e 76 69 72 6f 6e 6d 65 6e 74 2e 20 20 54 68 65 73 65 20 73 65 72 76 69 63 65 73 20 6d 61 79 ┆environment. These services may┆
0x0760…0780 20 69 6e 63 6c 75 64 65 0a 20 20 20 20 20 70 61 63 6b 65 74 20 66 72 61 67 6d 65 6e 74 61 74 69 ┆ include packet fragmentati┆
0x0780…07a0 6f 6e 20 61 6e 64 20 72 65 61 73 73 65 6d 62 6c 79 2c 20 72 6f 75 74 69 6e 67 2c 20 61 64 64 72 ┆on and reassembly, routing, addr┆
0x07a0…07c0 65 73 73 69 6e 67 2c 0a 20 20 20 20 20 61 6e 64 20 62 61 73 69 63 20 74 72 61 6e 73 70 6f 72 74 ┆essing, and basic transport┆
0x07c0…07e0 2e 20 20 41 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 6d 61 79 20 73 75 70 70 6f 72 74 ┆. A protocol family may support┆
0x07e0…0800 20 6d 75 6c 74 69 70 6c 65 0a 20 20 20 20 20 6d 65 74 68 6f 64 73 20 6f 66 20 61 64 64 72 65 73 ┆ multiple methods of addres┆
0x0800…0820 73 69 6e 67 2c 20 74 68 6f 75 67 68 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 6f 74 6f 63 6f ┆sing, though the current protoco┆
0x0820…0840 6c 20 69 6d 70 6c 65 6d 65 6e 2d 0a 20 20 20 20 20 74 61 74 69 6f 6e 73 20 64 6f 20 6e 6f 74 2e ┆l implemen- tations do not.┆
0x0840…0860 20 20 41 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 69 73 20 6e 6f 72 6d 61 6c 6c 79 20 ┆ A protocol family is normally ┆
0x0860…0880 63 6f 6d 70 72 69 73 65 64 20 6f 66 0a 20 20 20 20 20 61 20 6e 75 6d 62 65 72 20 6f 66 20 70 72 ┆comprised of a number of pr┆
0x0880…08a0 6f 74 6f 63 6f 6c 73 2c 20 6f 6e 65 20 70 65 72 20 5f 08 73 5f 08 6f 5f 08 63 5f 08 6b 5f 08 65 ┆otocols, one per _ s_ o_ c_ k_ e┆
0x08a0…08c0 5f 08 74 20 74 79 70 65 2e 20 20 49 74 20 69 73 20 6e 6f 74 0a 20 20 20 20 20 72 65 71 75 69 72 ┆_ t type. It is not requir┆
0x08c0…08e0 65 64 20 74 68 61 74 20 61 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 73 75 70 70 6f 72 ┆ed that a protocol family suppor┆
0x08e0…0900 74 20 61 6c 6c 20 73 6f 63 6b 65 74 20 74 79 70 65 73 2e 20 20 41 0a 20 20 20 20 20 70 72 6f 74 ┆t all socket types. A prot┆
0x0900…0920 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 6d 61 79 20 63 6f 6e 74 61 69 6e 20 6d 75 6c 74 69 70 6c 65 ┆ocol family may contain multiple┆
0x0920…0940 20 70 72 6f 74 6f 63 6f 6c 73 20 73 75 70 70 6f 72 74 69 6e 67 0a 20 20 20 20 20 74 68 65 20 73 ┆ protocols supporting the s┆
0x0940…0960 61 6d 65 20 73 6f 63 6b 65 74 20 61 62 73 74 72 61 63 74 69 6f 6e 2e 0a 0a 20 20 20 20 20 41 20 ┆ame socket abstraction. A ┆
0x0960…0980 70 72 6f 74 6f 63 6f 6c 20 73 75 70 70 6f 72 74 73 20 6f 6e 65 20 6f 66 20 74 68 65 20 73 6f 63 ┆protocol supports one of the soc┆
0x0980…09a0 6b 65 74 20 61 62 73 74 72 61 63 74 69 6f 6e 73 20 64 65 74 61 69 6c 65 64 0a 20 20 20 20 20 69 ┆ket abstractions detailed i┆
0x09a0…09c0 6e 20 5f 08 73 5f 08 6f 5f 08 63 5f 08 6b 5f 08 65 5f 08 74 28 32 29 2e 20 20 41 20 73 70 65 63 ┆n _ s_ o_ c_ k_ e_ t(2). A spec┆
0x09c0…09e0 69 66 69 63 20 70 72 6f 74 6f 63 6f 6c 20 6d 61 79 20 62 65 20 61 63 63 65 73 73 65 64 20 65 69 ┆ific protocol may be accessed ei┆
0x09e0…0a00 74 68 65 72 20 62 79 0a 20 20 20 20 20 63 72 65 61 74 69 6e 67 20 61 20 73 6f 63 6b 65 74 20 6f ┆ther by creating a socket o┆
0x0a00…0a20 66 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 74 79 70 65 20 61 6e 64 20 70 72 6f 74 6f ┆f the appropriate type and proto┆
0x0a20…0a40 63 6f 6c 20 66 61 6d 2d 0a 20 20 20 20 20 69 6c 79 2c 20 6f 72 20 62 79 20 72 65 71 75 65 73 74 ┆col fam- ily, or by request┆
0x0a40…0a60 69 6e 67 20 74 68 65 20 70 72 6f 74 6f 63 6f 6c 20 65 78 70 6c 69 63 69 74 6c 79 20 77 68 65 6e ┆ing the protocol explicitly when┆
0x0a60…0a80 20 63 72 65 61 74 69 6e 67 0a 20 20 20 20 20 61 20 73 6f 63 6b 65 74 2e 20 20 50 72 6f 74 6f 63 ┆ creating a socket. Protoc┆
0x0a80…0aa0 6f 6c 73 20 6e 6f 72 6d 61 6c 6c 79 20 61 63 63 65 70 74 20 6f 6e 6c 79 20 6f 6e 65 20 74 79 70 ┆ols normally accept only one typ┆
0x0aa0…0ac0 65 20 6f 66 0a 20 20 20 20 20 61 64 64 72 65 73 73 20 66 6f 72 6d 61 74 2c 20 75 73 75 61 6c 6c ┆e of address format, usuall┆
0x0ac0…0ae0 79 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 20 61 64 64 72 65 73 73 69 6e 67 20 73 ┆y determined by the addressing s┆
0x0ae0…0b00 74 72 75 63 2d 0a 20 20 20 20 20 74 75 72 65 20 69 6e 68 65 72 65 6e 74 20 69 6e 20 74 68 65 20 ┆truc- ture inherent in the ┆
0x0b00…0b20 64 65 73 69 67 6e 20 6f 66 20 74 68 65 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 2f 6e 65 ┆design of the protocol family/ne┆
0x0b20…0b40 74 77 6f 72 6b 0a 20 20 20 20 20 61 72 63 68 69 74 65 63 74 75 72 65 2e 20 20 43 65 72 74 61 69 ┆twork architecture. Certai┆
0x0b40…0b60 6e 20 73 65 6d 61 6e 74 69 63 73 20 6f 66 20 74 68 65 20 62 61 73 69 63 20 73 6f 63 6b 65 74 0a ┆n semantics of the basic socket ┆
0x0b60…0b80 20 20 20 20 20 61 62 73 74 72 61 63 74 69 6f 6e 73 20 61 72 65 20 70 72 6f 74 6f 63 6f 6c 20 73 ┆ abstractions are protocol s┆
0x0b80…0ba0 70 65 63 69 66 69 63 2e 20 20 41 6c 6c 20 70 72 6f 74 6f 63 6f 6c 73 20 61 72 65 0a 20 20 20 20 ┆pecific. All protocols are ┆
0x0ba0…0bc0 20 65 78 70 65 63 74 65 64 20 74 6f 20 73 75 70 70 6f 72 74 20 74 68 65 20 62 61 73 69 63 20 6d ┆ expected to support the basic m┆
0x0bc0…0be0 6f 64 65 6c 20 66 6f 72 20 74 68 65 69 72 20 70 61 72 74 69 63 75 6c 61 72 0a 20 20 20 20 20 73 ┆odel for their particular s┆
0x0be0…0c00 6f 63 6b 65 74 20 74 79 70 65 2c 20 62 75 74 20 6d 61 79 2c 20 69 6e 20 61 64 64 69 74 69 6f 6e ┆ocket type, but may, in addition┆
0x0c00…0c20 2c 20 70 72 6f 76 69 64 65 20 6e 6f 6e 2d 73 74 61 6e 64 61 72 64 0a 20 20 20 20 20 66 61 63 69 ┆, provide non-standard faci┆
0x0c20…0c40 6c 69 74 69 65 73 20 6f 72 20 65 78 74 65 6e 73 69 6f 6e 73 20 74 6f 20 61 20 6d 65 63 68 61 6e ┆lities or extensions to a mechan┆
0x0c40…0c60 69 73 6d 2e 20 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 61 0a 20 20 20 20 20 70 72 6f 74 6f 63 ┆ism. For example, a protoc┆
0x0c60…0c80 6f 6c 20 73 75 70 70 6f 72 74 69 6e 67 20 74 68 65 20 53 4f 43 4b 5f 53 54 52 45 41 4d 20 61 62 ┆ol supporting the SOCK_STREAM ab┆
0x0c80…0ca0 73 74 72 61 63 74 69 6f 6e 20 6d 61 79 20 61 6c 6c 6f 77 0a 20 20 20 20 20 6d 6f 72 65 20 74 68 ┆straction may allow more th┆
0x0ca0…0cc0 61 6e 20 6f 6e 65 20 62 79 74 65 20 6f 66 20 6f 75 74 2d 6f 66 2d 62 61 6e 64 20 64 61 74 61 20 ┆an one byte of out-of-band data ┆
0x0cc0…0ce0 74 6f 20 62 65 20 74 72 61 6e 73 6d 69 74 74 65 64 20 70 65 72 0a 20 20 20 20 20 6f 75 74 2d 6f ┆to be transmitted per out-o┆
0x0ce0…0d00 66 2d 62 61 6e 64 20 6d 65 73 73 61 67 65 2e 0a 0a 20 20 20 20 20 41 20 6e 65 74 77 6f 72 6b 20 ┆f-band message. A network ┆
0x0d00…0d20 69 6e 74 65 72 66 61 63 65 20 69 73 20 73 69 6d 69 6c 61 72 20 74 6f 20 61 20 64 65 76 69 63 65 ┆interface is similar to a device┆
0x0d20…0d40 20 69 6e 74 65 72 66 61 63 65 2e 20 20 4e 65 74 2d 0a 20 20 20 20 20 77 6f 72 6b 20 69 6e 74 65 ┆ interface. Net- work inte┆
0x0d40…0d60 72 66 61 63 65 73 20 63 6f 6d 70 72 69 73 65 20 74 68 65 20 6c 6f 77 65 73 74 20 6c 61 79 65 72 ┆rfaces comprise the lowest layer┆
0x0d60…0d80 20 6f 66 20 74 68 65 20 6e 65 74 77 6f 72 6b 69 6e 67 0a 20 20 20 20 20 73 75 62 73 79 73 74 65 ┆ of the networking subsyste┆
0x0d80…0da0 6d 2c 20 69 6e 74 65 72 61 63 74 69 6e 67 20 77 69 74 68 20 74 68 65 20 61 63 74 75 61 6c 20 74 ┆m, interacting with the actual t┆
0x0da0…0dc0 72 61 6e 73 70 6f 72 74 20 68 61 72 64 77 61 72 65 2e 0a 20 20 20 20 20 41 6e 20 69 6e 74 65 72 ┆ransport hardware. An inter┆
0x0dc0…0de0 66 61 63 65 20 6d 61 79 20 73 75 70 70 6f 72 74 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 70 72 6f ┆face may support one or more pro┆
0x0de0…0e00 74 6f 63 6f 6c 20 66 61 6d 69 6c 69 65 73 0a 20 20 20 20 20 61 6e 64 2f 6f 72 20 61 64 64 72 65 ┆tocol families and/or addre┆
0x0e00…0e20 73 73 20 66 6f 72 6d 61 74 73 2e 0a 0a 20 20 20 20 20 50 08 50 08 50 08 50 72 08 72 08 72 08 72 ┆ss formats. P P P Pr r r r┆
0x0e20…0e40 6f 08 6f 08 6f 08 6f 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6f 08 6f 08 ┆o o o ot t t to o o oc c c co o ┆
0x0e40…0e60 6f 08 6f 6c 08 6c 08 6c 08 6c 73 08 73 08 73 08 73 0a 20 20 20 20 20 54 68 65 20 73 79 73 74 65 ┆o ol l l ls s s s The syste┆
0x0e60…0e80 6d 20 63 75 72 72 65 6e 74 6c 79 20 73 75 70 70 6f 72 74 73 20 74 68 65 20 44 41 52 50 41 20 49 ┆m currently supports the DARPA I┆
0x0e80…0ea0 6e 74 65 72 6e 65 74 20 70 72 6f 74 6f 63 6f 6c 73 0a 20 20 20 20 20 61 6e 64 20 74 68 65 20 58 ┆nternet protocols and the X┆
0x0ea0…0ec0 65 72 6f 78 20 4e 65 74 77 6f 72 6b 20 53 79 73 74 65 6d 73 20 70 72 6f 74 6f 63 6f 6c 73 2e 20 ┆erox Network Systems protocols. ┆
0x0ec0…0ee0 20 52 61 77 20 73 6f 63 6b 65 74 20 69 6e 74 65 72 2d 0a 20 20 20 20 20 66 61 63 65 73 20 61 72 ┆ Raw socket inter- faces ar┆
0x0ee0…0f00 65 20 70 72 6f 76 69 64 65 64 20 74 6f 20 74 68 65 20 49 50 20 70 72 6f 74 6f 63 6f 6c 20 6c 61 ┆e provided to the IP protocol la┆
0x0f00…0f20 79 65 72 20 6f 66 20 74 68 65 20 44 41 52 50 41 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 49 6e 74 65 ┆yer of the DARPA Inte┆
0x0f20…0f40 72 6e 65 74 2c 20 74 6f 20 74 68 65 20 49 4d 50 20 6c 69 6e 6b 20 6c 61 79 65 72 20 28 31 38 32 ┆rnet, to the IMP link layer (182┆
0x0f40…0f60 32 29 2c 20 61 6e 64 20 74 6f 20 74 68 65 20 49 44 50 20 70 72 6f 2d 0a 20 20 20 20 20 74 6f 63 ┆2), and to the IDP pro- toc┆
0x0f60…0f80 6f 6c 20 6f 66 20 58 65 72 6f 78 20 4e 53 2e 20 20 43 6f 6e 73 75 6c 74 20 74 68 65 20 61 70 70 ┆ol of Xerox NS. Consult the app┆
0x0f80…0fa0 72 6f 70 72 69 61 74 65 20 6d 61 6e 75 61 6c 20 70 61 67 65 73 20 69 6e 0a 20 20 20 20 20 74 68 ┆ropriate manual pages in th┆
0x0fa0…0fc0 69 73 20 73 65 63 74 69 6f 6e 20 66 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 ┆is section for more information ┆
0x0fc0…0fe0 72 65 67 61 72 64 69 6e 67 20 74 68 65 20 73 75 70 70 6f 72 74 20 66 6f 72 0a 20 20 20 20 20 65 ┆regarding the support for e┆
0x0fe0…1000 61 63 68 20 70 72 6f 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 2e 0a 0a 20 20 20 20 20 41 08 41 08 41 ┆ach protocol family. A A A┆
0x1000…1020 08 41 64 08 64 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 65 08 65 08 65 08 65 73 08 ┆ Ad d d dd d d dr r r re e e es ┆
0x1020…1040 73 08 73 08 73 73 08 73 08 73 08 73 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 ┆s s ss s s si i i in n n ng g g ┆
0x1040…1060 67 0a 20 20 20 20 20 41 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 65 61 63 68 20 70 72 6f 74 ┆g Associated with each prot┆
0x1060…1080 6f 63 6f 6c 20 66 61 6d 69 6c 79 20 69 73 20 61 6e 20 61 64 64 72 65 73 73 20 66 6f 72 6d 61 74 ┆ocol family is an address format┆
0x1080…10a0 2e 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 64 64 72 65 73 73 20 66 6f 72 ┆. The following address for┆
0x10a0…10c0 6d 61 74 73 20 61 72 65 20 75 73 65 64 20 62 79 20 74 68 65 20 73 79 73 74 65 6d 20 28 61 6e 64 ┆mats are used by the system (and┆
0x10c0…10e0 0a 20 20 20 20 20 61 64 64 69 74 69 6f 6e 61 6c 20 66 6f 72 6d 61 74 73 20 61 72 65 20 64 65 66 ┆ additional formats are def┆
0x10e0…1100 69 6e 65 64 20 66 6f 72 20 70 6f 73 73 69 62 6c 65 20 66 75 74 75 72 65 20 69 6d 70 6c 65 6d 65 ┆ined for possible future impleme┆
0x1100…1120 6e 2d 0a 20 20 20 20 20 74 61 74 69 6f 6e 29 3a 0a 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 41 ┆n- tation): #define A┆
0x1120…1140 46 5f 55 4e 49 58 20 20 20 20 20 20 20 20 20 20 20 31 20 20 20 20 20 20 2f 2a 20 6c 6f 63 61 6c ┆F_UNIX 1 /* local┆
0x1140…1160 20 74 6f 20 68 6f 73 74 20 28 70 69 70 65 73 2c 20 70 6f 72 74 61 6c 73 29 20 2a 2f 0a 20 20 20 ┆ to host (pipes, portals) */ ┆
0x1160…1180 20 20 23 64 65 66 69 6e 65 20 41 46 5f 49 4e 45 54 20 20 20 20 20 20 20 20 20 20 20 32 20 20 20 ┆ #define AF_INET 2 ┆
0x1180…11a0 20 20 20 2f 2a 20 69 6e 74 65 72 6e 65 74 77 6f 72 6b 3a 20 55 44 50 2c 20 54 43 50 2c 20 65 74 ┆ /* internetwork: UDP, TCP, et┆
0x11a0…11c0 63 2e 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 41 46 5f 49 4d 50 4c 49 4e 4b 20 20 20 ┆c. */ #define AF_IMPLINK ┆
0x11c0…11e0 20 20 20 20 20 33 20 20 20 20 20 20 2f 2a 20 61 72 70 61 6e 65 74 20 69 6d 70 20 61 64 64 72 65 ┆ 3 /* arpanet imp addre┆
0x11e0…1200 73 73 65 73 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 41 46 5f 50 55 50 20 20 20 20 20 ┆sses */ #define AF_PUP ┆
0x1200…1220 20 20 20 20 20 20 20 34 20 20 20 20 20 20 2f 2a 20 70 75 70 20 70 72 6f 74 6f 63 6f 6c 73 3a 20 ┆ 4 /* pup protocols: ┆
0x1220…1240 65 2e 67 2e 20 42 53 50 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 41 46 5f 4e 53 20 20 ┆e.g. BSP */ #define AF_NS ┆
0x1240…1260 20 20 20 20 20 20 20 20 20 20 20 36 20 20 20 20 20 20 2f 2a 20 58 65 72 6f 78 20 4e 53 20 70 72 ┆ 6 /* Xerox NS pr┆
0x1260…1280 6f 74 6f 63 6f 6c 73 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 41 46 5f 48 59 4c 49 4e ┆otocols */ #define AF_HYLIN┆
0x1280…12a0 4b 20 20 20 20 20 20 20 20 20 31 35 20 20 20 20 20 2f 2a 20 4e 53 43 20 48 79 70 65 72 63 68 61 ┆K 15 /* NSC Hypercha┆
0x12a0…12c0 6e 6e 65 6c 20 2a 2f 0a 0a 0a 20 20 20 20 20 52 08 52 08 52 08 52 6f 08 6f 08 6f 08 6f 75 08 75 ┆nnel */ R R R Ro o o ou u┆
0x12c0…12e0 08 75 08 75 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 ┆ u ut t t ti i i in n n ng g g g┆
0x12e0…1300 0a 20 20 20 20 20 54 68 65 20 6e 65 74 77 6f 72 6b 20 66 61 63 69 6c 69 74 69 65 73 20 70 72 6f ┆ The network facilities pro┆
0x1300…1320 76 69 64 65 64 20 6c 69 6d 69 74 65 64 20 70 61 63 6b 65 74 20 72 6f 75 74 69 6e 67 2e 20 20 41 ┆vided limited packet routing. A┆
0x1320…1340 0a 20 20 20 20 20 73 69 6d 70 6c 65 20 73 65 74 20 6f 66 20 64 61 74 61 20 73 74 72 75 63 74 75 ┆ simple set of data structu┆
0x1340…1360 72 65 73 20 63 6f 6d 70 72 69 73 65 20 61 20 60 60 72 6f 75 74 69 6e 67 20 74 61 62 6c 65 27 27 ┆res comprise a ``routing table''┆
0x1360…1380 0a 20 20 20 20 20 75 73 65 64 20 69 6e 20 73 65 6c 65 63 74 69 6e 67 20 74 68 65 20 61 70 70 72 ┆ used in selecting the appr┆
0x1380…13a0 6f 70 72 69 61 74 65 20 6e 65 74 77 6f 72 6b 20 69 6e 74 65 72 66 61 63 65 20 77 68 65 6e 0a 20 ┆opriate network interface when ┆
0x13a0…13c0 20 20 20 20 74 72 61 6e 73 6d 69 74 74 69 6e 67 20 70 61 63 6b 65 74 73 2e 20 20 54 68 69 73 20 ┆ transmitting packets. This ┆
0x13c0…13e0 74 61 62 6c 65 20 63 6f 6e 74 61 69 6e 73 20 61 20 73 69 6e 67 6c 65 20 65 6e 74 72 79 0a 20 20 ┆table contains a single entry ┆
0x13e0…1400 20 20 20 66 6f 72 20 65 61 63 68 20 72 6f 75 74 65 20 74 6f 20 61 20 73 70 65 63 69 66 69 63 20 ┆ for each route to a specific ┆
0x1400…1420 6e 65 74 77 6f 72 6b 20 6f 72 20 68 6f 73 74 2e 20 20 41 20 75 73 65 72 20 70 72 6f 2d 0a 20 20 ┆network or host. A user pro- ┆
0x1420…1440 20 20 20 63 65 73 73 2c 20 74 68 65 20 72 6f 75 74 69 6e 67 20 64 61 65 6d 6f 6e 2c 20 6d 61 69 ┆ cess, the routing daemon, mai┆
0x1440…1460 6e 74 61 69 6e 73 20 74 68 69 73 20 64 61 74 61 20 62 61 73 65 20 77 69 74 68 20 74 68 65 0a 20 ┆ntains this data base with the ┆
0x1460…1480 20 20 20 20 61 69 64 20 6f 66 20 74 77 6f 20 73 6f 63 6b 65 74 2d 73 70 65 63 69 66 69 63 20 5f ┆ aid of two socket-specific _┆
0x1480…14a0 08 69 5f 08 6f 5f 08 63 5f 08 74 5f 08 6c 20 63 6f 6d 6d 61 6e 64 73 2c 20 53 49 4f 43 41 44 44 ┆ i_ o_ c_ t_ l commands, SIOCADD┆
0x14a0…14c0 52 54 20 61 6e 64 0a 20 20 20 20 20 53 49 4f 43 44 45 4c 52 54 2e 20 20 54 68 65 20 63 6f 6d 6d ┆RT and SIOCDELRT. The comm┆
0x14c0…14e0 61 6e 64 73 20 61 6c 6c 6f 77 20 74 68 65 20 61 64 64 69 74 69 6f 6e 20 61 6e 64 20 64 65 6c 65 ┆ands allow the addition and dele┆
0x14e0…1500 74 69 6f 6e 20 6f 66 0a 20 20 20 20 20 61 20 73 69 6e 67 6c 65 20 72 6f 75 74 69 6e 67 20 74 61 ┆tion of a single routing ta┆
0x1500…1520 62 6c 65 20 65 6e 74 72 79 2c 20 72 65 73 70 65 63 74 69 76 65 6c 79 2c 20 62 6f 74 68 20 74 61 ┆ble entry, respectively, both ta┆
0x1520…1540 6b 65 20 61 6e 0a 20 20 20 20 20 72 74 65 6e 74 72 79 20 73 74 72 75 63 74 75 72 65 20 61 73 20 ┆ke an rtentry structure as ┆
0x1540…1560 70 61 72 61 6d 65 74 65 72 2e 20 20 52 6f 75 74 69 6e 67 20 74 61 62 6c 65 20 6d 61 6e 69 70 75 ┆parameter. Routing table manipu┆
0x1560…1580 6c 61 74 69 6f 6e 73 0a 20 20 20 20 20 6d 61 79 20 6f 6e 6c 79 20 62 65 20 63 61 72 72 69 65 64 ┆lations may only be carried┆
0x1580…15a0 20 6f 75 74 20 62 79 20 73 75 70 65 72 2d 75 73 65 72 2e 0a 0a 20 20 20 20 20 41 20 72 6f 75 74 ┆ out by super-user. A rout┆
0x15a0…15c0 69 6e 67 20 74 61 62 6c 65 20 65 6e 74 72 79 20 68 61 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e ┆ing table entry has the followin┆
0x15c0…15e0 67 20 66 6f 72 6d 2c 20 61 73 20 64 65 66 69 6e 65 64 20 69 6e 0a 20 20 20 20 20 3c 20 6e 65 74 ┆g form, as defined in < net┆
0x15e0…1600 2f 72 6f 75 74 65 2e 68 20 3e 20 3a 0a 0a 20 20 20 20 20 73 74 72 75 63 74 20 72 74 65 6e 74 72 ┆/route.h > : struct rtentr┆
0x1600…1620 79 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 6c 6f 6e 67 20 20 20 20 72 74 5f 68 61 73 ┆y { u_long rt_has┆
0x1620…1640 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 20 20 73 6f 63 6b 61 64 64 ┆h; struct sockadd┆
0x1640…1660 72 20 72 74 5f 64 73 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 20 20 ┆r rt_dst; struct ┆
0x1660…1680 73 6f 63 6b 61 64 64 72 20 72 74 5f 67 61 74 65 77 61 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ┆sockaddr rt_gateway; ┆
0x1680…16a0 20 73 68 6f 72 74 20 20 20 20 20 72 74 5f 66 6c 61 67 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ┆ short rt_flags; ┆
0x16a0…16c0 20 73 68 6f 72 74 20 20 20 20 20 72 74 5f 72 65 66 63 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 ┆ short rt_refcnt; ┆
0x16c0…16e0 20 20 75 5f 6c 6f 6e 67 20 20 20 20 72 74 5f 75 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆ u_long rt_use; ┆
0x16e0…1700 73 74 72 75 63 74 20 20 20 20 69 66 6e 65 74 20 2a 72 74 5f 69 66 70 3b 0a 20 20 20 20 20 7d 3b ┆struct ifnet *rt_ifp; };┆
0x1700…1720 0a 0a 0a 20 20 20 20 20 77 69 74 68 20 72 74 5f 66 6c 61 67 73 20 64 65 66 69 6e 65 64 20 66 72 ┆ with rt_flags defined fr┆
0x1720…1740 6f 6d 2c 0a 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 52 54 46 5f 55 50 20 20 20 20 20 20 20 20 ┆om, #define RTF_UP ┆
0x1740…1760 20 20 20 20 30 78 31 20 20 20 20 2f 2a 20 72 6f 75 74 65 20 75 73 61 62 6c 65 20 2a 2f 0a 20 20 ┆ 0x1 /* route usable */ ┆
0x1760…1780 20 20 20 23 64 65 66 69 6e 65 20 52 54 46 5f 47 41 54 45 57 41 59 20 20 20 20 20 20 20 30 78 32 ┆ #define RTF_GATEWAY 0x2┆
0x1780…17a0 20 20 20 20 2f 2a 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 69 73 20 61 20 67 61 74 65 77 61 79 20 ┆ /* destination is a gateway ┆
0x17a0…17c0 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 52 54 46 5f 48 4f 53 54 20 20 20 20 20 20 20 20 ┆*/ #define RTF_HOST ┆
0x17c0…17e0 20 20 30 78 34 20 20 20 20 2f 2a 20 68 6f 73 74 20 65 6e 74 72 79 20 28 6e 65 74 20 6f 74 68 65 ┆ 0x4 /* host entry (net othe┆
0x17e0…1800 72 77 69 73 65 29 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 52 54 46 5f 44 59 4e 41 4d ┆rwise) */ #define RTF_DYNAM┆
0x1800…1820 49 43 20 20 20 20 20 20 20 30 78 31 30 20 20 20 2f 2a 20 63 72 65 61 74 65 64 20 64 79 6e 61 6d ┆IC 0x10 /* created dynam┆
0x1820…1840 69 63 61 6c 6c 79 20 28 62 79 20 72 65 64 69 72 65 63 74 29 20 2a 2f 0a 20 20 20 20 20 23 64 65 ┆ically (by redirect) */ #de┆
0x1840…1860 66 69 6e 65 20 52 54 46 5f 4d 4f 44 49 46 49 45 44 20 20 20 20 20 20 30 78 32 30 20 20 20 2f 2a ┆fine RTF_MODIFIED 0x20 /*┆
0x1860…1880 20 6d 6f 64 69 66 69 65 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 28 62 79 20 72 65 64 69 72 65 ┆ modified dynamically (by redire┆
0x1880…18a0 63 74 29 20 2a 2f 0a 0a 0a 20 20 20 20 20 52 6f 75 74 69 6e 67 20 74 61 62 6c 65 20 65 6e 74 72 ┆ct) */ Routing table entr┆
0x18a0…18c0 69 65 73 20 63 6f 6d 65 20 69 6e 20 74 68 72 65 65 20 66 6c 61 76 6f 72 73 3a 20 66 6f 72 20 61 ┆ies come in three flavors: for a┆
0x18c0…18e0 20 73 70 65 63 69 66 69 63 0a 20 20 20 20 20 68 6f 73 74 2c 20 66 6f 72 20 61 6c 6c 20 68 6f 73 ┆ specific host, for all hos┆
0x18e0…1900 74 73 20 6f 6e 20 61 20 73 70 65 63 69 66 69 63 20 6e 65 74 77 6f 72 6b 2c 20 66 6f 72 20 61 6e ┆ts on a specific network, for an┆
0x1900…1920 79 20 64 65 73 74 69 6e 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 6e 6f 74 20 6d 61 74 63 68 65 64 ┆y destina- tion not matched┆
[…truncated at 200 lines…]