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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? nrmenus.c

?? internich公司實現(xiàn)的一個非常非常小的OS
?? C
?? 第 1 頁 / 共 3 頁
字號:
         ns_printf(pio, "DNS server number must be 1-%d\n", MAXDNSSERVERS);         return -1;      }   }   else  /* no server number given, default to first server */   {      svr_num = 1;   }   for (cp = iptext; *cp > ' '; cp++)  /* find end of IP text */      ;   *cp = 0;    /* null terminate iptext */    cp = parse_ipad(&dns_servers[svr_num-1], &subnet, iptext);   if (cp)   {      ns_printf(pio, "IP address error: %s\n", cp);      return -1;   }#ifdef INCLUDE_NVPARMS   MEMCPY(inet_nvparms.dns_servers, dns_servers, sizeof(dns_servers));   ns_printf(pio, "Use \"nvset\" to back up to flash or disk\n");#endif   return 0;}#ifdef DNS_CLIENT_UPDT/* FUNCTION: nsupdatetest() *  * Allows the user to add the ip address of a domain name using the * Dynamic DNS update protocol as specified in rfc 2136. * * PARAM1: void *pio * * RETURNS:  */int nsupdatetest(void * pio){   char *   cp;   char * ucp;   char dnbuf[1025];         /* buffer for domain name */   unsigned snbits;          /* output of parse_ipaddr- subnet value */   ip_addr ipout;            /* output of parse_ipaddr- ip address */   unsigned long r_ttl;   int p;                   /* Return code from sending update packet */   unshort del_flag = 0;   /* see if user put ADD on cmd line */   cp = nextarg(((GEN_IO)pio)->inbuf);      if (!strncmp(cp, "add",3) && (!strncmp(cp, "delete",6)))   {      ns_printf(pio,"usage: nsupdate add <domain name> <ttl> A <ip addr>\n");      ns_printf(pio,"usage: nsupdate delete <domain name>\n");      return -1;   }   if (strncmp(cp, "delete",6) == 0)      del_flag = 1;   /* get next parameter.  This must be the domain name.*/   cp = nextarg(cp);   if (!*cp)   {      ns_printf(pio, "usage: nsupdate add <domain name> <ttl> A <ip addr>\n");      ns_printf(pio,"usage: nsupdate delete <domain name>\n");      return -1;   }   strcpy(dnbuf,cp);   ucp = &dnbuf[0];   while (*ucp != ' ') ucp++;   *ucp = '\0';   /* If this is a delete operation, call dns_update with zero values for */   /* ttl and ip_addr                                                     */   if (del_flag == 1)   {      r_ttl = 0; /* ttl is 0 */      ipout = 0; /* ip address is 0 */      p = dns_update(soa_mname, dnbuf, ipout, r_ttl, pio);      if (p >= 0)         ns_printf(pio, "Update function returned the following response: %d\n",p);      else         ns_printf(pio, "Authoritative name server not found\n");      return 0;   }         /* Next parameter must be ttl */   cp = nextarg(cp);   if (!(isdigit(*cp)))   {      ns_printf(pio, "usage: nsupdate add <domain name> <ttl> A <ip addr>\n");      ns_printf(pio,"usage: nsupdate delete <domain name>\n");      return -1;   }   else      r_ttl = atol(cp);   /* Next parameter must be class- in this case an A */   cp = nextarg(cp);   if (*cp != 'A')   {      ns_printf(pio, "usage: nsupdate add <domain name> <ttl> A <ip addr>\n");      ns_printf(pio,"usage: nsupdate delete <domain name>\n");      return -1;   }   /* Final parameter is an ip address */   cp = nextarg(cp);   if (parse_ipad(&ipout, &snbits, cp))   {      ns_printf(pio, "usage: nsupdate add <domain name> <ttl> A <ip addr>\n");      ns_printf(pio,"usage: nsupdate delete <domain name>\n");      return -1;   }   p = dns_update(soa_mname, dnbuf, ipout, r_ttl, pio);   if (p >= 0)   {      ns_printf(pio, "Update function returned the following error: %d\n",p);   }   else      ns_printf(pio, "Authoritative name server not found\n");   return 0;}#endif   /* DNS_CLIENT_UPDT */#endif   /* DNS_CLIENT *//* FUNCTION: ping_setdelay() *  * Set the default value of delay (between pings). This value affects all sessions * * PARAM1: GEN_IO pio - device for console output * * RETURNS: 0 on success, or one of the PING error codes */intping_setdelay(void * pio){   u_long   newdelay;   char *   arg   =  nextarg(((GEN_IO)pio)->inbuf);   unsigned num_bits,num_dec_digits;   if (*arg < '0' || *arg > '9')   {      ns_printf(pio,"current ping delay is %ld\n", (pingdelay*TIMEFOR1TICK) );      ns_printf(pio,"to set, enter number of milliseconds on command line.\n");      return PING_DELAY_BAD_ARG;   }   num_bits = sizeof(long) * 8 ;   num_dec_digits = ((num_bits*3)/10) + 1 ;   if ( num_dec_digits <= (unsigned)strlen(arg) )   {      ns_printf(pio,"Delay value is too large. Max value allowed is 2^%d\n",       num_bits);      return PING_DELAY_BAD_ARG;   }   newdelay = atol(arg);   pingdelay = newdelay/TIMEFOR1TICK;     /* save in PC ticks */   ns_printf(pio,"set inter-ping delay to (approx) %ld ms.\n",     pingdelay*TIMEFOR1TICK);   return SUCCESS;}/* FUNCTION: ping_setlength() * * Set the default value of length of ping packets. * This value affects all sessions * * PARAM1: GEN_IO pio - device for console output * * RETURNS: 0 on success, or one of the PING error codes */intping_setlength(void * pio)    /* menu routine to set default ping size */{   char *   cp =  nextarg(((GEN_IO)pio)->inbuf);   int   newlen;   if (!*cp)   /* no arg given */   {      ns_printf(pio,"default ping length is %d\n", deflength);      ns_printf(pio,"To change it, put new number on command line\n");      return PING_LEN_BAD_ARG;   }   newlen = atoi(cp);   if (newlen < 60 || newlen > 1500)      ns_printf(pio,"CAUTION: %d is unusual length\n", newlen);   deflength = newlen;   return SUCCESS;}/* FUNCTION: ping_sethost() *  * Set the default host to be pinged. * This value affects all sessions. * * PARAM1: GEN_IO pio - device for console output * PARAM2: char * host = nextarg(((GEN_IO * * RETURNS: 0 on success, or one of the PING error codes */intping_sethost(void * pio)   /* set default host for pings, et.al. */{   int   e;   char *   host  =  nextarg(((GEN_IO)pio)->inbuf);   ip_addr oldhost = activehost; /* save old host in case it breaks */   e = in_reshost(host, &activehost, RH_VERBOSE | RH_BLOCK);   if (e)      activehost = oldhost;   return e;}#ifdef   MINI_PINGintmini_ping(void * pio){   int err;   if(!activehost)   {      ns_printf(pio,"set host first\n");      return 1;   }   err = icmpEcho(activehost, NULL, deflength, 88);   if(err == 0)      ns_printf(pio,"ping sent, check icmp for reply\n");   else      ns_printf(pio,"ping send error %d\n", err);   return err;   }#endif   /* MINI_PING */#ifdef CHANGE_PWD /* allow user to change password *//* FUNCTION: get1ch() *  * Get 1 char from input device of pio. * * PARAM1: void * vio - device for console input/output * * RETURNS: received char, else -1. */#include "userpass.h"int get1ch(void *vio){   int ch=-1;   GEN_IO pio = (GEN_IO)vio;  /* convert void* to our IO device type */   if ( pio && pio->getch )   /*if i/p func is supplied*/   {      do       {         ch = (pio->getch)(pio->id);         if ( ch == 0 )            tk_yield();    /* Give timeslice to other processes */      } while ( ch == 0 ) ;   }   return ch;}/* FUNCTION: change_pwd() *  * Change the password of a user. * * PARAM1: void * vio - device for console input/output * * RETURNS: 0 on success, else -1. */intchange_pwd(void * pio){   char * user;   char * cp =  nextarg(((GEN_IO)pio)->inbuf);   char oldpwd[MAX_USERLENGTH];   char newpwd[MAX_USERLENGTH];   int i;   int ch;   if (!*cp)   /* no arg given */   {      ns_printf(pio,"Error - User name not specfied\n");      ns_printf(pio,"Usage: changepwd <username>\n");      return -1;   }   user = cp; /* point to start of user name */   while ((*cp != ' ') && (*cp != '\n') && (*cp != '\r') && (*cp != '\t'))      cp++;   *cp = 0; /* null terminate user name */   /* get the current password */   ns_printf(pio,"Enter old password> ");   i=0;   do   {      ch = get1ch(pio);      if ((ch != ' ') && (ch != '\n') && (ch != '\r') && (ch != '\t'))      {         oldpwd[i++] = ch;         ns_printf(pio,"*");      }      else      {         oldpwd[i]=0; /* overwrite linefeed with null, to null-terminate */         ns_printf(pio,"\n");         break;      }   } while (ch != -1);   ns_printf(pio,"Enter new password> ");   i=0;   do   {      ch = get1ch(pio);      if ((ch != ' ') && (ch != '\n') && (ch != '\r') && (ch != '\t'))      {         newpwd[i++] = ch;         ns_printf(pio,"*");      }      else      {         newpwd[i]=0; /* overwrite linefeed with null, to null-terminate */         ns_printf(pio,"\n");         break;      }   } while (ch != -1);   if (add_user(user,oldpwd,newpwd) == TRUE)      ns_printf(pio,"Password successfully changed.\n");   else   {      ns_printf(pio,"Error - couldn't change password.\n");      return -1;   }   return 0;}#endif /* CHANGE_PWD */#endif /* !NTF */#endif   /* IN_MENUS *//* FUNCTION: tk_susp() * * tk_susp() - suspend a task by CLI command *  * PARAM1: void * pio * * RETURNS:  */int tk_susp(void * pio){#ifdef NET_STATS   task * tk;   char *   arg2;   int  tid = 0;   arg2 = nextarg(((GEN_IO)pio)->inbuf);  /* get task index from cmd line */   if (arg2 && *arg2)      tid = atoi(arg2);   if (tid < 1)   {      ns_printf(pio,"task id must be > 0\n");      return -1;   }   tk = tk_cur;   do {      tk = tk->tk_next;      if ( tk->tk_tid == tid ) {#ifdef DEBUG         ns_printf(pio,"found task %s: %s\n", arg2, tk->tk_name );#endif /* DEBUG */         tk->tk_flags &= ~TF_AWAKE;         tk->tk_waketick = 0; /* clear wakeup tick flag */         break;      }   } while ( tk != tk_cur );#ifdef DEBUG   if ( tk == tk_cur )      ns_printf(pio,"Task %s NOT found\n", arg2);   tk_stats(pio);#endif /* DEBUG */#else   USE_ARG(pio);#endif   return 0;}/* FUNCTION: tk_awaken() * * tk_awaken() - awaken a task by CLI command *  * PARAM1: void * pio * * RETURNS:  */int tk_awaken(void * pio){#ifdef NET_STATS   task * tk;   char *   arg2;   int  tid = 0;   arg2 = nextarg(((GEN_IO)pio)->inbuf);  /* get task index from cmd line */   if (arg2 && *arg2)      tid = atoi(arg2);   if (tid < 1)   {      ns_printf(pio,"task id must be > 0\n");      return -1;   }   tk = tk_cur;   do {      tk = tk->tk_next;      if ( tk->tk_tid == tid ) {#ifdef DEBUG         ns_printf(pio,"found task %s: %s\n", arg2, tk->tk_name );#endif /* DEBUG */         tk_wake(tk);         break;      }   } while ( tk != tk_cur );#ifdef DEBUG   if ( tk == tk_cur )      ns_printf(pio,"Task %s NOT found\n", arg2);   tk_stats(pio);#endif /* DEBUG */#else   USE_ARG(pio);#endif   return 0;}/* FUNCTION: tk_killit() * * tk_killit() - kill a task by CLI command *  * PARAM1: void * pio * * RETURNS:  */int tk_killit(void * pio){#ifdef NET_STATS   task * tk;   char *   arg2;   int  tid = 0;   arg2 = nextarg(((GEN_IO)pio)->inbuf);  /* get task index from cmd line */   if (arg2 && *arg2)      tid = atoi(arg2);   if (tid < 1)   {      ns_printf(pio,"task id must be > 0\n");      return -1;   }   if (tid == tk_cur->tk_tid ) {      ns_printf(pio,"no CLI suicide\n");      return -1;   }   tk = tk_cur;   do {      tk = tk->tk_next;      if ( tk->tk_tid == tid ) {#ifdef DEBUG         ns_printf(pio,"found task %s: %s\n", arg2, tk->tk_name );#endif /* DEBUG */         tk_kill(tk);         break;      }   } while ( tk != tk_cur );#ifdef DEBUG   if ( tk == tk_cur )      ns_printf(pio,"Task %s NOT found\n", arg2);   tk_stats(pio);#endif /* DEBUG */#else   USE_ARG(pio);#endif   return 0;}/* end of file nrmenus.c */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av午夜一区麻豆| 99综合影院在线| 成人小视频免费观看| 国产精品理伦片| 欧美成人在线直播| 久久综合九色综合97婷婷| 中文字幕在线不卡| 激情久久久久久久久久久久久久久久| av高清久久久| 国产人妖乱国产精品人妖| 香港成人在线视频| 色av一区二区| 中文字幕一区三区| 国产精品一区2区| 欧美一级一区二区| 亚洲国产成人av网| 一本久久a久久精品亚洲| 国产欧美日韩麻豆91| 激情文学综合插| 欧美一二三区在线观看| 亚洲成人免费观看| 欧美性高清videossexo| 亚洲久本草在线中文字幕| 粉嫩av一区二区三区| 久久久久国产成人精品亚洲午夜 | 国产精品区一区二区三区| 麻豆国产欧美一区二区三区| 日本道免费精品一区二区三区| 中文字幕免费不卡| 国产91精品入口| 国产精品免费视频一区| 国产.精品.日韩.另类.中文.在线.播放| 555夜色666亚洲国产免| 午夜电影网一区| 7777精品伊人久久久大香线蕉完整版 | 亚洲欧美自拍偷拍| 成人综合激情网| 国产精品色一区二区三区| 国产成人在线视频播放| 国产欧美精品日韩区二区麻豆天美| 喷水一区二区三区| 日韩一级二级三级| 激情欧美一区二区三区在线观看| 欧美xxxxx牲另类人与| 国产伦理精品不卡| 欧美日韩国产高清一区二区三区 | 麻豆国产欧美一区二区三区| 国产精品超碰97尤物18| 国产精品美女久久久久久久久久久 | 国产suv精品一区二区883| 日韩欧美中文一区| 韩国av一区二区三区四区| 久久色.com| 99在线视频精品| 亚洲三级在线看| 欧美另类videos死尸| 久久se精品一区二区| 欧美激情一区二区三区不卡 | 一级精品视频在线观看宜春院| 色婷婷一区二区| 奇米影视7777精品一区二区| 日韩免费视频线观看| 成人性生交大片免费看中文| 一二三四区精品视频| 日韩亚洲国产中文字幕欧美| 高清不卡一二三区| 亚洲永久免费av| 国产午夜精品一区二区三区嫩草 | 成人免费一区二区三区在线观看| 日本中文字幕一区二区有限公司| 久久综合久久99| 久久99精品久久久久久国产越南 | 1区2区3区欧美| 在线播放欧美女士性生活| 国产专区综合网| 亚洲一二三四区| 国产日韩视频一区二区三区| 欧美日韩一区二区三区高清| 国产精品一区二区91| 亚洲chinese男男1069| 亚洲国产高清在线观看视频| 欧美日韩一级黄| 不卡一卡二卡三乱码免费网站| 午夜精品久久久久久久久| 中文字幕欧美国产| 精品久久五月天| 亚洲精品一卡二卡| 国产一区二区按摩在线观看| 亚洲国产日韩一区二区| 色婷婷久久久综合中文字幕| 国产精品久久久爽爽爽麻豆色哟哟 | 国产无人区一区二区三区| 亚洲国产精品一区二区www在线| 免费久久精品视频| 欧美电视剧免费观看| 99riav一区二区三区| 99在线精品一区二区三区| 国产欧美va欧美不卡在线| 欧美一区午夜精品| 色婷婷国产精品综合在线观看| 国产成人福利片| 国模娜娜一区二区三区| 日韩电影在线免费看| 亚洲高清视频中文字幕| 亚洲人成7777| 国产精品成人在线观看| 国产精品电影一区二区三区| 国产三级久久久| 国产三级精品在线| 精品国产乱码久久久久久久| 日韩你懂的在线播放| 欧美一级生活片| 欧美一区二区三区在线视频 | 国产夜色精品一区二区av| 日韩欧美激情在线| 欧美大尺度电影在线| 日韩区在线观看| 久久一区二区视频| 日韩精品一区二区三区视频播放 | 欧美三级中文字幕在线观看| 91麻豆国产福利在线观看| 91免费观看在线| 91麻豆swag| 欧美性大战久久久久久久蜜臀| 97se狠狠狠综合亚洲狠狠| 91在线观看视频| 色88888久久久久久影院野外| 91在线观看成人| 色老汉一区二区三区| 欧美日韩一区二区不卡| 欧美日韩在线不卡| 91精品国产手机| 精品国产欧美一区二区| 久久久久亚洲蜜桃| 国产精品伦理一区二区| 中文字幕亚洲一区二区va在线| 亚洲三级小视频| 天天综合网 天天综合色| 久久国产精品99精品国产| 成人性生交大片免费看在线播放| 99re成人精品视频| 欧美精品一级二级| 精品国产成人在线影院| 久久久久久久久久久久久女国产乱| 久久精品视频一区| 精品影视av免费| 经典三级在线一区| 欧美日韩三级一区二区| 亚洲欧美日韩一区| 一区二区三区在线免费| 午夜激情综合网| 国产传媒欧美日韩成人| 色婷婷综合久久久久中文一区二区 | 亚洲午夜视频在线| 国产精品一区三区| 曰韩精品一区二区| 亚洲综合小说图片| 精东粉嫩av免费一区二区三区| 成人小视频在线| 欧美乱妇23p| 国产日产精品1区| 三级不卡在线观看| 国产91精品在线观看| 欧美在线999| 日本一区二区视频在线| 香蕉久久一区二区不卡无毒影院| 国产福利91精品一区| 欧美日韩国产色站一区二区三区| 国产日韩欧美在线一区| 婷婷开心激情综合| 色偷偷成人一区二区三区91| 日韩一二三区视频| 亚洲少妇30p| 国产不卡免费视频| 欧美大胆人体bbbb| 日韩精品电影在线| 日本高清免费不卡视频| 国产精品人妖ts系列视频| 美腿丝袜亚洲一区| 欧美日韩和欧美的一区二区| 中文字幕在线不卡国产视频| 国产精品1024| 欧美大黄免费观看| 美女www一区二区| 欧美男女性生活在线直播观看| 亚洲欧美日韩国产综合| 懂色av噜噜一区二区三区av| 久久久99精品免费观看不卡| 日本欧美在线看| 欧美伦理电影网| 亚洲一线二线三线久久久| 99久久精品免费精品国产| 精品国产电影一区二区| 免费观看91视频大全| 91精品国产欧美一区二区18| 亚洲成人三级小说| 在线精品视频一区二区| 亚洲美女免费在线| 99综合影院在线| 综合在线观看色|