亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dhcpslib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
/* dhcpsLib.c - Dynamic Host Configuration Protocol (DHCP) server library *//* Copyright 1984 - 2001 Wind River Systems, Inc.  */#include "copyright_wrs.h"/*modification history--------------------01v,16nov01,spm  fixed modification history01u,29oct01,wap  Correct typo in documentation (SPR #34808)01t,15oct01,rae  merge from truestack ver 01x, base 01p (VIRTUAL_STACK)01s,17nov00,spm  added support for BSD Ethernet devices01r,24oct00,spm  fixed modification history after merge from tor3_0_x branch;                 corrected pathname in library description01q,23oct00,niq  merged from version 01t of tor3_0_x branch (base version 01p);                 upgrade to BPF replaces tagged frames support01p,17jan98,kbw  removed NOMANUAL restriction from init function01o,17dec97,spm  fixed byte order of address-based loop boundaries (SPR #20056)01n,14dec97,kbw  made minor man page fixes01m,10dec97,kbw  made minor man page fixes01l,04dec97,spm  added code review modifications01k,25oct97,kbw  made minor man page fixes01j,06oct97,spm  removed reference to deleted endDriver global; replaced with                 support for dynamic driver type detection01i,25sep97,gnn  SENS beta feedback fixes01h,26aug97,spm  added code review fixes and support for UDP port selection01g,12aug97,gnn  changes necessitated by MUX/END update.01f,30jul97,kbw  fixed man page problems found in beta review01e,15jul97,spm  allowed startup without lease storage; changed module title01d,02jun97,spm  updated man pages and added ERRNO entries01c,06may97,spm  changed memory access to align IP header on four byte                 boundary and corrected cleanup routine01b,17apr97,kbw  fixed man page format, changed wording, spell checked doc01a,07apr97,spm  created by modifying WIDE project DHCP implementation*//*DESCRIPTIONThis library implements the server side of the Dynamic Host ConfigurationProtocol (DHCP).  DHCP is an extension of BOOTP.  Like BOOTP, it allows atarget to configure itself dynamically by using the network to get its IP address, a boot file name, and the DHCP server's address.  Additionally,DHCP provides for automatic reuse of network addresses by specifyingindividual leases as well as many additional options.  The compatiblemessage format allows DHCP participants to interoperate with BOOTPparticipants.  The dhcpsInit() routine links this library into the VxWorks image.  This happens automatically if INCLUDE_DHCPS is defined when the image is built.PRIMARY INTERFACEThe dhcpsInit() routine initializes the server.  It reads the hard-coded server configuration data that is stored in three separate tables.The first table contains entries as follows:.CSDHCPS_LEASE_DESC dhcpsLeaseTbl [] =    {    {"sample1", "90.11.42.24", "90.11.42.24", "clid=\e"1:0x08003D21FE90\e""},    {"sample2", "90.11.42.25", "90.11.42.28", "maxl=90:dfll=60"},    {"sample3", "90.11.42.29", "90.11.42.34", "maxl=0xffffffff:file=/vxWorks"},    {"sample4", "90.11.42.24", "90.11.42.24", "albp=true:file=/vxWorks"}    };.CEEach entry contains a name of up to eight characters, the starting and ending IP addresses of a range, and the parameters associated with the lease.  Thefour samples shown demonstrate the four types of leases. Manual leases contain a specific client ID, and are issued only to that client, with an infinite duration.  The example shown specifies a MAC address, which is the identifier type used by the VxWorks DHCP client.Dynamic leases specify a finite maximum length, and can be issued to anyrequesting client.  These leases allow later re-use of the assigned IP address.If not explicitly specified in the parameters field, these leases use the values of DHCPS_MAX_LEASE and DHCPS_DFLT_LEASE to determine the lease length.Automatic leases are implied by the infinite maximum length.  Their IP addressesare assigned permanently to any requesting client.The last sample demonstrates a lease that is also available to BOOTP clients.The infinite maximum length is implied, and any timing-related parameters areignored. The DHCP server supplies leases to DHCP clients according to the lease type inthe order shown above.  Manual leases have the highest priority and leases available to BOOTP clients the lowest.Entries in the parameters field may be one of these types:.IP `bool' 8Takes values of "true" or "false", for example, ipfd=true.  Unrecognized values default to false. .IP 'str'Takes a character string as a value, for example, hstn="clapton".If the string includes a delimiter character, such as a colon, it should be enclosed in quotation marks..IP 'octet'Takes an 8-bit integer in decimal, octal, or hexadecimal, for example,8, 070, 0xff..IP 'short'Takes a 16-bit integer..IP 'long'Takes a 32-bit integer..IP 'ip'Takes a string that is interpreted as a 32-bit IP address.  One of the following formats isexpected: a.b.c.d, a.b.c or a.b.  In the secondformat, c is interpreted as a 16-bit value.  Inthe third format, b is interpreted as a 24-bitvalue, for example siad=90.11.42.1.  .IP 'iplist'Takes a list of IP addresses, separated bywhite space, for example, rout=133.4.31.1 133.4.31.2 133.4.31.3..IP 'ippairs'Takes a list of IP address pairs.  Each IPaddress is separated by white space and groupedin pairs, for example, strt=133.4.27.0  133.4.31.1133.4.36.0 133.4.31.1..IP 'mtpt'Takes a list of 16 bit integers,separated by white space, for example, mtpt=1 2 3 4 6 8..IP 'clid'Takes a client identifier as a value.Client identifiers are represented by the quotedstring "<type>:<data>", where <type> is aninteger from 0 to 255, as defined by the IANA,and <data> is a sequence of 8-bit values in hexadecimal.The client ID is usually a MAC address, for example, clid="1:0x08004600e5d5"..LPThe following table lists the option specifiers and descriptions forevery possible entry in the parameter list.  When available, the optioncode from RFC 2132 is included..TStab(|);lf3 lf3 lf3 lf3l   l   l   l.Name | Code | Type    | Description_snam | -    | str     | Optional server name.file | -    | str     | Name of file containing the boot image.siad | -    | ip      | Address of server that offers the boot image.albp | -    | bool    | If true, this entry is also available     |      |         | to BOOTP clients.  For entries using     |      |         | static allocation, this value becomes     |      |         | true by default and <maxl> becomes     |      |         | infinity.maxl | -    | long    | Maximum lease duration in seconds. dfll | -    | long    | Default lease duration in seconds.  If a     |      |         | client does not request a specific lease     |      |         | duration, the server uses this value.clid | -    | clid    | This specifies a client identifier for     |      |         | manual leases.  The VxWorks client uses     |      |         | a MAC address as the client identifier.pmid | -    | clid    | This specifies a client identifier for     |      |         | client-specific parameters to be included     |      |         | in a lease.  It should be present in separate     |      |         | entries without IP addresses.clas | -    | str     | This specifies a class identifier for     |      |         | class-specific parameters to be included in      |      |         | a lease.  It should be present in separate entries     |      |         | without IP addresses.snmk | 1    | ip      | Subnet mask of the IP address to be     |      |         | allocated.  The default is a natural mask     |      |         | corresponding to the IP address.  The     |      |         | server will not issue IP addresses to      |      |         | clients on different subnets.tmof | 2    | long    | Time offset from UTC in seconds.rout | 3    | iplist  | A list of routers on the same subnet as     |      |         | the client.tmsv |  4   | iplist  | A list of time servers (RFC 868).nmsv |  5   | iplist  | A list of name servers (IEN 116).dnsv |  6   | iplist  | A list of DNS servers (RFC 1035).lgsv |  7   | iplist  | A list of MIT-LCS UDP log servers.cksv |  8   | iplist  | A list of Cookie servers (RFC 865).lpsv |  9   | iplist  | A list of LPR servers (RFC 1179).imsv |  10  | iplist  | A list of Imagen Impress servers.rlsv |  11  | iplist  | A list of Resource Location servers (RFC 887).hstn |  12  | str     | Hostname of the client.btsz |  13  | short   | Size of boot image.mdmp |  14  | str     | Path name to which client dumps core.dnsd |  15  | str     | Domain name for DNS.swsv |  16  | ip      | IP address of swap server.rpth |  17  | str     | Path name of root disk of the client.epth |  18  | str     | Extensions Path (See RFC 1533).ipfd |  19  | bool    | If true, the client performs IP     |      |         | forwarding.nlsr |  20  | bool    | If true, the client can perform non-local     |      |         | source routing.plcy |  21  | ippairs | Policy filter for non-local source     |      |         | routing.  A list of pairs of     |      |         | (Destination IP, Subnet mask).mdgs |  22  | short   | Maximum size of IP datagram that the     |      |         | client should be able to reassemble.ditl |  23  | octet   | Default IP TTL.mtat |  24  | long    | Aging timeout (in seconds) to be used     |      |         | with Path MTU discovery (RFC 1191).mtpt |  25  | mtpt    | A table of MTU sizes to be used with     |      |         | Path MTU Discovery.ifmt |  26  | short   | MTU to be used on an interface.asnl |  27  | bool    | If true, the client assumes that all     |      |         | subnets to which the client is connected     |      |         | use the same MTU.brda |  28  | ip      | Broadcast address in use on the client's     |      |         | subnet.  The default is calculated from     |      |         | the subnet mask and the IP address.mskd |  29  | bool    | If true, the client should perform subnet     |      |         | mask discovery using ICMP.msks |  30  | bool    | If true, the client should respond to     |      |         | subnet mask requests using ICMP.rtrd |  31  | bool    | If true, the client should solicit     |      |         | routers using Router Discovery defined     |      |         | in RFC 1256.rtsl |  32  | ip      | Destination IP address to which the     |      |         | client sends router solicitation     |      |         | requests.strt |  33  | ippairs | A table of static routes for the client,     |      |         | which are pairs of (Destination, Router).     |      |         | It is illegal to specify default route     |      |         | as a destination.trlr |  34  | bool    | If true, the client should negotiate     |      |         | the use of trailers with ARP (RFC 893).arpt |  35  | long    | Timeout in seconds for ARP cache.encp |  36  | bool    | If false, the client uses RFC 894     |      |         | encapsulation.  If true, it uses     |      |         | RFC 1042 (IEEE 802.3) encapsulation.dttl |  37  | octet   | Default TTL of TCP.kain |  38  | long    | Interval of the client's TCP keepalive     |      |         | in seconds.kagb |  39  | bool    | If true, the client should send TCP     |      |         | keepalive messages with a octet of     |      |         | garbage for compatibility.nisd |  40  | str     | Domain name for NIS.nisv |  41  | iplist  | A list of NIS servers.ntsv |  42  | iplist  | A list of NTP servers.nnsv |  44  | iplist  | A list of NetBIOS name server.     |      |         | (RFC 1001, 1002)ndsv |  45  | iplist  | A list of NetBIOS datagram distribution     |      |         | servers (RFC 1001, 1002).nbnt |  46  | octet   | NetBIOS node type (RFC 1001, 1002).nbsc |  47  | str     | NetBIOS scope (RFC 1001, 1002).xfsv |  48  | iplist  | A list of font servers of X Window system.xdmn |  49  | iplist  | A list of display managers of X Window     |      |         | system.dht1 |  58  | short   | This value specifies when the client should     |      |         | start RENEWING.  The default of 500 means     |      |         | the client starts RENEWING after 50% of the     |      |         | lease duration passes.dht2 |  59  | short   | This value specifies when the client should     |      |         | start REBINDING.  The default of 875 means     |      |         | the client starts REBINDING after 87.5% of     |      |         | the lease duration passes..TE.LPFinally, to function correctly, the DHCP server requires access to some formof permanent storage.  The DHCPS_LEASE_HOOK constant specifies the name of a storage routine with the following interface:.CS    STATUS dhcpsStorageHook (int op, char *buffer, int datalen);.CEThe storage routine is installed by a call to the dhcpsLeaseHookAdd() routineThe manual pages for dhcpsLeaseHookAdd() describe the parameters and required operation of the storage routine.SECONDARY INTERFACEIn addition to the hard-coded entries, address entries may be added after the server has started by calling the following routine:.CS    STATUS dhcpsLeaseEntryAdd (char *name, char *start, char *end, char *config);.CEThe parameters specify an entry name, starting and ending values for a block of IP addresses, and additional configuration information in the same format as shown above for the hard-coded entries.  Each parameter must be formatted as a NULL-terminated string. The DHCPS_ADDRESS_HOOK constant specifies the name of a storage routine, used to preserve address entries added after startup, which has the following prototype:.CS    STATUS dhcpsAddressStorageHook (int op,				    char *name, char *start, char *end, 				    char *params);.CEThe storage routine is installed with the dhcpsAddressHookAdd() routine, and is fully described in the manual pages for that function.OPTIONAL INTERFACEThe DHCP server can also receive messages forwarded from different subnetsby a relay agent.  To provide addresses to clients on different subnets, theappropriate relay agents must be listed in the provided table in usrNetwork.c. A sample configuration is:.CS    DHCPS_RELAY_DESC dhcpsRelayTbl [] =	{	{"90.11.46.75", "90.11.46.0"}	};.CEEach entry in the table specifies the address of a relay agent that will transmit the request and the corresponding subnet number.  To issue leasessuccessfully, the address pool must also contain IP addresses for the monitored subnets.The following table allows a DHCP server to act as a relay agent in addition to its default function of processing messages.  It consists of a list of IP addresses..CS    DHCP_TARGET_DESC dhcpTargetTbl [] =	 {	 {"90.11.43.2"},	 {"90.11.44.1"}	 };.CEEach IP address in this list receives a copy of any client messagesgenerated on the subnets monitored by the server.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美另类一区二区三区| 国产盗摄视频一区二区三区| 国产三区在线成人av| 日韩丝袜美女视频| 欧美日韩高清一区| 日韩欧美亚洲另类制服综合在线| 欧美日韩五月天| 日韩精品一区二区三区在线 | 日本一区二区三区视频视频| 99re这里只有精品视频首页| 成人黄色在线网站| 成人毛片视频在线观看| 国产福利一区二区三区| 成人看片黄a免费看在线| 99麻豆久久久国产精品免费| 色综合久久精品| 欧美另类z0zxhd电影| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲国产成人一区二区三区| 亚洲在线视频网站| 久久99精品国产.久久久久| 国产成人鲁色资源国产91色综| 国产精品污污网站在线观看| 亚洲影视资源网| 国产亚洲一区二区三区| 亚洲午夜精品久久久久久久久| 蜜臀av一区二区| 91丨九色丨蝌蚪富婆spa| 日韩欧美资源站| 亚洲成av人片在线观看无码| 国产精品一区二区男女羞羞无遮挡| 91在线无精精品入口| 久久久综合视频| 麻豆国产精品官网| 欧美亚洲综合一区| 一个色在线综合| 色8久久精品久久久久久蜜| 久久九九99视频| 国产在线精品免费| 精品久久久久久最新网址| 强制捆绑调教一区二区| 色综合久久综合网欧美综合网| 国产精品视频一区二区三区不卡| 国产在线麻豆精品观看| 欧美不卡激情三级在线观看| 久久精品国产99久久6| 日韩网站在线看片你懂的| 久久精品国产99| 日韩免费电影一区| 国模大尺度一区二区三区| 在线观看欧美黄色| 首页国产欧美久久| 久久在线观看免费| 国产成人免费高清| 一区二区三国产精华液| 在线精品视频免费播放| 亚洲一区二区三区国产| 欧美一区二区三区在线视频| 国产乱码精品一区二区三区av| 日本一区二区三区dvd视频在线| av网站免费线看精品| 一区二区三区av电影| 久久综合九色综合欧美就去吻 | 亚洲一级二级三级| 精品黑人一区二区三区久久| 成人一区二区三区中文字幕| 色婷婷久久久亚洲一区二区三区| 亚洲一区在线免费观看| 久久久国产精品午夜一区ai换脸| www.在线欧美| 国产在线播放一区三区四| 亚洲人成影院在线观看| 欧美一级片免费看| www.成人网.com| 国产精品一区二区果冻传媒| 亚洲国产欧美另类丝袜| 中文字幕高清一区| 亚洲精品一区二区三区精华液 | 中文字幕亚洲综合久久菠萝蜜| 午夜精品福利一区二区三区av| 亚洲国产精华液网站w| 久久女同精品一区二区| 日韩一区二区三免费高清| 欧美日韩免费一区二区三区| 99精品久久免费看蜜臀剧情介绍 | 亚洲在线视频网站| 中文一区一区三区高中清不卡| 欧美一级黄色录像| 欧美在线视频日韩| 91片在线免费观看| 欧洲精品一区二区三区在线观看| 国产69精品久久99不卡| 国产美女视频一区| 亚洲电影一级黄| 亚洲成人www| 一区二区三区四区视频精品免费| 国产精品电影院| 中文字幕一区二区三区在线观看| 一本色道久久综合狠狠躁的推荐 | 欧美精品成人一区二区三区四区| 欧美午夜精品久久久久久超碰| 在线免费观看一区| 91精品婷婷国产综合久久性色| 欧美日韩精品福利| 久久精品理论片| 国产乱色国产精品免费视频| 国内不卡的二区三区中文字幕 | 国产精品女主播av| 亚洲午夜激情网页| 欧美大尺度电影在线| 日本一区二区综合亚洲| 亚洲成a人v欧美综合天堂下载| 日本v片在线高清不卡在线观看| 国产成人av影院| 欧美三级蜜桃2在线观看| 捆绑紧缚一区二区三区视频| 中文av字幕一区| 图片区小说区国产精品视频| 国产91精品免费| 久久综合一区二区| 欧美电视剧免费全集观看| 在线播放日韩导航| 91小视频免费看| 美女视频黄频大全不卡视频在线播放| 国产精品中文字幕日韩精品| 欧美日韩国产精品成人| 国产精品国产三级国产三级人妇 | 91麻豆精品在线观看| 国产三级精品三级| 精品亚洲欧美一区| 欧美一区在线视频| 五月天一区二区三区| 日本乱人伦aⅴ精品| 国产精品国产精品国产专区不片| 蜜桃精品视频在线观看| 日韩亚洲欧美在线观看| 免费亚洲电影在线| 日韩一区二区三区免费看| 视频一区二区欧美| 日韩亚洲欧美中文三级| 久久国产精品99精品国产| 久久综合久色欧美综合狠狠| 国产精品一区二区在线播放| 国产女主播一区| 色哟哟国产精品免费观看| 亚洲成av人片一区二区三区| 91成人在线观看喷潮| 日韩黄色小视频| 国产亚洲综合av| 色综合久久久久网| 亚洲一区二区偷拍精品| 日韩小视频在线观看专区| 久久精品国产成人一区二区三区| 国产精品资源网站| 91福利精品第一导航| 秋霞电影一区二区| 国产精品免费网站在线观看| 欧洲一区二区三区免费视频| 麻豆精品一区二区综合av| 懂色av一区二区三区免费观看| 亚洲丝袜精品丝袜在线| 91精品1区2区| 夫妻av一区二区| 日本美女一区二区三区视频| 亚洲欧洲一区二区在线播放| 日韩三级视频在线观看| 在线亚洲人成电影网站色www| 精品少妇一区二区三区免费观看| 国产成人av电影在线播放| 亚洲国产精品自拍| 国产精品萝li| 欧美极品少妇xxxxⅹ高跟鞋| 日韩欧美亚洲另类制服综合在线| 色婷婷av一区二区| 成人av在线资源网| 亚洲精品在线电影| 欧美福利电影网| 欧美浪妇xxxx高跟鞋交| 色琪琪一区二区三区亚洲区| 91久久久免费一区二区| 成人一区二区三区视频在线观看| 裸体歌舞表演一区二区| 亚洲综合色噜噜狠狠| 亚洲精品欧美激情| 一区二区高清在线| 亚洲精品第1页| 亚洲精品亚洲人成人网在线播放| 国产精品久久久久久久蜜臀 | 日本va欧美va欧美va精品| 伊人婷婷欧美激情| 久久在线免费观看| 久久美女高清视频| 国产欧美日韩在线| 日本一区二区三区四区在线视频| 国产精品久久久久影院| 亚洲欧美综合色| 日韩精品一级中文字幕精品视频免费观看| 一区二区三区日韩精品视频| 日韩高清一区二区| 国产精品99久久久久久久vr|