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

📄 ip.4

📁 Unix操作系统minix 2.0源码
💻 4
📖 第 1 页 / 共 5 页
字号:
10 B4460(NWEO_EN_LOC)S10 R5236(,)S2304 V10 B1080(NWEO_DI_BROAD)S10 R1974(,)S10 B2082(NWEO_DI_MULTI)S10 R2953(,)S10 B3060(NWEO_DI_PROMISC)S10 R4066(,)S10 B4173(NWEO_REMSPEC)S10 R5116(and)S2424 V10 B1080(NWEO_TYPESPEC)S10 R2015(are)S2179(speci\256ed,)S2602(then)S10 B2815(NWEO_RWDATONLY)S10 R3900(can)S4080(be)S4215(used)S4439(to)S4558(send)S4783(and)S(receive)292 4969 A2544 V1080(only)S1299(the)S1463(data)S1672(part)S1870(of)S1995(an)S2131(Ethernet)S2514(packet.)S2868(If)S10 B2977(NWEO_RWDATALL)S10 R3979(is)S4087(speci\256ed)S4486(then)S4700(both)S4919(Ethernet)S2664 V1080(header)S1374(and)S1544(data)S1737(are)S1886(used.)S2832 V870(P)S872(PS)S930(SI)S988(IP)S1024(P)S1107(F)S1109(Fu)S1167(un)S1219(nc)S1271(ct)S1318(ti)S1348(io)S1378(on)S1430(ns)S1482(s)S2952 V([[[No)225 1080 A1330(description)S1802(available)S(yet.]]])250 2191 A3120 V870(I)S872(IP)S908(P)S991(F)S993(Fu)S1051(un)S1103(nc)S1155(ct)S1202(ti)S1232(io)S1262(on)S1314(ns)S1366(s)S3240 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOGIPCONF,)S2232(&struct)S2594(nwio_ipconf\))S3408 V10 R1080(The)S10 B1267(NWIOGIPCONF)S10 R2052(ioctl)S2262(reports)S2573(the)S2727(Internet)S3072(Address)S3433(and)S3609(the)S3763(netmask.)S4179(For)S4350(the)S10 I4504(nwio_ipconf)S10 R5031(struc-)S3528 V1080(ture)S1262(see)S1416(the)S10 B1564(NWIOSIPCONF)S10 R2322(ioctl)S2526(below.)S3696 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOGIPOROUTE,)S2382(&struct)S2744(nwio_route\))S3864 V10 R1080(The)S10 B1264(NWIOGIPOROUTE)S10 R2196(ioctl)S2402(can)S2569(be)S2691(used)S2902(to)S3007(query)S3263(an)S3385(IP)S3502(server)S(about)223 3777 A4028(its)S4151(routing)S4469(table.)S([[[NWIODI-)518 4743 A3984 V1080(POROUTE,)S1626(NWIOGIPIROUTE,)S(NWIODIPIROUTE?]]])956 2515 A3551(The)S3763(structure)S10 B4171(nwio_route)S10 R4712(is)S4833(de\256ned)S5183(in)S4104 V1080(<net/gen/route.h>:)S4272 V10 C(typedef)427 1440 A(struct)366 1928 A(nwio_route)610 2355 A4392 V1440({)S4512 V(u32_t)305 1928 A(nwr_ent_no;)671 2294 A4632 V(u32_t)305 1928 A(nwr_ent_count;)854 2294 A4752 V(ipaddr_t)488 1928 A(nwr_dest;)549 2477 A4872 V(ipaddr_t)488 1928 A(nwr_netmask;)732 2477 A4992 V(ipaddr_t)488 1928 A(nwr_gateway;)732 2477 A5112 V(u32_t)305 1928 A(nwr_dist;)549 2294 A5232 V(u32_t)305 1928 A(nwr_\257ags;)549 2294 A5352 V(u32_t)305 1928 A(nwr_pref;)549 2294 A5472 V1440(})S(nwio_route_t;)793 1562 A5640 V(#de\256ne)366 1440 A(NWRF_EMPTY)610 1867 A2843(0)S5760 V(#de\256ne)366 1440 A(NWRF_INUSE)610 1867 A2843(1)S5880 V(#de\256ne)366 1440 A(NWRF_FIXED)610 1867 A2843(2)S6048 V10 R1080(The)S1264(requested)S1677(entry)S1911(is)S2005(taken)S2250(from)S10 B2473(nwr_ent_no)S10 R2988(.)S3065(Entries)S3378(are)S(counted)318 3529 A3874(from)S4097(0,)S4199(so)S4315(the)S4465(value)S4710(0)S4787(can)S4954(be)S5077(used)S6168 V1080(for)S1230(an)S(initial)235 1357 A1624(query.)S1935(The)S2123(size)S2311(of)S2426(the)S2580(routing)S2901(table)S3128(is)S3226(returned)S3593(in)S10 B3702(nwr_ent_count)S10 R4352(.)S4433(The)S10 B4621(nwr_\257ags)S10 R5071(indi-)S6288 V1080(cates)S1314(if)S1408(the)S1563(entry)S1802(is)S1901(in)S2011(use)S2177(\()S10 B2211(NWRF_INUSE)S10 R2877(\))S2943(and)S3120(if)S3214(the)S3369(entry)S3609(was)S3799(inserted)S4151(manually)S4558(\(using)S10 B4842(NWIOSI-)S6408 V1080(POROUTE)S10 R1578(\))S1642(or)S1756(generated)S2177(by)S2306(the)S2458(IP)S2577(server)S2853(itself.)S3134(The)S3320(route)S3556(is)S3652(described)S4067(by)S10 B4196(nwr_dest)S10 R4594(,)S10 B4648(nwr_netmask)S10 R5236(,)S6528 V10 B(nwr_gateway)576 1080 A10 R1656(,)S10 B1751(nwr_dist)S10 R2132(,)S2227(and)S10 B2442(nwr_pref)S10 R2846(.)S10 B2966(Nwr_dest)S10 R3451(and)S10 B3666(nwr_netmask)S10 R4325(select)S4626(the)S4820(destination)S6648 V1080(addresses.)S1543(A)S1642(value)S1886(of)S1996(0.0.0.0)S(\(0x0\))218 2297 A2541(in)S2645(both)S10 B2849(nwr_dest)S10 R3273(and)S10 B3444(nwr_netmask)S10 R4058(means)S4341(every)S4591(host.)S4834(A)S4933(value)S5177(of)S6768 V(255.255.255.255)675 1080 A(\(0xffffffff\))440 1784 A2253(in)S10 B2361(nwr_netmask)S10 R2979(means)S3266(a)S3341(single)S3611(host.)S3858(Other)S4118(values)S4405(of)S10 B4519(nwr_netmask)S10 R5137(are)S6888 V1080(netmasks)S1502(for)S1667(the)S1837(network)S2214(speci\256ed)S2619(by)S10 B2766(nwr_dest)S10 R3164(.)S10 B(Nwr_gateway)593 3261 A10 R3901(is)S4015(gateway)S4398(that)S(should)267 4596 A4910(be)S5052(used.)S7008 V10 B1080(Nwr_dist)S10 R1509(is)S1607(a)S1683(minimal)S2049(distance.)S2460(Packets)S2799(with)S3010(a)S3087(time)S3298(to)S3408(live)S3591(smaller)S3920(than)S10 B4125(nwr_dist)S10 R(will)157 4538 A4727(not)S(reach)219 4887 A5138(the)S7128 V1080(destination.)S1601(If)S1699(two)S1880(routes)S2156(have)S2376(equal)S2623(netmask)S2987(and)S3161(distance)S3520(\256elds)S3767(but)S3924(different)S4301(gateways)S4705(then)S4907(the)S5059(gate-)S7248 V1080(way)S1273(with)S1477(highest)S1792(value)S2035(in)S10 B2138(nwr_pref)S10 R2567(is)S2659(used.)S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(4)S8143 VEP%%Page: 5 5BP/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 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOSIPCONF,)S2210(&struct)S2572(nwio_ipconf\))S1128 V10 R1080(The)S10 B1272(NWIOSIPCONF)S10 R2040(ioctl)S2254(can)S2429(be)S2559(used)S2778(to)S2891(inform)S3200(the)S3358(IP)S3484(server)S(about)223 3767 A4026(its)S4157(Internet)S4507(Address)S4873(and/or)S5166(its)S1248 V1080(netmask.)S1525(Normally)S1971(an)S2126(IP)S2276(server)S(will)157 2583 A2800(discover)S3201(its)S3356(Internet)S3730(Address)S4120(using)S4397(the)S4579(RARP)S4901(protocol.)S1368 V10 B1080(NWIOSIPCONF)S10 R1851(can)S2029(be)S2162(used)S2384(in)S2500(the)S2661(case)S2873(that)S3062(the)S3223(RARP)S3524(failed,)S3818(or)S3941(the)S4103(netmask)S4477(has)S4650(to)S4767(be)S4901(changed.)S1488 V1080(Note)S1305(that)S1484(higher)S1769(level)S1993(protocols)S2395(\(TCP)S2642(and)S2815(UDP\))S3079(assume)S3403(that)S3582(the)S3733(Internet)S4075(Address)S4433(of)S4545(an)S4668(IP)S4786(device)S5077(does)S1608 V1080(not)S1233(change,)S1568(therefore)S1958(TCP)S2168(and)S2338(UDP)S2565(stop)S2757(functioning)S3245(if)S3332(the)S3480(Internet)S3819(Address)S4174(is)S4266(changed.)S1776 V1080(The)S1262(structure)S10 B1640(nwio_ipconf)S10 R2191(is)S2283(de\256ned)S2604(in)S2707(<net/gen/ip_io.h>:)S1944 V10 C(typedef)427 1440 A(struct)366 1928 A(nwio_ipconf)671 2355 A2064 V1440({)S2184 V(u32_t)305 1800 A(nwic_\257ags;)610 2288 A2304 V(ipaddr_t)488 1800 A(nwic_ipaddr;)732 2349 A2424 V(ipaddr_t)488 1800 A(nwic_netmask;)793 2349 A2544 V1440(})S(nwio_ipconf_t;)854 1562 A2712 V(#de\256ne)366 1440 A(NWIC_NOFLAGS)732 1867 A(0x0)183 3331 A2832 V(#de\256ne)366 1440 A(NWIC_FLAGS)610 1867 A(0x3)183 3331 A2952 V1440(#)S(de\256ne)305 1928 A(NWIC_IPADDR_SET)915 2294 A(0x1)183 3819 A3072 V1440(#)S(de\256ne)305 1928 A(NWIC_NETMASK_SET)976 2294 A(0x2)183 3819 A3240 V10 R1080(The)S1276(function)S1650(of)S10 B1773(nwio_ipconf)S10 R2338(depends)S2706(on)S2845(the)S3007(value)S3265(of)S10 B3389(nwic_\257ags)S10 R3836(.)S3926(If)S10 B(NWIC_IPADDR_SET)968 4034 A10 R5042(is)S5149(set)S3360 V1080(then)S1295(the)S1460(Internet)S1816(Address)S(will)157 2188 A2387(be)S2523(set)S2676(to)S10 B2795(nwic_ipaddr)S10 R3338(.)S3429(If)S10 B3538(NWIC_NETMASK_SET)S10 R4663(is)S4771(set)S4924(then)S5138(the)S3480 V1080(Internet)S1419(Address)S(will)157 1774 A1956(be)S2076(set)S2213(to)S10 B2316(nwic_netmask)S10 R2932(.)S3648 V10 B1080(ioctl\()S10 I1299(fd)S10 B1377(,)S1427(NWIOSIPOPT,)S2131(&struct)S2493(nwio_ipopt\))S3816 V10 R1080(Before)S1380(an)S1500(IP)S1615(channel)S1953(can)S2119(be)S2240(used,)S2475(it)S2557(has)S2717(to)S2821(be)S2942(con\256gured)S3398(using)S3641(the)S10 B3790(NWIOSIPOPT)S10 R4470(ioctl.)S4725(The)S4908(structure)S3936 V10 B1080(nwio_ipopt)S10 R1586(is)S1678(de\256ned)S1999(in)S2102(<net/gen/ip_io.h>:)S4104 V10 C(typedef)427 1440 A(struct)366 1928 A(nwio_ipopt)610 2355 A4224 V1440({)S4344 V(u32_t)305 1928 A(nwio_\257ags;)610 2294 A4464 V(ipaddr_t)488 1928 A(nwio_rem;)549 2477 A4584 V(ip_hdropt_t)671 1928 A(nwio_hdropt;)732 2660 A4704 V(u8_t)244 1928 A(nwio_tos;)549 2233 A4824 V(u8_t)244 1928 A(nwio_ttl;)549 2233 A4944 V(u8_t)244 1928 A(nwio_df;)488 2233 A5064 V(ipproto_t)549 1928 A(nwio_proto;)671 2538 A5184 V1440(})S(nwio_ipopt_t;)793 1562 A5352 V(#de\256ne)366 1440 A(NWIO_NOFLAGS)732 1867 A(0x0000L)427 2843 A5472 V(#de\256ne)366 1440 A(NWIO_ACC_MASK)793 1867 A(0x0003L)427 2843 A5592 V1440(#)S(de\256ne)305 1928 A(NWIO_EXCL)549 2294 A(0x00000001L)671 3331 A5712 V1440(#)S(de\256ne)305 1928 A(NWIO_SHARED)671 2294 A(0x00000002L)671 3331 A5832 V1440(#)S(de\256ne)305 1928 A(NWIO_COPY)549 2294 A(0x00000003L)671 3331 A5952 V(#de\256ne)366 1440 A(NWIO_LOC_MASK)793 1867 A(0x0010L)427 2843 A6072 V1440(#)S(de\256ne)305 1928 A(NWIO_EN_LOC)671 2294 A(0x00000010L)671 3331 A6192 V1440(#)S(de\256ne)305 1928 A(NWIO_DI_LOC)671 2294 A(0x00100000L)671 3331 A6312 V(#de\256ne)366 1440 A(NWIO_BROAD_MASK)915 1867 A(0x0020L)427 2843 A6432 V1440(#)S(de\256ne)305 1928 A(NWIO_EN_BROAD)793 2294 A(0x00000020L)671 3331 A6552 V1440(#)S(de\256ne)305 1928 A(NWIO_DI_BROAD)793 2294 A(0x00200000L)671 3331 A6672 V(#de\256ne)366 1440 A(NWIO_REM_MASK)793 1867 A(0x0100L)427 2843 A6792 V1440(#)S(de\256ne)305 1928 A(NWIO_REMSPEC)732 2294 A(0x00000100L)671 3331 A6912 V1440(#)S(de\256ne)305 1928 A(NWIO_REMANY)671 2294 A(0x01000000L)671 3331 A7032 V(#de\256ne)366 1440 A(NWIO_PROTO_MASK)915 1867 A(0x0200L)427 2843 A7152 V1440(#)S(de\256ne)305 1928 A(NWIO_PROTOSPEC)854 2294 A(0x00000200L)671 3331 A7272 V1440(#)S(de\256ne)305 1928 A(NWIO_PROTOANY)793 2294 A(0x02000000L)671 3331 A7392 V(#de\256ne)366 1440 A(NWIO_HDR_O_MASK)915 1867 A(0x0400L)427 2843 A7512 V1440(#)S(de\256ne)305 1928 A(NWIO_HDR_O_SPEC)915 2294 A(0x00000400L)671 3331 A7903 V10 R720(Page)S941(5)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 6 6BP/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 V10 C1440(#)S(de\256ne)305 1928 A(NWIO_HDR_O_ANY)854 2294 A(0x04000000L)671 3331 A1080 V(#de\256ne)366 1440 A(NWIO_RW_MASK)732 1867 A(0x1000L)427 2843 A1200 V1440(#)S(de\256ne)305 1928 A(NWIO_RWDATONLY)854 2294 A(0x00001000L)671 3331 A1320 V1440(#)S(de\256ne)305 1928 A(NWIO_RWDATALL)793 2294 A(0x10000000L)671 3331 A1488 V10 R1080(The)S1316(options)S1690(are)S1893(divided)S2273(in)S2430(several)S2795(categories:)S10 B(NWIO_ACC_MASK)911 3311 A10 R4222(,)S10 B4326(NWIO_LOC_MASK)S10 R5236(,)S1608 V10 B1080(NWIO_BROAD_MASK)S10 R2136(,)S10 B2698(NWIO_REM_MASK)S10 R3625(,)S10 B4186(NWIO_PROTO_MASK)S10 R5236(,)S1728 V10 B1080(NWIO_HDR_O_MASK)S10 R2151(and)S10 B2323(NWIO_RW_MASK)S10 R3188(.)S3266(A)S3367(channel)S3708(is)S3803(con\256gured)S4261(when)S4507(one)S4680(option)S4964(of)S(each)185 5076 A1848 V1080(category)S1452(is)S1544(set.)S2016 V1080(The)S1265(options)S1588(covered)S1935(by)S10 B(NWIO_ACC_MASK)911 2063 A10 R3002(control)S3315(the)S3466(number)S3801(of)S3913(channels)S4293(that)S4472(can)S4640(use)S4802(one)S4975(IP)S5093(pro-)S2136 V1080(tocol.)S1389(If)S10 B1515(NWIO_EXCL)S10 R2193(is)S2318(speci\256ed)S2734(then)S2965(only)S3201(that)S3410(channel)S3781(can)S3979(use)S4170(a)S4272(certain)S4604(IP)S4751(protocol.)S5193(If)S2256 V10 B1080(NWIO_SHARED)S10 R1869(then)S(multiple)335 2071 A2435(channels)S2816(that)S2997(all)S3128(have)S3348(to)S3456(specify)S10 B3777(NWIO_SHARED)S10 R4567(can)S4737(use)S4901(the)S5054(same)S2376 V1080(IP)S1197(protocol,)S1584(but)S1739(incoming)S2145(packets)S(will)157 2474 A2658(be)S2780(delivered)S3181(to)S3285(a)S3356(most)S3577(one)S3748(channel.)S10 B4137(NWIO_SHARED)S10 R4923(does)S5133(not)S

⌨️ 快捷键说明

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