⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ip.4

📁 Unix操作系统minix 2.0源码
💻 4
📖 第 1 页 / 共 5 页
字号:
1181(tcp)S1332(channel)S1673(is)S1768(considered)S2232(con\256gured)S2690(when)S2936(one)S3110(\257ag)S3290(in)S(each)185 3397 A3611(category)S3987(has)S4150(been)S4369(selected.)S4773(Thus)S5003(one)S5177(of)S7248 V10 B1080(NWTC_EXCL)S10 R1723(,)S10 B1888(NWTC_SHARED)S10 R2811(or)S10 B3035(NWTC_COPY)S10 R3684(,)S3849(one)S4134(of)S10 B4358(NWTC_LP_UNSET)S10 R5236(,)S7368 V10 B1080(NWTC_LP_SET)S10 R1837(or)S10 B1946(NWTC_LP_SEL)S10 R2678(,)S2728(one)S2898(of)S10 B3007(NWTC_SET_RA)S10 R3781(or)S10 B3890(NWTC_UNSET_RA)S10 R4785(,)S4835(and)S5006(one)S5177(of)S7488 V10 B1080(NWTC_SET_RP)S10 R1843(or)S10 B1952(NWTC_UNSET_RP)S10 R2836(.)S7903 V720(Page)S941(7)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 8 8BP/slant 0 def/height 0 def480 V10 R720(IP)S818(\()S860(4)S918(\))S2696(Eighth)S(Edition)296 2989 A5029(IP)S5127(\()S5169(4)S5227(\))S960 V1080(The)S(acc)135 1272 A1442(\257ags)S1667(control)S1987(the)S(access)258 2145 A2438(to)S2551(a)S2631(certain)S2941(TCP)S3161(port.)S10 B3408(NWTC_EXCL)S10 R4086(means)S4378(exclusive)S(access.)283 4794 A5138(An)S1080 V1080(attempt)S1421(to)S1538(con\256gure)S1957(a)S2041(channel)S(will)157 2393 A2589(be)S2723(denied)S3030(if)S3131(the)S3293(same)S3539(port)S3740(is)S3846(speci\256ed)S4243(as)S4365(that)S4554(of)S4676(a)S4759(channel)S5110(that)S1200 V1080(requested)S1501(exclusive)S(access.)283 1916 A10 B2259(NWTC_SHARED)S10 R3077(indicates)S3470(that)S3656(several)S3977(channels)S4364(use)S4533(the)S4692(same)S4935(port)S5133(but)S1320 V(cooperate.)417 1080 A1550(If)S1646(the)S1797(shared)S2088(mode)S2338(is)S2432(speci\256ed)S2817(for)S2962(one)S3134(channel)S3474(than)S3674(all)S3802(other)S4036(channel)S4376(that)S4554(use)S4715(the)S4865(same)S5099(port)S1440 V(should)267 1080 A1374(also)S1563(be)S1685(con\256gured)S2142(with)S2348(the)S10 B2498(NWTC_SHARED)S10 R3309(\257ag.)S10 B3538(NWTC_COPY)S10 R4215(is)S4310(speci\256ed)S4696(when)S4942(the)S5093(pro-)S1560 V1080(grammer)S1469(does)S1678(not)S1831(care)S(about)223 2025 A2273(other)S2505(channels.)S2932(This)S3136(is)S3228(the)S3376(default.)S1728 V1080(The)S1269(locport)S1586(\257ags)S1808(control)S2125(which)S2403(TCP)S2621(port)S2816(is)S2916(used)S3133(for)S3284(communication.)S10 B3992(NWTC_LP_UNSET)S10 R4903(indicates)S1848 V1080(the)S1236(absence)S1588(of)S1705(a)S1783(local)S2012(port.)S2257(This)S2469(is)S2569(the)S2725(default.)S10 B3088(NWTC_LP_SET)S10 R3853(means)S4143(that)S4327(the)S10 B4483(nwtc_locport)S10 R5082(\256eld)S1968 V1080(contains)S1451(the)S1610(local)S1842(port)S2040(to)S2154(be)S2285(used)S2505(by)S2641(TCP.)S2912(This)S3127(value)S3382(must)S3614(be)S3746(in)S3861(network)S4228(byte)S4438(order)S4688(\(see)S10 B4888(hton)S10 R5084(\(3\).\))S2088 V10 B1080(NWTC_LP_SEL)S10 R1841(requests)S2200(the)S2352(TCP)S2566(server)S2842(to)S2949(pick)S3151(a)S3225(port.)S3466(This)S3674(port)S(will)157 3864 A4049(be)S4172(in)S4278(the)S4429(range)S4681(from)S(32768)250 4905 A5183(to)S2208 V(65535)250 1080 A1355(and)S(will)157 1525 A1707(be)S1827(unique.)S2376 V1080(The)S10 B1273(remaddr)S10 R1690(\257ags)S1917(specify)S2245(which)S2528(hosts)S2771(are)S(acceptable)426 2932 A3395(for)S(connections.)505 3550 A10 B4117(NWTC_SET_RA)S10 R4903(indicates)S2496 V1080(that)S1258(only)S(connection)441 1463 A1931(to)S2036(the)S2186(host)S2380(speci\256ed)S2765(in)S10 B2870(nwtc_remaddr)S10 R3536(are)S(acceptable.)451 3687 A10 B4190(Nwtc_remaddr)S10 R(should)267 4873 A5166(be)S2616 V1080(in)S1195(network)S1562(byte)S1772(order)S2022(\(see)S10 B2222(hton)S10 R2418(\(3\).\))S10 B2657(NWTC_UNSET_RA)S10 R3589(allows)S3889(every)S4150(host)S4354(on)S4491(the)S4651(other)S4895(side)S5094(of)S5216(a)S2736 V(connection.)466 1080 A1596(This)S1800(is)S1892(the)S2040(default.)S2904 V1080(The)S10 B1264(remport)S10 R1650(\257ags)S1867(specify)S2185(which)S2458(remote)S2766(ports)S2995(are)S(acceptable)426 3147 A3601(for)S(connections.)505 3747 A10 B4305(NWTC_SET_RP)S10 R5071(indi-)S3024 V1080(cates)S1316(that)S1501(only)S1712(the)S1868(port)S2063(speci\256ed)S2454(in)S10 B2565(nwtc_remport)S10 R3215(is)S(acceptable.)451 3315 A10 B3824(NWTC_UNSET_RP)S10 R4741(allows)S5037(every)S3144 V1080(port)S1267(on)S1392(the)S1540(other)S1772(side)S1959(of)S2068(a)S(connection.)466 2138 A2654(This)S2858(is)S2950(the)S3098(default.)S3312 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOTCPSHUTDOWN\))S3480 V10 R1080(The)S10 B1266(NWIOTCPSHUTDOWN)S10 R2385(tells)S2582(the)S2734(TCP/IP)S3066(server)S3342(that)S3522(no)S3651(more)S3887(data)S(will)157 4084 A4270(be)S4394(sent)S4586(over)S4795(the)S4948(channel)S3600 V1080(speci\256ed)S1482(by)S10 I1626(fd)S10 R1712(.)S1806(This)S2028(command)S2467(can)S2650(be)S2788(issued)S3082(when)S3343(the)S3509(channel)S3865(is)S(connected)408 3975 A4426(to)S4547(a)S4635(remote)S4958(TCP/IP)S3720 V1080(server.)S1418(The)S1616(TCP/IP)S1960(server)S(will)157 2248 A2446(tell)S2616(the)S2780(remote)S3101(TCP/IP)S3445(server)S3733(and)S3919(the)S4083(client)S4348(of)S4473(the)S4637(remote)S4958(TCP/IP)S3840 V1080(server)S(will)157 1352 A(receive)292 1534 A1851(an)S1971(end-of-\256le)S2422(indication.)S4008 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOGTCPOPT,)S2254(&struct)S2616(nwio_tcpopt\))S4128 V1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOSTCPOPT,)S2232(&struct)S2594(nwio_tcpopt\))S4296 V10 R1080(The)S1262(behaviour)S1689(of)S1799(a)S1870(TCP)S2081(channel)S2420(may)S2619(be)S2740(changed)S3101(by)S(setting)268 3227 A3521(a)S3592(number)S3925(of)S4035(options.)S4406(The)S4589(TCP)S4800(options)S5121(can)S4416 V1080(be)S1201(obtained)S1573(with)S1778(the)S10 B1927(NWIOGTCPOPT)S10 R2730(ioctl)S2935(and)S3106(set)S3244(with)S3449(the)S10 B3598(NWIOSTCPOPT)S10 R4379(ioctl.)S4634(The)S4817(options)S5137(are)S4536 V1080(passed)S1373(in)S1476(a)S10 B1546(struct)S1824(nwio_tcpopt)S10 R2381(as)S2490(de\256ned)S2811(in)S2914(<net/gen/tcp_io.h>:)S4704 V10 C(typedef)427 1440 A(struct)366 1928 A(nwio_tcpopt)671 2355 A4824 V1440({)S4944 V(u32_t)305 1800 A(nwto_\257ags;)610 2166 A5064 V1440(})S(nwio_tcpconf_t;)915 1562 A5232 V(#de\256ne)366 1440 A(NWTO_NOFLAG)671 1867 A(0x0000L)427 2843 A5352 V(#de\256ne)366 1440 A(NWTO_SND_URG_MASK)1037 1867 A(0x0001L)427 3331 A5472 V1440(#)S(de\256ne)305 1928 A(NWTO_SND_URG)732 2294 A(0x00000001L)671 3331 A5592 V1440(#)S(de\256ne)305 1928 A(NWTO_SND_NOTURG)915 2294 A(0x00010000L)671 3331 A5712 V(#de\256ne)366 1440 A(NWTO_RCV_URG_MASK)1037 1867 A(0x0002L)427 3331 A5832 V1440(#)S(de\256ne)305 1928 A(NWTO_RCV_URG)732 2294 A(0x00000002L)671 3331 A5952 V1440(#)S(de\256ne)305 1928 A(NWTO_RCV_NOTURG)915 2294 A(0x00020000L)671 3331 A6072 V(#de\256ne)366 1440 A(NWTO_BSD_URG_MASK)1037 1867 A(0x0004L)427 3331 A6192 V1440(#)S(de\256ne)305 1928 A(NWTO_BSD_URG)732 2294 A(0x00000004L)671 3331 A6312 V(#de\256ne)366 1440 A(NWTO_DEL_RST_MASK)1037 1867 A(0x0008L)427 3331 A6432 V1440(#)S(de\256ne)305 1928 A(NWTO_DEL_RST)732 2294 A(0x00000008L)671 3331 A6600 V10 R1080(The)S10 B1267(NWTO_SND_URG)S10 R2141(option)S2427(causes)S2720(bytes)S(written)286 2962 A3278(to)S3386(the)S3539(channel)S3882(to)S3990(be)S4115(send)S4329(out)S4487(as)S4601(urgent)S4889(data.)S5138(On)S6720 V(receiving)375 1080 A1484(an)S10 B1608(EURG)S10 R1928(error)S2154(the)S10 B(NWTO_RCV_URG)861 2305 A10 R3194(option)S3478(must)S3701(be)S3824(set)S3964(to)S4070(switch)S4361(over)S4568(to)S4674(reading)S5004(urgent)S6840 V1080(data.)S1334(When)S1610(all)S1747(urgent)S2040(data)S2245(has)S2416(been)S2643(read)S2854(an)S10 B2986(ENOURG)S10 R3465(error)S(will)157 3699 A3893(follow,)S4218(indicating)S4657(that)S4845(the)S5005(option)S6960 V1080(must)S1334(be)S1488(cleared)S1839(with)S10 B(NWTO_RCV_NOTURG)1079 2077 A10 R3156(.)S3265(Alas)S3509(the)S3691(BSD)S3946(implementation)S4636(of)S4778(urgent)S5093(data)S7080 V1080(disagrees)S1500(with)S1724(the)S1893(RFC's,)S2227(so)S2362(to)S2486(be)S2627(BSD)S2869(compatible)S3362(one)S3553(must)S3794(set)S3952(the)S10 B4121(NWTO_BSD_URG)S10 R5005(option)S7200 V1080(beforehand)S1564(on)S1695(a)S1771(channel)S2115(that)S2297(is)S2395(to)S2504(send)S2719(or)S(receive)292 2834 A3157(urgent)S3445(data.)S3694(Given)S3971(that)S4153(the)S4307(BSD)S4533(implementation)S5194(is)S7320 V1080(the)S1238(regarded)S1626(as)S1745(the)S1903(TCP/IP)S2241(standard)S2617(one)S(should)267 2797 A3099(always)S3414(use)S3583(the)S3741(BSD)S3972(style.)S4247(The)S10 B4440(NWTO_DEL_RST)S7440 V10 R1080(option)S1364(delays)S1649(a)S1722(failure)S(response)352 2014 A2394(on)S2522(a)S(connect)313 2595 A2936(to)S3042(the)S3193(same)S3428(port)S3618(as)S3729(the)S3879(current)S4192(open)S(connection.)466 4414 A(Without)329 4932 A7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(8)S8143 VEP%%Page: 9 9BP/slant 0 def/height 0 def480 V10 R720(IP)S818(\()S860(4)S918(\))S2696(Eighth)S(Edition)296 2989 A5029(IP)S5127(\()S5169(4)S5227(\))S960 V1080(this)S1250(option)S1531(a)S(connect)313 1601 A1939(would)S2216(fail)S2377(if)S2465(a)S2536(server)S2809(is)S2902(not)S3056(yet)S3205(listening.)S3627(With)S3854(this)S4025(option)S4307(a)S(connect)313 4378 A(will)157 4717 A4900(linger)S5161(on)S1080 V(until)184 1080 A1304(the)S1467(server)S1754(starts)S2007(listening.)S2443(This)S2662(option)S2958(is)S3065(useful)S3351(for)S3509(a)S3593(server)S3879(that)S4069(opens)S4342(a)S(connection,)466 4426 A4931(tells)S5138(the)S1200 V1080(remote)S1396(end)S1577(the)S1736(local)S1968(port)S2166(number)S2509(and)S2690(then)S2899(listens)S3193(\(FTP\),)S3497(or)S3618(for)S3773(a)S3855(program)S4233(that)S4421(forks)S4665(off)S4820(servers)S5143(for)S1320 V1080(incoming)S(connections)480 1490 A(\(TELNET\).)476 2001 A2532(A)S2635(new)S(connection)441 2833 A3304(may)S3507(come)S3755(in)S3863(before)S4151(a)S4226(new)S4424(listen)S4672(can)S4842(be)S4967(started,)S1440 V1080(so)S1194(it)S1275(is)S1367(nice)S1560(if)S1647(the)S1795(new)S(connect)313 1988 A2326(doesn't)S2647(fail.)S2857(Use)S3039(this)S3209(option)S3490(only)S3693(when)S3936(it)S4017(is)S4109(clearly)S4409(needed.)S1608 V870(U)S872(UD)S947(DP)S1022(P)S1105(F)S1107(Fu)S1165(un)S1217(nc)S1269(ct)S1316(ti)S1346(io)S1376(on)S1428(ns)S1480(s)S1728 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOGUDPOPT,)S2260(&struct)S(nwio_udpopt\))599 2622 A1896 V10 R1080(The)S10 B1275(NWIOGUDPOPT)S10 R2096(ioctl)S2313(returns)S2631(the)S2792(current)S3117(options)S3451(that)S3641(result)S3904(from)S4139(the)S4301(default)S4620(options)S4954(and)S5138(the)S2016 V1080(options)S1421(set)S1579(with)S10 B1804(NWIOSUDPOPT)S10 R2565(.)S2661(When)S10 B2947(NWUO_LP_SEL)S10 R3736(or)S10 B3866(NWUO_LP_SET)S10 R4655(is)S4768(selected)S5138(the)S2136 V1080(local)S1301(port)S1488(is)S1580(returned)S1941(in)S10 B2044(nwuo_locport)S10 R2637(.)S2712(When)S10 B2977(NWUO_RP_SET)S10 R3751(is)S3843(selected)S4193(the)S4341(remote)S4646(port)S4833(is)S4925(returned)S2256 V1080(in)S10 B1248(nwuo_remport)S10 R1892(.)S2032(The)S2279(local)S2565(address)S2957(is)S3114(always)S3484(returned)S3910(in)S10 B4078(nwuo_locaddr)S10 R4693(,)S4808(and)S5043(when)S2376 V10 B1080(NWUO_RA_SET)S10 R1865(is)S1957(selected)S2307(the)S2455(remote)S2760(address)S3087(is)S3179(returned)S3540(in)S10 B3643(nwuo_remaddr)S10 R4309(.)S2544 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOSUDPOPT,)S2238(&struct)S(nwio_udpopt\))599 2600 A2712 V10 R108

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -