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

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

?? protosw.h

?? ecos下的gui開發(fā)源代碼
?? H
字號:
//==========================================================================
//
//      include/sys/protosw.h
//
//==========================================================================
//####BSDCOPYRIGHTBEGIN####
//
// -------------------------------------------
//
// Portions of this software may have been derived from OpenBSD, 
// FreeBSD or other sources, and are covered by the appropriate
// copyright disclaimers included herein.
//
// Portions created by Red Hat are
// Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
//
// -------------------------------------------
//
//####BSDCOPYRIGHTEND####
//==========================================================================

/*-
 * Copyright (c) 1982, 1986, 1993
 *	The Regents of the University of California.  All rights reserved.
 *
 * 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.
 *
 *	@(#)protosw.h	8.1 (Berkeley) 6/2/93
 * $FreeBSD: src/sys/sys/protosw.h,v 1.28.2.2 2001/07/03 11:02:01 ume Exp $
 */

#ifndef _SYS_PROTOSW_H_
#define _SYS_PROTOSW_H_

/* Forward declare these structures referenced from prototypes below. */
struct mbuf;
struct proc;
struct sockaddr;
struct socket;
struct sockopt;

/*#ifdef _KERNEL*/
/*
 * Protocol switch table.
 *
 * Each protocol has a handle initializing one of these structures,
 * which is used for protocol-protocol and system-protocol communication.
 *
 * A protocol is called through the pr_init entry before any other.
 * Thereafter it is called every 200ms through the pr_fasttimo entry and
 * every 500ms through the pr_slowtimo for timer based actions.
 * The system will call the pr_drain entry if it is low on space and
 * this should throw away any non-critical data.
 *
 * Protocols pass data between themselves as chains of mbufs using
 * the pr_input and pr_output hooks.  Pr_input passes data up (towards
 * the users) and pr_output passes it down (towards the interfaces); control
 * information passes up and down on pr_ctlinput and pr_ctloutput.
 * The protocol is responsible for the space occupied by any the
 * arguments to these entries and must dispose it.
 *
 * In retrospect, it would be a lot nicer to use an interface
 * similar to the vnode VOP interface.
 */
struct protosw {
	short	pr_type;		/* socket type used for */
	struct	domain *pr_domain;	/* domain protocol a member of */
	short	pr_protocol;		/* protocol number */
	short	pr_flags;		/* see below */
/* protocol-protocol hooks */
	void	(*pr_input) __P((struct mbuf *, int len));
					/* input to protocol (from below) */
	int	(*pr_output)	__P((struct mbuf *m, struct socket *so));
					/* output to protocol (from above) */
	void	(*pr_ctlinput)__P((int, struct sockaddr *, void *));
					/* control input (from below) */
	int	(*pr_ctloutput)__P((struct socket *, struct sockopt *));
					/* control output (from above) */
/* user-protocol hook */
	void	*pr_ousrreq;
/* utility hooks */
	void	(*pr_init) __P((void));	/* initialization hook */
	void	(*pr_fasttimo) __P((void));
					/* fast timeout (200ms) */
	void	(*pr_slowtimo) __P((void));
					/* slow timeout (500ms) */
	void	(*pr_drain) __P((void));
					/* flush any excess space possible */
	struct	pr_usrreqs *pr_usrreqs;	/* supersedes pr_usrreq() */
};
/*#endif*/

#define	PR_SLOWHZ	2		/* 2 slow timeouts per second */
#define	PR_FASTHZ	5		/* 5 fast timeouts per second */

/*
 * Values for pr_flags.
 * PR_ADDR requires PR_ATOMIC;
 * PR_ADDR and PR_CONNREQUIRED are mutually exclusive.
 * PR_IMPLOPCL means that the protocol allows sendto without prior connect,
 *	and the protocol understands the MSG_EOF flag.  The first property is
 *	is only relevant if PR_CONNREQUIRED is set (otherwise sendto is allowed
 *	anyhow).
 */
#define	PR_ATOMIC	0x01		/* exchange atomic messages only */
#define	PR_ADDR		0x02		/* addresses given with messages */
#define	PR_CONNREQUIRED	0x04		/* connection required by protocol */
#define	PR_WANTRCVD	0x08		/* want PRU_RCVD calls */
#define	PR_RIGHTS	0x10		/* passes capabilities */
#define PR_IMPLOPCL	0x20		/* implied open/close */
#define	PR_LASTHDR	0x40		/* enforce ipsec policy; last header */

/*
 * The arguments to usrreq are:
 *	(*protosw[].pr_usrreq)(up, req, m, nam, opt);
 * where up is a (struct socket *), req is one of these requests,
 * m is a optional mbuf chain containing a message,
 * nam is an optional mbuf chain containing an address,
 * and opt is a pointer to a socketopt structure or nil.
 * The protocol is responsible for disposal of the mbuf chain m,
 * the caller is responsible for any space held by nam and opt.
 * A non-zero return from usrreq gives an
 * UNIX error number which should be passed to higher level software.
 */
#define	PRU_ATTACH		0	/* attach protocol to up */
#define	PRU_DETACH		1	/* detach protocol from up */
#define	PRU_BIND		2	/* bind socket to address */
#define	PRU_LISTEN		3	/* listen for connection */
#define	PRU_CONNECT		4	/* establish connection to peer */
#define	PRU_ACCEPT		5	/* accept connection from peer */
#define	PRU_DISCONNECT		6	/* disconnect from peer */
#define	PRU_SHUTDOWN		7	/* won't send any more data */
#define	PRU_RCVD		8	/* have taken data; more room now */
#define	PRU_SEND		9	/* send this data */
#define	PRU_ABORT		10	/* abort (fast DISCONNECT, DETATCH) */
#define	PRU_CONTROL		11	/* control operations on protocol */
#define	PRU_SENSE		12	/* return status into m */
#define	PRU_RCVOOB		13	/* retrieve out of band data */
#define	PRU_SENDOOB		14	/* send out of band data */
#define	PRU_SOCKADDR		15	/* fetch socket's address */
#define	PRU_PEERADDR		16	/* fetch peer's address */
#define	PRU_CONNECT2		17	/* connect two sockets */
/* begin for protocols internal use */
#define	PRU_FASTTIMO		18	/* 200ms timeout */
#define	PRU_SLOWTIMO		19	/* 500ms timeout */
#define	PRU_PROTORCV		20	/* receive from below */
#define	PRU_PROTOSEND		21	/* send to below */
/* end for protocol's internal use */
#define PRU_SEND_EOF		22	/* send and close */
#define PRU_NREQ		22

#ifdef PRUREQUESTS
char *prurequests[] = {
	"ATTACH",	"DETACH",	"BIND",		"LISTEN",
	"CONNECT",	"ACCEPT",	"DISCONNECT",	"SHUTDOWN",
	"RCVD",		"SEND",		"ABORT",	"CONTROL",
	"SENSE",	"RCVOOB",	"SENDOOB",	"SOCKADDR",
	"PEERADDR",	"CONNECT2",	"FASTTIMO",	"SLOWTIMO",
	"PROTORCV",	"PROTOSEND",
	"SEND_EOF",
};
#endif

#ifdef	_KERNEL			/* users shouldn't see this decl */

struct ifnet;
struct stat;
struct ucred;
struct uio;

/*
 * If the ordering here looks odd, that's because it's alphabetical.
 * Having this structure separated out from the main protoswitch is allegedly
 * a big (12 cycles per call) lose on high-end CPUs.  We will eventually
 * migrate this stuff back into the main structure.
 */
struct pr_usrreqs {
	int	(*pru_abort) __P((struct socket *so));
	int	(*pru_accept) __P((struct socket *so, struct sockaddr **nam));
	int	(*pru_attach) __P((struct socket *so, int proto,
				   struct proc *p));
	int	(*pru_bind) __P((struct socket *so, struct sockaddr *nam,
				 struct proc *p));
	int	(*pru_connect) __P((struct socket *so, struct sockaddr *nam,
				    struct proc *p));
	int	(*pru_connect2) __P((struct socket *so1, struct socket *so2));
	int	(*pru_control) __P((struct socket *so, u_long cmd, caddr_t data,
				    struct ifnet *ifp, struct proc *p));
	int	(*pru_detach) __P((struct socket *so));
	int	(*pru_disconnect) __P((struct socket *so));
	int	(*pru_listen) __P((struct socket *so, struct proc *p));
	int	(*pru_peeraddr) __P((struct socket *so, 
				     struct sockaddr **nam));
	int	(*pru_rcvd) __P((struct socket *so, int flags));
	int	(*pru_rcvoob) __P((struct socket *so, struct mbuf *m,
				   int flags));
	int	(*pru_send) __P((struct socket *so, int flags, struct mbuf *m, 
				 struct sockaddr *addr, struct mbuf *control,
				 struct proc *p));
#define	PRUS_OOB	0x1
#define	PRUS_EOF	0x2
#define	PRUS_MORETOCOME	0x4
	int	(*pru_sense) __P((struct socket *so, struct stat *sb));
	int	(*pru_shutdown) __P((struct socket *so));
	int	(*pru_sockaddr) __P((struct socket *so, 
				     struct sockaddr **nam));
	 
	/*
	 * These three added later, so they are out of order.  They are used
	 * for shortcutting (fast path input/output) in some protocols.
	 * XXX - that's a lie, they are not implemented yet
	 * Rather than calling sosend() etc. directly, calls are made
	 * through these entry points.  For protocols which still use
	 * the generic code, these just point to those routines.
	 */
	int	(*pru_sosend) __P((struct socket *so, struct sockaddr *addr,
				   struct uio *uio, struct mbuf *top,
				   struct mbuf *control, int flags,
				   struct proc *p));
	int	(*pru_soreceive) __P((struct socket *so, 
				      struct sockaddr **paddr,
				      struct uio *uio, struct mbuf **mp0,
				      struct mbuf **controlp, int *flagsp));
	int	(*pru_sopoll) __P((struct socket *so, int events,
				     struct ucred *cred, struct proc *p));
};

int	pru_accept_notsupp __P((struct socket *so, struct sockaddr **nam));
int	pru_connect_notsupp __P((struct socket *so, struct sockaddr *nam,
				 struct proc *p));
int	pru_connect2_notsupp __P((struct socket *so1, struct socket *so2));
int	pru_control_notsupp __P((struct socket *so, u_long cmd, caddr_t data,
				 struct ifnet *ifp, struct proc *p));
int	pru_listen_notsupp __P((struct socket *so, struct proc *p));
int	pru_rcvd_notsupp __P((struct socket *so, int flags));
int	pru_rcvoob_notsupp __P((struct socket *so, struct mbuf *m, int flags));
int	pru_sense_null __P((struct socket *so, struct stat *sb));

#endif /* _KERNEL */

/*
 * The arguments to the ctlinput routine are
 *	(*protosw[].pr_ctlinput)(cmd, sa, arg);
 * where cmd is one of the commands below, sa is a pointer to a sockaddr,
 * and arg is a `void *' argument used within a protocol family.
 */
#define	PRC_IFDOWN		0	/* interface transition */
#define	PRC_ROUTEDEAD		1	/* select new route if possible ??? */
#define	PRC_IFUP		2 	/* interface has come back up */
#define	PRC_QUENCH2		3	/* DEC congestion bit says slow down */
#define	PRC_QUENCH		4	/* some one said to slow down */
#define	PRC_MSGSIZE		5	/* message size forced drop */
#define	PRC_HOSTDEAD		6	/* host appears to be down */
#define	PRC_HOSTUNREACH		7	/* deprecated (use PRC_UNREACH_HOST) */
#define	PRC_UNREACH_NET		8	/* no route to network */
#define	PRC_UNREACH_HOST	9	/* no route to host */
#define	PRC_UNREACH_PROTOCOL	10	/* dst says bad protocol */
#define	PRC_UNREACH_PORT	11	/* bad port # */
/* was	PRC_UNREACH_NEEDFRAG	12	   (use PRC_MSGSIZE) */
#define	PRC_UNREACH_SRCFAIL	13	/* source route failed */
#define	PRC_REDIRECT_NET	14	/* net routing redirect */
#define	PRC_REDIRECT_HOST	15	/* host routing redirect */
#define	PRC_REDIRECT_TOSNET	16	/* redirect for type of service & net */
#define	PRC_REDIRECT_TOSHOST	17	/* redirect for tos & host */
#define	PRC_TIMXCEED_INTRANS	18	/* packet lifetime expired in transit */
#define	PRC_TIMXCEED_REASS	19	/* lifetime expired on reass q */
#define	PRC_PARAMPROB		20	/* header incorrect */
#define	PRC_UNREACH_ADMIN_PROHIB	21	/* packet administrativly prohibited */

#define	PRC_NCMDS		22

#define	PRC_IS_REDIRECT(cmd)	\
	((cmd) >= PRC_REDIRECT_NET && (cmd) <= PRC_REDIRECT_TOSHOST)

#ifdef PRCREQUESTS
char	*prcrequests[] = {
	"IFDOWN", "ROUTEDEAD", "IFUP", "DEC-BIT-QUENCH2",
	"QUENCH", "MSGSIZE", "HOSTDEAD", "#7",
	"NET-UNREACH", "HOST-UNREACH", "PROTO-UNREACH", "PORT-UNREACH",
	"#12", "SRCFAIL-UNREACH", "NET-REDIRECT", "HOST-REDIRECT",
	"TOSNET-REDIRECT", "TOSHOST-REDIRECT", "TX-INTRANS", "TX-REASS",
	"PARAMPROB", "ADMIN-UNREACH"
};
#endif

/*
 * The arguments to ctloutput are:
 *	(*protosw[].pr_ctloutput)(req, so, level, optname, optval, p);
 * req is one of the actions listed below, so is a (struct socket *),
 * level is an indication of which protocol layer the option is intended.
 * optname is a protocol dependent socket option request,
 * optval is a pointer to a mbuf-chain pointer, for value-return results.
 * The protocol is responsible for disposal of the mbuf chain *optval
 * if supplied,
 * the caller is responsible for any space held by *optval, when returned.
 * A non-zero return from usrreq gives an
 * UNIX error number which should be passed to higher level software.
 */
#define	PRCO_GETOPT	0
#define	PRCO_SETOPT	1

#define	PRCO_NCMDS	2

#ifdef PRCOREQUESTS
char	*prcorequests[] = {
	"GETOPT", "SETOPT",
};
#endif

#ifdef _KERNEL
void	pfctlinput __P((int, struct sockaddr *));
void	pfctlinput2 __P((int, struct sockaddr *, void *));
struct protosw *pffindproto __P((int family, int protocol, int type));
struct protosw *pffindtype __P((int family, int type));
#endif

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美喷水一区二区| 中文字幕人成不卡一区| 欧美亚洲动漫另类| 99视频有精品| caoporm超碰国产精品| jlzzjlzz亚洲日本少妇| 岛国精品在线观看| 成人黄色av电影| 国产99久久精品| 不卡视频在线观看| 99这里只有久久精品视频| 99re成人精品视频| 欧美综合欧美视频| 欧美午夜宅男影院| 欧美日本在线播放| 欧美一级黄色大片| 欧美精品一区二区三区久久久| 日韩亚洲欧美高清| 久久久久久久久伊人| 国产调教视频一区| 尤物在线观看一区| 亚洲电影激情视频网站| 日韩成人一区二区三区在线观看| 青青青伊人色综合久久| 老司机午夜精品99久久| 国产电影一区在线| 99精品视频在线播放观看| 欧美日韩一级二级| 精品欧美久久久| 国产精品无人区| 亚洲一区二区精品久久av| 日韩av中文在线观看| 国产一区二区三区不卡在线观看 | 欧美一区二区大片| 久久久国产精华| 亚洲图片你懂的| 视频一区在线播放| 国产一区二区三区香蕉| 91欧美一区二区| 91精品国产综合久久久久久久久久 | 成人动漫一区二区在线| 一本在线高清不卡dvd| 在线综合视频播放| 欧美国产激情二区三区| 亚洲妇女屁股眼交7| 国产一区二区成人久久免费影院| 9i在线看片成人免费| 日韩视频123| **性色生活片久久毛片| 秋霞午夜鲁丝一区二区老狼| av福利精品导航| 91精品一区二区三区久久久久久| 国产日韩欧美麻豆| 国产激情精品久久久第一区二区 | 亚洲观看高清完整版在线观看| 麻豆国产一区二区| 99久精品国产| 久久精品在线免费观看| 亚洲午夜日本在线观看| 国产成人h网站| 这里只有精品视频在线观看| 亚洲欧洲成人av每日更新| 麻豆国产欧美日韩综合精品二区| 99久久综合狠狠综合久久| 欧美一区二区三区视频在线观看 | 亚洲高清免费一级二级三级| 风流少妇一区二区| 日韩欧美亚洲国产精品字幕久久久| 中文字幕亚洲成人| 美女网站色91| 欧美在线观看禁18| 国产精品女主播在线观看| 奇米精品一区二区三区在线观看 | 欧美日韩国产不卡| 中文字幕亚洲在| 国产在线一区二区| 在线播放91灌醉迷j高跟美女| 国产精品伦理在线| 久久精品av麻豆的观看方式| 欧美性感一区二区三区| 亚洲嫩草精品久久| www.性欧美| 久久久久九九视频| 蜜臀久久久99精品久久久久久| 在线欧美一区二区| 综合av第一页| 99视频精品在线| 欧美国产精品久久| 国产精品一二一区| 日本不卡高清视频| 在线免费观看一区| 亚洲色图在线播放| 99re热这里只有精品视频| 国产精品久久久久久久久动漫| 国产一区二区不卡老阿姨| 日韩丝袜情趣美女图片| 亚洲第一电影网| 欧美日韩视频在线观看一区二区三区 | 欧美成人aa大片| 免费观看在线色综合| 91麻豆精品国产91久久久久| 亚洲曰韩产成在线| 欧美在线综合视频| 亚洲一区二区三区自拍| 91豆麻精品91久久久久久| 专区另类欧美日韩| 波多野结衣精品在线| 日本一区二区三级电影在线观看| 国产乱码精品一区二区三区av| 精品国产精品网麻豆系列| 麻豆国产一区二区| 久久久久久毛片| 国产乱子轮精品视频| 久久久久国产精品麻豆ai换脸| 狠狠狠色丁香婷婷综合激情| 日韩欧美一区二区免费| 精品无人区卡一卡二卡三乱码免费卡 | av影院午夜一区| 亚洲免费色视频| 欧美日韩久久不卡| 日本大胆欧美人术艺术动态| 日韩欧美国产不卡| 国产一区二区三区综合| 欧美高清一级片在线观看| av成人免费在线观看| 亚洲激情图片小说视频| 欧美日韩一本到| 久久成人免费日本黄色| 欧美国产国产综合| 色中色一区二区| 亚洲国产精品麻豆| 欧美成人video| 国产激情视频一区二区在线观看| 日韩毛片一二三区| 欧美精品第一页| 国产一区二区三区蝌蚪| 亚洲六月丁香色婷婷综合久久 | 91久久香蕉国产日韩欧美9色| 亚洲综合免费观看高清在线观看| 欧美丝袜丝nylons| 另类小说视频一区二区| 欧美国产欧美综合| 欧美色综合网站| 精品在线亚洲视频| 亚洲天堂福利av| 91精品国产综合久久精品app| 韩国欧美国产1区| 亚洲欧洲一区二区在线播放| 欧美美女直播网站| 高清av一区二区| 午夜久久久久久久久久一区二区| 久久久不卡影院| 在线观看欧美精品| 九九精品视频在线看| 亚洲欧洲精品一区二区精品久久久 | 丁香激情综合国产| 五月婷婷激情综合网| 国产情人综合久久777777| 在线日韩国产精品| 国产精品一线二线三线精华| 一区二区三区精密机械公司| 精品粉嫩aⅴ一区二区三区四区| 97久久精品人人爽人人爽蜜臀| 日韩电影免费在线| 日韩久久一区二区| 久久久午夜精品理论片中文字幕| 色婷婷激情久久| 激情综合网av| 亚洲成人在线观看视频| 欧美国产1区2区| 日韩免费视频一区二区| 在线精品视频免费播放| 国产风韵犹存在线视精品| 视频一区欧美精品| 亚洲天堂免费在线观看视频| www久久精品| 精品视频一区二区不卡| youjizz久久| 国内精品久久久久影院薰衣草| 亚洲二区在线观看| 中文字幕日韩一区| 国产日韩精品一区二区三区| 欧美一三区三区四区免费在线看| 一本久久a久久精品亚洲| 国产精品一区二区在线播放| 久久99久久99精品免视看婷婷| 亚洲永久精品大片| 1000部国产精品成人观看| 国产欧美1区2区3区| 精品乱人伦一区二区三区| 欧美剧在线免费观看网站| 色狠狠av一区二区三区| av不卡在线观看| 国产成人亚洲精品青草天美| 裸体一区二区三区| 日韩国产在线观看| 日韩和欧美的一区| 婷婷久久综合九色综合绿巨人 | 国产精品自拍av| 国产麻豆一精品一av一免费|