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

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

?? rmpproto.c

?? 早期freebsd實現
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright (c) 1988, 1992 The University of Utah and the Center *	for Software Science (CSS). * Copyright (c) 1992, 1993 *	The Regents of the University of California.  All rights reserved. * * This code is derived from software contributed to Berkeley by * the Center for Software Science of the University of Utah Computer * Science Department.  CSS requests users of this software to return * to css-dist@cs.utah.edu any improvements that they make and grant * CSS redistribution rights. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * *	@(#)rmpproto.c	8.1 (Berkeley) 6/4/93 * * Utah $Hdr: rmpproto.c 3.1 92/07/06$ * Author: Jeff Forys, University of Utah CSS */#ifndef lintstatic char sccsid[] = "@(#)rmpproto.c	8.1 (Berkeley) 6/4/93";#endif /* not lint */#include <sys/param.h>#include <sys/time.h>#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <syslog.h>#include <unistd.h>#include "defs.h"/***  ProcessPacket -- determine packet type and do what's required.****	An RMP BOOT packet has been received.  Look at the type field**	and process Boot Requests, Read Requests, and Boot Complete**	packets.  Any other type will be dropped with a warning msg.****	Parameters:**		rconn - the new connection**		client - list of files available to this host****	Returns:**		Nothing.****	Side Effects:**		- If this is a valid boot request, it will be added to**		  the linked list of outstanding requests (RmpConns).**		- If this is a valid boot complete, its associated**		  entry in RmpConns will be deleted.**		- Also, unless we run out of memory, a reply will be**		  sent to the host that sent the packet.*/voidProcessPacket(rconn, client)	RMPCONN *rconn;	CLIENT *client;{	struct rmp_packet *rmp;	RMPCONN *rconnout;	rmp = &rconn->rmp;		/* cache pointer to RMP packet */	switch(rmp->r_type) {		/* do what we came here to do */		case RMP_BOOT_REQ:		/* boot request */			if ((rconnout = NewConn(rconn)) == NULL)				return;			/*			 *  If the Session ID is 0xffff, this is a "probe"			 *  packet and we do not want to add the connection			 *  to the linked list of active connections.  There			 *  are two types of probe packets, if the Sequence			 *  Number is 0 they want to know our host name, o/w			 *  they want the name of the file associated with			 *  the number spec'd by the Sequence Number.			 *			 *  If this is an actual boot request, open the file			 *  and send a reply.  If SendBootRepl() does not			 *  return 0, add the connection to the linked list			 *  of active connections, otherwise delete it since			 *  an error was encountered.			 */			if (rmp->r_brq.rmp_session == RMP_PROBESID) {				if (WORDZE(rmp->r_brq.rmp_seqno))					(void) SendServerID(rconnout);				else					(void) SendFileNo(rmp, rconnout,					                  client? client->files:					                          BootFiles);				FreeConn(rconnout);			} else {				if (SendBootRepl(rmp, rconnout,				    client? client->files: BootFiles))					AddConn(rconnout);				else					FreeConn(rconnout);			}			break;		case RMP_BOOT_REPL:		/* boot reply (not valid) */			syslog(LOG_WARNING, "%s: sent a boot reply",			       EnetStr(rconn));			break;		case RMP_READ_REQ:		/* read request */			/*			 *  Send a portion of the boot file.			 */			(void) SendReadRepl(rconn);			break;		case RMP_READ_REPL:		/* read reply (not valid) */			syslog(LOG_WARNING, "%s: sent a read reply",			       EnetStr(rconn));			break;		case RMP_BOOT_DONE:		/* boot complete */			/*			 *  Remove the entry from the linked list of active			 *  connections.			 */			(void) BootDone(rconn);			break;		default:			/* unknown RMP packet type */			syslog(LOG_WARNING, "%s: unknown packet type (%u)",			       EnetStr(rconn), rmp->r_type);	}}/***  SendServerID -- send our host name to who ever requested it.****	Parameters:**		rconn - the reply packet to be formatted.****	Returns:**		1 on success, 0 on failure.****	Side Effects:**		none.*/intSendServerID(rconn)	RMPCONN *rconn;{	register struct rmp_packet *rpl;	register char *src, *dst;	register u_char *size;	rpl = &rconn->rmp;			/* cache ptr to RMP packet */	/*	 *  Set up assorted fields in reply packet.	 */	rpl->r_brpl.rmp_type = RMP_BOOT_REPL;	rpl->r_brpl.rmp_retcode = RMP_E_OKAY;	ZEROWORD(rpl->r_brpl.rmp_seqno);	rpl->r_brpl.rmp_session = 0;	rpl->r_brpl.rmp_version = RMP_VERSION;	size = &rpl->r_brpl.rmp_flnmsize;	/* ptr to length of host name */	/*	 *  Copy our host name into the reply packet incrementing the	 *  length as we go.  Stop at RMP_HOSTLEN or the first dot.	 */	src = MyHost;	dst = (char *) &rpl->r_brpl.rmp_flnm;	for (*size = 0; *size < RMP_HOSTLEN; (*size)++) {		if (*src == '.' || *src == '\0')			break;		*dst++ = *src++;	}	rconn->rmplen = RMPBOOTSIZE(*size);	/* set packet length */	return(SendPacket(rconn));		/* send packet */}/***  SendFileNo -- send the name of a bootable file to the requester.****	Parameters:**		req - RMP BOOT packet containing the request.**		rconn - the reply packet to be formatted.**		filelist - list of files available to the requester.****	Returns:**		1 on success, 0 on failure.****	Side Effects:**		none.*/intSendFileNo(req, rconn, filelist)	struct rmp_packet *req;	RMPCONN *rconn;	char *filelist[];{	register struct rmp_packet *rpl;	register char *src, *dst;	register u_char *size, i;	GETWORD(req->r_brpl.rmp_seqno, i);	/* SeqNo is really FileNo */	rpl = &rconn->rmp;			/* cache ptr to RMP packet */	/*	 *  Set up assorted fields in reply packet.	 */	rpl->r_brpl.rmp_type = RMP_BOOT_REPL;	PUTWORD(i, rpl->r_brpl.rmp_seqno);	i--;	rpl->r_brpl.rmp_session = 0;	rpl->r_brpl.rmp_version = RMP_VERSION;	size = &rpl->r_brpl.rmp_flnmsize;	/* ptr to length of filename */	*size = 0;				/* init length to zero */	/*	 *  Copy the file name into the reply packet incrementing the	 *  length as we go.  Stop at end of string or when RMPBOOTDATA	 *  characters have been copied.  Also, set return code to	 *  indicate success or "no more files".	 */	if (i < C_MAXFILE && filelist[i] != NULL) {		src = filelist[i];		dst = (char *)&rpl->r_brpl.rmp_flnm;		for (; *src && *size < RMPBOOTDATA; (*size)++) {			if (*src == '\0')				break;			*dst++ = *src++;		}		rpl->r_brpl.rmp_retcode = RMP_E_OKAY;	} else		rpl->r_brpl.rmp_retcode = RMP_E_NODFLT;	rconn->rmplen = RMPBOOTSIZE(*size);	/* set packet length */	return(SendPacket(rconn));		/* send packet */}/***  SendBootRepl -- open boot file and respond to boot request.****	Parameters:**		req - RMP BOOT packet containing the request.**		rconn - the reply packet to be formatted.**		filelist - list of files available to the requester.****	Returns:**		1 on success, 0 on failure.****	Side Effects:**		none.*/intSendBootRepl(req, rconn, filelist)	struct rmp_packet *req;	RMPCONN *rconn;	char *filelist[];{	int retval;	char *filename, filepath[RMPBOOTDATA+1];	RMPCONN *oldconn;	register struct rmp_packet *rpl;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区在线观看| 欧美影院午夜播放| 精品亚洲porn| 免费不卡在线观看| 视频在线观看91| 日本在线播放一区二区三区| 午夜激情久久久| 日本中文在线一区| 麻豆精品久久久| 国产乱码一区二区三区| 国产精品18久久久久| 国产91精品入口| 日本韩国欧美三级| 欧美午夜精品电影| 宅男在线国产精品| 精品国产免费一区二区三区香蕉| 精品久久人人做人人爽| 欧美—级在线免费片| 亚洲人午夜精品天堂一二香蕉| 亚洲另类色综合网站| 五月天欧美精品| 国产精品一区二区久激情瑜伽| 成人黄色软件下载| 在线观看欧美黄色| 日韩欧美123| 中文字幕亚洲区| 亚洲成av人**亚洲成av**| 蜜桃视频一区二区三区| 成人国产精品免费观看动漫| 欧美伊人久久久久久久久影院| 51久久夜色精品国产麻豆| 精品国产乱码久久久久久老虎| 国产精品灌醉下药二区| 性做久久久久久免费观看| 精品一区二区国语对白| 91蜜桃网址入口| 欧美电影免费提供在线观看| 国产精品国产三级国产a| 日韩高清中文字幕一区| 国产成人鲁色资源国产91色综| 在线精品视频一区二区三四| 精品国产一区二区亚洲人成毛片| 亚洲欧洲精品成人久久奇米网| 秋霞午夜av一区二区三区| 99精品偷自拍| 国产三级久久久| 最新久久zyz资源站| 美女任你摸久久| 日本乱人伦aⅴ精品| 久久这里只有精品6| 亚洲第一av色| 91日韩在线专区| 久久精品一区八戒影视| 日韩福利视频导航| 91久久线看在观草草青青| 久久久激情视频| 蜜臀久久99精品久久久久宅男| 成人精品免费看| 亚洲精品一区二区精华| 亚洲va欧美va国产va天堂影院| 99re热这里只有精品视频| 久久精品一区蜜桃臀影院| 日韩电影在线观看网站| 欧美日韩一区二区电影| 亚洲三级电影网站| www.色综合.com| 欧美激情综合在线| 激情小说欧美图片| 日韩视频123| 免费的国产精品| 日韩精品一区二区三区中文不卡| 亚洲乱码一区二区三区在线观看| 成人网页在线观看| 2023国产精品自拍| 韩国成人在线视频| 久久人人爽人人爽| 国产精品乡下勾搭老头1| 26uuu国产一区二区三区| 蜜桃传媒麻豆第一区在线观看| 91精品在线观看入口| 日本亚洲三级在线| 日韩欧美综合一区| 黄网站免费久久| 欧美极品美女视频| 99国产精品99久久久久久| 亚洲人妖av一区二区| 91免费看`日韩一区二区| 亚洲日本青草视频在线怡红院| 91影院在线免费观看| 亚洲色图在线视频| 欧美日韩在线直播| 久久国产精品99久久人人澡| 久久人人爽人人爽| 99精品视频一区| 偷拍日韩校园综合在线| 777亚洲妇女| 国产一区二区在线观看视频| 国产精品毛片高清在线完整版| www.亚洲在线| 日精品一区二区| 欧美成va人片在线观看| 成人亚洲一区二区一| 亚洲精品精品亚洲| 欧美一二三区精品| 成人精品gif动图一区| 亚洲大片精品永久免费| 久久亚洲一区二区三区明星换脸 | 亚洲一区二区三区自拍| 欧美日韩一区国产| 国产伦精品一区二区三区免费 | 一区二区三区四区视频精品免费 | 中文字幕日韩欧美一区二区三区| 一道本成人在线| 日本伊人精品一区二区三区观看方式| 久久一二三国产| 欧美日韩一级片在线观看| 国产乱子轮精品视频| 亚洲.国产.中文慕字在线| 欧美一区二区三区在线视频| 成人午夜短视频| 日韩中文字幕亚洲一区二区va在线| 久久久91精品国产一区二区精品| 91福利视频网站| 粉嫩av一区二区三区粉嫩| 亚洲午夜一区二区三区| 国产欧美日韩亚州综合| 91精品免费在线观看| 99综合影院在线| 国内精品国产成人| 亚洲成人先锋电影| 亚洲色图丝袜美腿| 国产女主播一区| 日韩精品一区在线观看| 欧美日韩一二区| 日本高清免费不卡视频| 国产成人在线看| 激情小说欧美图片| 奇米色一区二区| 亚洲高清一区二区三区| 亚洲欧美日韩国产手机在线| 中文字幕国产一区二区| 久久五月婷婷丁香社区| 欧美一区二区三区系列电影| 欧美日韩你懂的| 欧美日韩三级在线| 欧美视频三区在线播放| 色av成人天堂桃色av| av成人免费在线观看| 国产91精品一区二区麻豆亚洲| 国产一区二区不卡在线| 蜜桃在线一区二区三区| 美国精品在线观看| 秋霞影院一区二区| 蜜桃av一区二区三区| 日韩成人精品在线| 青青草国产成人av片免费 | 日本国产一区二区| 欧美亚洲禁片免费| 精品婷婷伊人一区三区三| 欧美日韩国产片| 制服丝袜亚洲网站| 欧美成人综合网站| 久久久高清一区二区三区| 国产视频一区在线播放| 欧美国产一区二区在线观看| 国产精品入口麻豆九色| 亚洲欧洲日产国码二区| 一区二区三区欧美视频| 午夜欧美大尺度福利影院在线看 | 欧美一区二区三区在线电影| 日韩三级高清在线| 中文字幕在线不卡视频| 国产精品入口麻豆原神| 亚洲日韩欧美一区二区在线| 日本视频在线一区| 国产精品美女一区二区| 亚洲午夜电影网| 日韩精品国产欧美| 久久成人免费网站| 久久99精品久久久久久国产越南| 精品午夜久久福利影院| 久久久久久免费| 免费成人在线网站| 欧美精品少妇一区二区三区| 亚洲精品久久嫩草网站秘色| 成人黄色一级视频| 国产午夜精品理论片a级大结局| 欧美aaa在线| 欧美高清你懂得| 亚洲第一狼人社区| 欧美影院一区二区三区| 亚洲精品视频自拍| 色综合一区二区| 亚洲精品写真福利| 91精品福利在线| 亚洲女子a中天字幕| 97se狠狠狠综合亚洲狠狠| 国产精品美女久久久久久久网站| 国产成人精品一区二| 国产日韩一级二级三级|