DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: i

⟦2af85a8b5⟧

    Length: 5670 (0x1626)
    Names: »idp.4p«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat4/idp.4p« 

Default Hex Dump

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 20 20 69 64 70 28 34 70 29 0a 0a 0a 0a   ┆lities               idp(4p)    ┆
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 69 64 70 20 2d 20 58 65 72 6f 78 20 49 6e 74 65 72 6e 65 74 20 44 61 74 61 67 72 61 6d 20   ┆  idp - Xerox Internet Datagram ┆
0x00a0…00c0 50 72 6f 74 6f 63 6f 6c 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54   ┆Protocol  S S S SY Y Y YN N N NT┆
0x00c0…00e0 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08   ┆ T T TA A A AX X X X      # # # ┆
0x00e0…0100 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 08 75   ┆#i i i in n n nc c c cl l l lu u┆
0x0100…0120 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 73 08 73 08 73 08   ┆ u ud d d de e e e < < < <s s s ┆
0x0120…0140 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79   ┆sy y y ys s s s/ / / /t t t ty y┆
0x0140…0160 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e   ┆ y yp p p pe e e es s s s. . . .┆
0x0160…0180 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69   ┆h h h h> > > >      # # # #i i i┆
0x0180…01a0 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08   ┆ in n n nc c c cl l l lu u u ud ┆
0x01a0…01c0 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79   ┆d d de e e e < < < <s s s sy y y┆
0x01c0…01e0 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 63 08   ┆ ys s s s/ / / /s s s so o o oc ┆
0x01e0…0200 63 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 74 2e 08 2e 08 2e 08   ┆c c ck k k ke e e et t t t. . . ┆
0x0200…0220 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 23 08 23 69 08 69 08   ┆.h h h h> > > >      # # # #i i ┆
0x0220…0240 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 08 75 08 75 08 75 64   ┆i in n n nc c c cl l l lu u u ud┆
0x0240…0260 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 6e 08 6e 65 08 65 08   ┆ d d de e e e < < < <n n n ne e ┆
0x0260…0280 65 08 65 74 08 74 08 74 08 74 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 6e   ┆e et t t tn n n ns s s s/ / / /n┆
0x0280…02a0 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e   ┆ n n ns s s s. . . .h h h h> > >┆
0x02a0…02c0 08 3e 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   ┆ >      # # # #i i i in n n nc c┆
0x02c0…02e0 08 63 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   ┆ c cl l l lu u u ud d d de e e e┆
0x02e0…0300 20 3c 08 3c 08 3c 08 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 74 08 74 08 74 08 74 6e 08 6e   ┆ < < < <n n n ne e e et t t tn n┆
0x0300…0320 08 6e 08 6e 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 69 08 69 08 69 08 69 64 08 64 08 64 08 64   ┆ n ns s s s/ / / /i i i id d d d┆
0x0320…0340 70 08 70 08 70 08 70 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20   ┆p p p p. . . .h h h h> > > >    ┆
0x0340…0360 20 20 20 73 08 73 08 73 08 73 20 3d 08 3d 08 3d 08 3d 20 73 08 73 08 73 08 73 6f 08 6f 08 6f 08   ┆   s s s s = = = = s s s so o o ┆
0x0360…0380 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 74 08 74 08 74 08 74 28 08 28   ┆oc c c ck k k ke e e et t t t( (┆
0x0380…03a0 08 28 08 28 41 08 41 08 41 08 41 46 08 46 08 46 08 46 5f 08 5f 08 5f 08 5f 4e 08 4e 08 4e 08 4e   ┆ ( (A A A AF F F F_ _ _ _N N N N┆
0x03a0…03c0 53 08 53 08 53 08 53 2c 08 2c 08 2c 08 2c 20 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 43 08 43   ┆S S S S, , , , S S S SO O O OC C┆
0x03c0…03e0 08 43 08 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08 5f 44 08 44 08 44 08 44 47 08 47 08 47 08 47   ┆ C CK K K K_ _ _ _D D D DG G G G┆
0x03e0…0400 52 08 52 08 52 08 52 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 2c 08 2c 08 2c 08 2c 20 30 08 30   ┆R R R RA A A AM M M M, , , , 0 0┆
0x0400…0420 08 30 08 30 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45   ┆ 0 0) ) ) ); ; ; ;  D D D DE E E┆
0x0420…0440 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08   ┆ ES S S SC C C CR R R RI I I IP ┆
0x0440…0460 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08   ┆P P PT T T TI I I IO O O ON N N ┆
0x0460…0480 4e 0a 20 20 20 20 20 49 44 50 20 69 73 20 61 20 73 69 6d 70 6c 65 2c 20 75 6e 72 65 6c 69 61 62   ┆N      IDP is a simple, unreliab┆
0x0480…04a0 6c 65 20 64 61 74 61 67 72 61 6d 20 70 72 6f 74 6f 63 6f 6c 20 77 68 69 63 68 20 69 73 20 75 73   ┆le datagram protocol which is us┆
0x04a0…04c0 65 64 0a 20 20 20 20 20 74 6f 20 73 75 70 70 6f 72 74 20 74 68 65 20 53 4f 43 4b 5f 44 47 52 41   ┆ed      to support the SOCK_DGRA┆
0x04c0…04e0 4d 20 61 62 73 74 72 61 63 74 69 6f 6e 20 66 6f 72 20 74 68 65 20 49 6e 74 65 72 6e 65 74 20 70   ┆M abstraction for the Internet p┆
0x04e0…0500 72 6f 2d 0a 20 20 20 20 20 74 6f 63 6f 6c 20 66 61 6d 69 6c 79 2e 20 20 49 44 50 20 73 6f 63 6b   ┆ro-      tocol family.  IDP sock┆
0x0500…0520 65 74 73 20 61 72 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 6c 65 73 73 2c 20 61 6e 64 20 61 72 65 20   ┆ets are connectionless, and are ┆
0x0520…0540 6e 6f 72 2d 0a 20 20 20 20 20 6d 61 6c 6c 79 20 75 73 65 64 20 77 69 74 68 20 74 68 65 20 5f 08   ┆nor-      mally used with the _ ┆
0x0540…0560 73 5f 08 65 5f 08 6e 5f 08 64 5f 08 74 5f 08 6f 20 61 6e 64 20 5f 08 72 5f 08 65 5f 08 63 5f 08   ┆s_ e_ n_ d_ t_ o and _ r_ e_ c_ ┆
0x0560…0580 76 5f 08 66 5f 08 72 5f 08 6f 5f 08 6d 20 63 61 6c 6c 73 2c 20 74 68 6f 75 67 68 20 74 68 65 0a   ┆v_ f_ r_ o_ m calls, though the ┆
0x0580…05a0 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6e 5f 08 6e 5f 08 65 5f 08 63 5f 08 74 20 63 61 6c 6c 20   ┆     _ c_ o_ n_ n_ e_ c_ t call ┆
0x05a0…05c0 6d 61 79 20 61 6c 73 6f 20 62 65 20 75 73 65 64 20 74 6f 20 66 69 78 20 74 68 65 20 64 65 73 74   ┆may also be used to fix the dest┆
0x05c0…05e0 69 6e 61 74 69 6f 6e 20 66 6f 72 0a 20 20 20 20 20 66 75 74 75 72 65 20 70 61 63 6b 65 74 73 20   ┆ination for      future packets ┆
0x05e0…0600 28 69 6e 20 77 68 69 63 68 20 63 61 73 65 20 74 68 65 20 5f 08 72 5f 08 65 5f 08 63 5f 08 76 20   ┆(in which case the _ r_ e_ c_ v ┆
0x0600…0620 6f 72 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 6e 5f 08 64   ┆or _ r_ e_ a_ d and _ s_ e_ n_ d┆
0x0620…0640 20 6f 72 0a 20 20 20 20 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 20 73 79 73 74 65 6d 20   ┆ or      _ w_ r_ i_ t_ e system ┆
0x0640…0660 63 61 6c 6c 73 20 6d 61 79 20 62 65 20 75 73 65 64 29 2e 0a 0a 20 20 20 20 20 58 65 72 6f 78 20   ┆calls may be used).       Xerox ┆
0x0660…0680 70 72 6f 74 6f 63 6f 6c 73 20 61 72 65 20 62 75 69 6c 74 20 76 65 72 74 69 63 61 6c 6c 79 20 6f   ┆protocols are built vertically o┆
0x0680…06a0 6e 20 74 6f 70 20 6f 66 20 49 44 50 2e 20 20 54 68 75 73 2c 0a 20 20 20 20 20 49 44 50 20 61 64   ┆n top of IDP.  Thus,      IDP ad┆
0x06a0…06c0 64 72 65 73 73 20 66 6f 72 6d 61 74 73 20 61 72 65 20 69 64 65 6e 74 69 63 61 6c 20 74 6f 20 74   ┆dress formats are identical to t┆
0x06c0…06e0 68 6f 73 65 20 75 73 65 64 20 62 79 20 53 50 50 2e 0a 20 20 20 20 20 4e 6f 74 65 20 74 68 61 74   ┆hose used by SPP.      Note that┆
0x06e0…0700 20 74 68 65 20 49 44 50 20 70 6f 72 74 20 73 70 61 63 65 20 69 73 20 74 68 65 20 73 61 6d 65 20   ┆ the IDP port space is the same ┆
0x0700…0720 61 73 20 74 68 65 20 53 50 50 20 70 6f 72 74 0a 20 20 20 20 20 73 70 61 63 65 20 28 69 2e 65 2e   ┆as the SPP port      space (i.e.┆
0x0720…0740 20 61 20 49 44 50 20 70 6f 72 74 20 6d 61 79 20 62 65 20 22 63 6f 6e 6e 65 63 74 65 64 22 20 74   ┆ a IDP port may be "connected" t┆
0x0740…0760 6f 20 61 20 53 50 50 20 70 6f 72 74 2c 0a 20 20 20 20 20 77 69 74 68 20 63 65 72 74 61 69 6e 20   ┆o a SPP port,      with certain ┆
0x0760…0780 6f 70 74 69 6f 6e 73 20 65 6e 61 62 6c 65 64 20 62 65 6c 6f 77 29 2e 20 20 49 6e 20 61 64 64 69   ┆options enabled below).  In addi┆
0x0780…07a0 74 69 6f 6e 20 62 72 6f 61 64 63 61 73 74 0a 20 20 20 20 20 70 61 63 6b 65 74 73 20 6d 61 79 20   ┆tion broadcast      packets may ┆
0x07a0…07c0 62 65 20 73 65 6e 74 20 28 61 73 73 75 6d 69 6e 67 20 74 68 65 20 75 6e 64 65 72 6c 79 69 6e 67   ┆be sent (assuming the underlying┆
0x07c0…07e0 20 6e 65 74 77 6f 72 6b 20 73 75 70 2d 0a 20 20 20 20 20 70 6f 72 74 73 20 74 68 69 73 29 20 62   ┆ network sup-      ports this) b┆
0x07e0…0800 79 20 75 73 69 6e 67 20 61 20 72 65 73 65 72 76 65 64 20 22 62 72 6f 61 64 63 61 73 74 20 61 64   ┆y using a reserved "broadcast ad┆
0x0800…0820 64 72 65 73 73 22 3b 20 74 68 69 73 0a 20 20 20 20 20 61 64 64 72 65 73 73 20 69 73 20 6e 65 74   ┆dress"; this      address is net┆
0x0820…0840 77 6f 72 6b 20 69 6e 74 65 72 66 61 63 65 20 64 65 70 65 6e 64 65 6e 74 2e 0a 0a 20 20 20 20 20   ┆work interface dependent.       ┆
0x0840…0860 53 08 53 08 53 08 53 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   ┆S S S So o o oc c c ck k k ke e ┆
0x0860…0880 65 08 65 74 08 74 08 74 08 74 20 4f 08 4f 08 4f 08 4f 70 08 70 08 70 08 70 74 08 74 08 74 08 74   ┆e et t t t O O O Op p p pt t t t┆
0x0880…08a0 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 0a 20 20 20   ┆i i i io o o on n n ns s s s    ┆
0x08a0…08c0 20 20 4f 70 74 69 6f 6e 73 20 61 72 65 20 73 65 74 20 77 69 74 68 20 5f 08 73 5f 08 65 5f 08 74   ┆  Options are set with _ s_ e_ t┆
0x08c0…08e0 5f 08 73 5f 08 6f 5f 08 63 5f 08 6b 5f 08 6f 5f 08 70 5f 08 74 20 61 6e 64 20 65 78 61 6d 69 6e   ┆_ s_ o_ c_ k_ o_ p_ t and examin┆
0x08e0…0900 65 64 20 77 69 74 68 20 5f 08 67 5f 08 65 5f 08 74 5f 08 2d 0a 20 20 20 20 20 5f 08 73 5f 08 6f   ┆ed with _ g_ e_ t_ -      _ s_ o┆
0x0900…0920 5f 08 63 5f 08 6b 5f 08 6f 5f 08 70 5f 08 74 2e 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20   ┆_ c_ k_ o_ p_ t.  The following ┆
0x0920…0940 6f 70 74 69 6f 6e 73 20 61 72 65 20 73 75 70 70 6f 72 74 65 64 2e 0a 0a 20 20 20 20 20 53 4f 5f   ┆options are supported.       SO_┆
0x0940…0960 48 45 41 44 45 52 53 5f 4f 4e 5f 49 4e 50 55 54 0a 20 20 20 20 20 20 20 20 20 20 57 68 65 6e 20   ┆HEADERS_ON_INPUT           When ┆
0x0960…0980 73 65 74 2c 20 74 68 65 20 66 69 72 73 74 20 33 30 20 62 79 74 65 73 20 6f 66 20 61 6e 79 20 64   ┆set, the first 30 bytes of any d┆
0x0980…09a0 61 74 61 20 72 65 74 75 72 6e 65 64 20 66 72 6f 6d 0a 20 20 20 20 20 20 20 20 20 20 61 20 72 65   ┆ata returned from           a re┆
0x09a0…09c0 61 64 20 6f 72 20 72 65 63 76 20 66 72 6f 6d 20 77 69 6c 6c 20 62 65 20 74 68 65 20 69 6e 69 74   ┆ad or recv from will be the init┆
0x09c0…09e0 69 61 6c 20 33 30 20 62 79 74 65 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 49 44   ┆ial 30 bytes of the           ID┆
0x09e0…0a00 50 20 70 61 63 6b 65 74 2c 20 61 73 20 64 65 73 63 72 69 62 65 64 20 62 79 0a 0a 20 20 20 20 20   ┆P packet, as described by       ┆
0x0a00…0a20 20 20 20 20 20 73 74 72 75 63 74 20 69 64 70 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆     struct idp {               ┆
0x0a20…0a40 20 20 20 20 75 5f 73 68 6f 72 74 20 69 64 70 5f 73 75 6d 3b 20 20 2f 2a 20 43 68 65 63 6b 73 75   ┆    u_short idp_sum;  /* Checksu┆
0x0a40…0a60 6d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 73 68 6f 72 74 20 69   ┆m */                   u_short i┆
0x0a60…0a80 64 70 5f 6c 65 6e 3b 20 20 2f 2a 20 4c 65 6e 67 74 68 2c 20 69 6e 20 62 79 74 65 73 2c 20 69 6e   ┆dp_len;  /* Length, in bytes, in┆
0x0a80…0aa0 63 6c 2e 20 68 65 61 64 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆cl. header */                   ┆
0x0aa0…0ac0 75 5f 63 68 61 72 20 20 69 64 70 5f 74 63 3b 20 20 20 2f 2a 20 54 72 61 6e 73 70 6f 72 74 20 43   ┆u_char  idp_tc;   /* Transport C┆
0x0ac0…0ae0 6f 6e 74 72 6f 6c 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 5f 63 68   ┆ontrol */                   u_ch┆
0x0ae0…0b00 61 72 20 20 69 64 70 5f 70 74 3b 20 20 20 2f 2a 20 50 61 63 6b 65 74 20 54 79 70 65 20 2a 2f 0a   ┆ar  idp_pt;   /* Packet Type */ ┆
0x0b00…0b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 6e 73 5f 61 64 64   ┆                  struct  ns_add┆
0x0b20…0b40 72 20 69 64 70 5f 64 6e 61 3b 20 2f 2a 20 44 65 73 74 2e 20 4e 65 74 77 6f 72 6b 20 41 64 64 72   ┆r idp_dna; /* Dest. Network Addr┆
0x0b40…0b60 2e 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 6e   ┆. */                   struct  n┆
0x0b60…0b80 73 5f 61 64 64 72 20 69 64 70 5f 73 6e 61 3b 20 2f 2a 20 53 6f 75 72 63 65 20 4e 65 74 77 6f 72   ┆s_addr idp_sna; /* Source Networ┆
0x0b80…0ba0 6b 20 41 64 64 72 2e 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 20 20   ┆k Addr. */           };         ┆
0x0ba0…0bc0 20 20 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 74 68 65 20 75 73 65 72 20 74 6f 20 64 65 74 65 72   ┆   This allows the user to deter┆
0x0bc0…0be0 6d 69 6e 65 20 74 68 65 20 70 61 63 6b 65 74 20 74 79 70 65 2c 20 61 6e 64 0a 20 20 20 20 20 20   ┆mine the packet type, and       ┆
0x0be0…0c00 20 20 20 20 77 68 65 74 68 65 72 20 74 68 65 20 70 61 63 6b 65 74 20 77 61 73 20 61 20 6d 75 6c   ┆    whether the packet was a mul┆
0x0c00…0c20 74 69 2d 63 61 73 74 20 70 61 63 6b 65 74 20 6f 72 20 64 69 72 65 63 74 65 64 0a 20 20 20 20 20   ┆ti-cast packet or directed      ┆
0x0c20…0c40 20 20 20 20 20 73 70 65 63 69 66 69 63 61 6c 6c 79 20 61 74 20 74 68 65 20 6c 6f 63 61 6c 20 68   ┆     specifically at the local h┆
0x0c40…0c60 6f 73 74 2e 20 20 57 68 65 6e 20 72 65 71 75 65 73 74 65 64 2c 20 67 69 76 65 73 0a 20 20 20 20   ┆ost.  When requested, gives     ┆
0x0c60…0c80 20 20 20 20 20 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 20 6f 66 20 74 68 65 20 6f   ┆      the current state of the o┆
0x0c80…0ca0 70 74 69 6f 6e 2c 20 28 4e 53 50 5f 52 41 57 49 4e 20 6f 72 20 30 29 2e 0a 0a 20 20 20 20 20 53   ┆ption, (NSP_RAWIN or 0).       S┆
0x0ca0…0cc0 4f 5f 48 45 41 44 45 52 53 5f 4f 4e 5f 4f 55 54 50 55 54 0a 20 20 20 20 20 20 20 20 20 20 57 68   ┆O_HEADERS_ON_OUTPUT           Wh┆
0x0cc0…0ce0 65 6e 20 73 65 74 2c 20 74 68 65 20 66 69 72 73 74 20 33 30 20 62 79 74 65 73 20 6f 66 20 61 6e   ┆en set, the first 30 bytes of an┆
0x0ce0…0d00 79 20 64 61 74 61 20 73 65 6e 74 20 77 69 6c 6c 20 62 65 0a 20 20 20 20 20 20 20 20 20 20 74 68   ┆y data sent will be           th┆
0x0d00…0d20 65 20 69 6e 69 74 69 61 6c 20 33 30 20 62 79 74 65 73 20 6f 66 20 74 68 65 20 49 44 50 20 70 61   ┆e initial 30 bytes of the IDP pa┆
0x0d20…0d40 63 6b 65 74 2e 20 20 54 68 69 73 20 61 6c 6c 6f 77 73 0a 20 20 20 20 20 20 20 20 20 20 74 68 65   ┆cket.  This allows           the┆
0x0d40…0d60 20 75 73 65 72 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 74 68 65 20 70 61 63 6b 65 74 20 74 79   ┆ user to determine the packet ty┆
0x0d60…0d80 70 65 2c 20 61 6e 64 20 77 68 65 74 68 65 72 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 70 61   ┆pe, and whether the           pa┆
0x0d80…0da0 63 6b 65 74 20 73 68 6f 75 6c 64 20 62 65 20 6d 75 6c 74 69 2d 63 61 73 74 20 70 61 63 6b 65 74   ┆cket should be multi-cast packet┆
0x0da0…0dc0 20 6f 72 20 64 69 72 65 63 74 65 64 20 73 70 65 63 69 66 69 2d 0a 20 20 20 20 20 20 20 20 20 20   ┆ or directed specifi-           ┆
0x0dc0…0de0 63 61 6c 6c 79 20 61 74 20 74 68 65 20 6c 6f 63 61 6c 20 68 6f 73 74 2e 20 20 59 6f 75 20 63 61   ┆cally at the local host.  You ca┆
0x0de0…0e00 6e 20 61 6c 73 6f 20 6d 69 73 72 65 70 72 65 73 65 6e 74 20 74 68 65 0a 20 20 20 20 20 20 20 20   ┆n also misrepresent the         ┆
0x0e00…0e20 20 20 73 65 6e 64 65 72 20 6f 66 20 74 68 65 20 70 61 63 6b 65 74 2e 20 20 57 68 65 6e 20 72 65   ┆  sender of the packet.  When re┆
0x0e20…0e40 71 75 65 73 74 65 64 2c 20 67 69 76 65 73 20 74 68 65 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20   ┆quested, gives the              ┆
0x0e40…0e60 20 20 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 20 6f 66 20 74 68 65 20 6f 70 74 69 6f 6e 2c 20   ┆   current state of the option, ┆
0x0e60…0e80 28 4e 53 50 5f 52 41 57 4f 55 54 20 6f 72 20 30 29 2e 0a 0a 20 20 20 20 20 53 4f 5f 44 45 46 41   ┆(NSP_RAWOUT or 0).       SO_DEFA┆
0x0e80…0ea0 55 4c 54 5f 48 45 41 44 45 52 53 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 75 73 65 72 20 70   ┆ULT_HEADERS           The user p┆
0x0ea0…0ec0 72 6f 76 69 64 65 73 20 74 68 65 20 6b 65 72 6e 65 6c 20 61 6e 20 49 44 50 20 68 65 61 64 65 72   ┆rovides the kernel an IDP header┆
0x0ec0…0ee0 2c 20 66 72 6f 6d 20 77 68 69 63 68 0a 20 20 20 20 20 20 20 20 20 20 69 74 20 67 6c 65 61 6e 73   ┆, from which           it gleans┆
0x0ee0…0f00 20 74 68 65 20 50 61 63 6b 65 74 20 54 79 70 65 2e 20 20 57 68 65 6e 20 72 65 71 75 65 73 74 65   ┆ the Packet Type.  When requeste┆
0x0f00…0f20 64 2c 20 74 68 65 20 6b 65 72 6e 65 6c 0a 20 20 20 20 20 20 20 20 20 20 77 69 6c 6c 20 70 72 6f   ┆d, the kernel           will pro┆
0x0f20…0f40 76 69 64 65 20 61 6e 20 49 44 50 20 68 65 61 64 65 72 2c 20 73 68 6f 77 69 6e 67 20 74 68 65 20   ┆vide an IDP header, showing the ┆
0x0f40…0f60 64 65 66 61 75 6c 74 20 70 61 63 6b 65 74 0a 20 20 20 20 20 20 20 20 20 20 74 79 70 65 2c 20 61   ┆default packet           type, a┆
0x0f60…0f80 6e 64 20 6c 6f 63 61 6c 20 61 6e 64 20 66 6f 72 65 69 67 6e 20 61 64 64 72 65 73 73 65 73 2c 20   ┆nd local and foreign addresses, ┆
0x0f80…0fa0 69 66 20 63 6f 6e 6e 65 63 74 65 64 2e 0a 0a 20 20 20 20 20 53 4f 5f 41 4c 4c 5f 50 41 43 4b 45   ┆if connected.       SO_ALL_PACKE┆
0x0fa0…0fc0 54 53 0a 20 20 20 20 20 20 20 20 20 20 57 68 65 6e 20 73 65 74 2c 20 74 68 69 73 20 6f 70 74 69   ┆TS           When set, this opti┆
0x0fc0…0fe0 6f 6e 20 64 65 66 65 61 74 73 20 61 75 74 6f 6d 61 74 69 63 20 70 72 6f 63 65 73 73 69 6e 67 20   ┆on defeats automatic processing ┆
0x0fe0…1000 6f 66 0a 20 20 20 20 20 20 20 20 20 20 45 72 72 6f 72 20 70 61 63 6b 65 74 73 2c 20 61 6e 64 20   ┆of           Error packets, and ┆
0x1000…1020 53 65 71 75 65 6e 63 65 20 50 72 6f 74 6f 63 6f 6c 20 70 61 63 6b 65 74 73 2e 0a 0a 20 20 20 20   ┆Sequence Protocol packets.      ┆
0x1020…1040 20 53 4f 5f 53 45 51 4e 4f 0a 20 20 20 20 20 20 20 20 20 20 57 68 65 6e 20 72 65 71 75 65 73 74   ┆ SO_SEQNO           When request┆
0x1040…1060 65 64 2c 20 74 68 69 73 20 72 65 74 75 72 6e 73 20 61 20 73 65 71 75 65 6e 63 65 20 6e 75 6d 62   ┆ed, this returns a sequence numb┆
0x1060…1080 65 72 20 77 68 69 63 68 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 6e 6f 74 20 6c 69 6b 65 6c 79   ┆er which is           not likely┆
0x1080…10a0 20 74 6f 20 62 65 20 72 65 70 65 61 74 65 64 20 75 6e 74 69 6c 20 74 68 65 20 6d 61 63 68 69 6e   ┆ to be repeated until the machin┆
0x10a0…10c0 65 20 63 72 61 73 68 65 73 20 6f 72 0a 20 20 20 20 20 20 20 20 20 20 61 20 76 65 72 79 20 6c 6f   ┆e crashes or           a very lo┆
0x10c0…10e0 6e 67 20 74 69 6d 65 20 68 61 73 20 70 61 73 73 65 64 2e 20 20 49 74 20 69 73 20 75 73 65 66 75   ┆ng time has passed.  It is usefu┆
0x10e0…1100 6c 20 69 6e 20 63 6f 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 69 6e 67 20 50 61   ┆l in con-           structing Pa┆
0x1100…1120 63 6b 65 74 20 45 78 63 68 61 6e 67 65 20 50 72 6f 74 6f 63 6f 6c 20 70 61 63 6b 65 74 73 2e 0a   ┆cket Exchange Protocol packets. ┆
0x1120…1140 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e   ┆ D D D DI I I IA A A AG G G GN N┆
0x1140…1160 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49   ┆ N NO O O OS S S ST T T TI I I I┆
0x1160…1180 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 20 73 6f 63 6b 65 74 20 6f 70 65   ┆C C C CS S S S      A socket ope┆
0x1180…11a0 72 61 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c 20 77 69 74 68 20 6f 6e 65 20 6f 66 20 74 68 65 20   ┆ration may fail with one of the ┆
0x11a0…11c0 66 6f 6c 6c 6f 77 69 6e 67 20 65 72 72 6f 72 73 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 3a 0a   ┆following errors      returned: ┆
0x11c0…11e0 0a 20 20 20 20 20 5b 45 49 53 43 4f 4e 4e 5d 20 20 20 20 20 20 20 77 68 65 6e 20 74 72 79 69 6e   ┆      [EISCONN]       when tryin┆
0x11e0…1200 67 20 74 6f 20 65 73 74 61 62 6c 69 73 68 20 61 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 6f 6e 20 61   ┆g to establish a connection on a┆
0x1200…1220 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 6f 63 6b 65 74 20 77 68 69   ┆                      socket whi┆
0x1220…1240 63 68 20 61 6c 72 65 61 64 79 20 68 61 73 20 6f 6e 65 2c 20 6f 72 20 77 68 65 6e 20 74 72 79 69   ┆ch already has one, or when tryi┆
0x1240…1260 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 73 65 6e 64 20   ┆ng                      to send ┆
0x1260…1280 61 20 64 61 74 61 67 72 61 6d 20 77 69 74 68 20 74 68 65 20 64 65 73 74 69 6e 61 74 69 6f 6e 0a   ┆a datagram with the destination ┆
0x1280…12a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 65 73 73 20 73 70 65   ┆                     address spe┆
0x12a0…12c0 63 69 66 69 65 64 20 61 6e 64 20 74 68 65 20 73 6f 63 6b 65 74 20 69 73 20 61 6c 72 65 61 64 79   ┆cified and the socket is already┆
0x12c0…12e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 6e 65 63 74 65 64 3b   ┆                      connected;┆
0x12e0…1300 0a 0a 20 20 20 20 20 5b 45 4e 4f 54 43 4f 4e 4e 5d 20 20 20 20 20 20 77 68 65 6e 20 74 72 79 69   ┆       [ENOTCONN]      when tryi┆
0x1300…1320 6e 67 20 74 6f 20 73 65 6e 64 20 61 20 64 61 74 61 67 72 61 6d 2c 20 62 75 74 20 6e 6f 20 64 65   ┆ng to send a datagram, but no de┆
0x1320…1340 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6e 61 74 69 6f 6e   ┆s-                      tination┆
0x1340…1360 20 61 64 64 72 65 73 73 20 69 73 20 73 70 65 63 69 66 69 65 64 2c 20 61 6e 64 20 74 68 65 0a 20   ┆ address is specified, and the  ┆
0x1360…1380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 6f 63 6b 65 74 20 68 61 73 6e 27   ┆                    socket hasn'┆
0x1380…13a0 74 20 62 65 65 6e 20 63 6f 6e 6e 65 63 74 65 64 3b 0a 0a 20 20 20 20 20 5b 45 4e 4f 42 55 46 53   ┆t been connected;       [ENOBUFS┆
0x13a0…13c0 5d 20 20 20 20 20 20 20 77 68 65 6e 20 74 68 65 20 73 79 73 74 65 6d 20 72 75 6e 73 20 6f 75 74   ┆]       when the system runs out┆
0x13c0…13e0 20 6f 66 20 6d 65 6d 6f 72 79 20 66 6f 72 20 61 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ of memory for an               ┆
0x13e0…1400 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 3b 0a   ┆       internal data structure; ┆
0x1400…1420 0a 20 20 20 20 20 5b 45 41 44 44 52 49 4e 55 53 45 5d 20 20 20 20 77 68 65 6e 20 61 6e 20 61 74   ┆      [EADDRINUSE]    when an at┆
0x1420…1440 74 65 6d 70 74 20 69 73 20 6d 61 64 65 20 74 6f 20 63 72 65 61 74 65 20 61 20 73 6f 63 6b 65 74   ┆tempt is made to create a socket┆
0x1440…1460 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 74 68 20 61 20 70 6f 72   ┆                      with a por┆
0x1460…1480 74 20 77 68 69 63 68 20 68 61 73 20 61 6c 72 65 61 64 79 20 62 65 65 6e 20 61 6c 6c 6f 2d 0a 20   ┆t which has already been allo-  ┆
0x1480…14a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 65 64 3b 0a 0a 20 20 20 20   ┆                    cated;      ┆
0x14a0…14c0 20 5b 45 41 44 44 52 4e 4f 54 41 56 41 49 4c 5d 20 77 68 65 6e 20 61 6e 20 61 74 74 65 6d 70 74   ┆ [EADDRNOTAVAIL] when an attempt┆
0x14c0…14e0 20 69 73 20 6d 61 64 65 20 74 6f 20 63 72 65 61 74 65 20 61 20 73 6f 63 6b 65 74 0a 20 20 20 20   ┆ is made to create a socket     ┆
0x14e0…1500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 74 68 20 61 20 6e 65 74 77 6f 72 6b 20   ┆                 with a network ┆
0x1500…1520 61 64 64 72 65 73 73 20 66 6f 72 20 77 68 69 63 68 20 6e 6f 20 6e 65 74 77 6f 72 6b 0a 20 20 20   ┆address for which no network    ┆
0x1520…1540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 65 72 66 61 63 65 20 65 78 69 73   ┆                  interface exis┆
0x1540…1560 74 73 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41   ┆ts.  S S S SE E E EE E E E A A A┆
0x1560…1580 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73   ┆ AL L L LS S S SO O O O      Sys┆
0x1580…15a0 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 67 65 74 73 6f 63 6b 6f 70 74 2c 20 73 65 6e 64   ┆tem Calls (2):  getsockopt, send┆
0x15a0…15c0 2c 20 72 65 63 76 0a 20 20 20 20 20 44 65 76 69 63 65 73 20 61 6e 64 20 46 61 63 69 6c 69 74 69   ┆, recv      Devices and Faciliti┆
0x15c0…15e0 65 73 20 28 34 29 3a 20 20 69 6e 74 72 6f 28 34 6e 29 2c 20 6e 73 0a 0a 44 65 63 65 6d 62 65 72   ┆es (4):  intro(4n), ns  December┆
0x15e0…1600 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ 1989                           ┆
0x1600…1620 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a   ┆TX Programmer's Reference       ┆
0x1620…1626 0a 0a 0a 0a 0a 0a                                                                                 ┆      ┆