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

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

?? protosw.h

?? ecos下的gui開(kāi)發(fā)源代碼
?? H
字號(hào):
//==========================================================================
//
//      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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
樱桃国产成人精品视频| 成人欧美一区二区三区黑人麻豆| 久久久久久**毛片大全| 成人一区二区三区视频在线观看| 色94色欧美sute亚洲线路一ni| 亚洲美腿欧美偷拍| 欧美日韩精品二区第二页| 粉嫩aⅴ一区二区三区四区| 色哦色哦哦色天天综合| www日韩大片| 日韩电影在线观看电影| 成人精品视频.| 久久综合九色综合欧美亚洲| 日韩综合在线视频| 在线精品观看国产| 亚洲欧美另类小说视频| 成人性色生活片| 2023国产一二三区日本精品2022| 婷婷综合在线观看| 欧美精三区欧美精三区| 一区二区三区欧美激情| av在线这里只有精品| www国产成人| 国产在线精品一区在线观看麻豆| 欧美日韩国产一区| 天使萌一区二区三区免费观看| 日本精品一级二级| 一区二区三区在线视频观看| 91美女在线看| 一区二区三区日韩欧美| 日本高清成人免费播放| 一区二区在线看| 一本色道久久综合狠狠躁的推荐 | 国内精品免费**视频| 日韩免费视频一区二区| 久久国产精品露脸对白| 精品1区2区在线观看| 国产美女精品一区二区三区| 久久综合色天天久久综合图片| 韩国一区二区三区| 国产亚洲欧美激情| a4yy欧美一区二区三区| 亚洲欧美激情视频在线观看一区二区三区 | 国产综合色视频| 免费精品视频在线| 国产精品久久久久久久久快鸭| 日韩伦理电影网| 久久久久久久久久久久久夜| 亚洲色图视频网| av电影在线观看一区| 极品少妇一区二区| 亚洲成年人影院| 亚洲色欲色欲www| 2014亚洲片线观看视频免费| 欧美羞羞免费网站| 91蜜桃视频在线| 成人免费精品视频| 国产成人精品免费视频网站| 日本vs亚洲vs韩国一区三区二区 | 欧美蜜桃一区二区三区| 99精品在线观看视频| 国产69精品久久777的优势| 国产一区在线不卡| 另类小说色综合网站| 日韩成人精品在线观看| 亚洲小说欧美激情另类| 国产精品乱码一区二三区小蝌蚪| 久久久影视传媒| 久久久久久久久久久久久久久99| 欧美一区二区视频在线观看2022| 欧美视频一区在线观看| 欧美性猛片aaaaaaa做受| 在线免费精品视频| 欧美日韩视频在线观看一区二区三区| 99久久综合精品| 99国内精品久久| 色av成人天堂桃色av| 在线看不卡av| 欧美日韩亚洲综合一区二区三区 | 欧美一区二区在线看| 777色狠狠一区二区三区| 欧美优质美女网站| 欧美中文字幕亚洲一区二区va在线 | 日韩亚洲电影在线| 欧美不卡123| 久久久不卡网国产精品一区| 国产夜色精品一区二区av| 中文在线资源观看网站视频免费不卡 | 亚洲一级在线观看| 首页欧美精品中文字幕| 麻豆中文一区二区| 国产精品1区2区| 国产91丝袜在线播放| 91在线观看美女| 欧美中文字幕亚洲一区二区va在线| 欧美三日本三级三级在线播放| 91麻豆精品国产综合久久久久久 | 欧美三级三级三级爽爽爽| 欧美午夜免费电影| 日韩网站在线看片你懂的| 国产午夜精品一区二区三区嫩草| 国产午夜精品久久久久久久| 国产成人精品一区二区三区四区| 国产成人啪免费观看软件| 91国产丝袜在线播放| 精品免费国产二区三区| 国产精品女同一区二区三区| 一个色综合av| 久久福利视频一区二区| caoporm超碰国产精品| 欧美日韩免费电影| 国产亲近乱来精品视频| 一二三区精品视频| 国产一区二区在线视频| 99re热这里只有精品视频| 欧美日韩亚洲国产综合| 久久美女艺术照精彩视频福利播放| 国产精品入口麻豆九色| 亚洲国产精品综合小说图片区| 久久精品国产免费| 91福利在线看| 国产网站一区二区| 亚洲国产婷婷综合在线精品| 国产成人av影院| 欧美一区永久视频免费观看| 中文欧美字幕免费| 久久精品国产一区二区三区免费看| 成人激情文学综合网| 欧美一区在线视频| 亚洲欧美日韩中文字幕一区二区三区| 卡一卡二国产精品 | 国产盗摄女厕一区二区三区 | 99热在这里有精品免费| 在线综合+亚洲+欧美中文字幕| 中国色在线观看另类| 男男gaygay亚洲| 日本高清免费不卡视频| 日本一区二区免费在线| 麻豆视频一区二区| 欧美丰满美乳xxx高潮www| 亚洲欧洲精品一区二区三区| 国产在线一区二区综合免费视频| 欧美日韩电影在线| 亚洲一区二区在线免费观看视频| 国产大陆精品国产| 久久影院电视剧免费观看| 日韩精品亚洲一区二区三区免费| 91免费在线播放| 国产精品污污网站在线观看| 韩国欧美国产一区| 精品噜噜噜噜久久久久久久久试看| 亚洲成人在线观看视频| 91啪九色porn原创视频在线观看| 久久久久国产精品麻豆ai换脸 | 秋霞国产午夜精品免费视频| 在线免费观看不卡av| √…a在线天堂一区| 成熟亚洲日本毛茸茸凸凹| 久久免费午夜影院| 国产一区二区不卡| 久久婷婷国产综合精品青草| 另类中文字幕网| 欧美va在线播放| 另类小说图片综合网| 日韩欧美激情四射| 久久99国产精品麻豆| 精品国产污网站| 青青草原综合久久大伊人精品| 欧美日韩免费电影| 免费黄网站欧美| 精品乱码亚洲一区二区不卡| 精品一区免费av| 国产亚洲短视频| 不卡的av电影| 一级日本不卡的影视| 9191成人精品久久| 麻豆精品在线播放| 国产三级一区二区三区| 国产91精品一区二区| 国产精品午夜春色av| 色欧美日韩亚洲| 日韩国产高清在线| 精品国产一区a| 成人精品免费网站| 亚洲综合激情网| 91麻豆精品国产自产在线观看一区 | 欧美一区二区三区影视| 青青草97国产精品免费观看 | 日韩亚洲欧美高清| 国产一区视频在线看| 国产欧美精品一区二区色综合朱莉| 成人黄色电影在线| 亚洲午夜精品久久久久久久久| 欧美一区二区三区四区在线观看 | 国产精品久久久久久亚洲毛片| 色成人在线视频| 捆绑调教美女网站视频一区| 国产精品天美传媒| 欧美影院精品一区| 国产乱色国产精品免费视频|