⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 raw_cb.h

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 H
字号:
/* static	char	*sccsid = "@(#)raw_cb.h	4.1	(ULTRIX)	7/2/90"; *//************************************************************************ *									* *			Copyright (c) 1984,1988 by			* *		Digital Equipment Corporation, Maynard, MA		* *			All rights reserved.				* *									* *   This software is furnished under a license and may be used and	* *   copied  only  in accordance with the terms of such license and	* *   with the  inclusion  of  the  above  copyright  notice.   This	* *   software  or  any  other copies thereof may not be provided or	* *   otherwise made available to any other person.  No title to and	* *   ownership of the software is hereby transferred.			* *									* *   This software is  derived  from  software  received  from  the	* *   University    of   California,   Berkeley,   and   from   Bell	* *   Laboratories.  Use, duplication, or disclosure is  subject  to	* *   restrictions  under  license  agreements  with  University  of	* *   California and with AT&T.						* *									* *   The information in this software is subject to change  without	* *   notice  and should not be construed as a commitment by Digital	* *   Equipment Corporation.						* *									* *   Digital assumes no responsibility for the use  or  reliability	* *   of its software on equipment which is not supplied by Digital.	* *									* ************************************************************************//* *	15-Jan-88	lp *		Final 43bsd release *//* * Copyright (c) 1980 Regents of the University of California. * All rights reserved.  The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * *	raw_cb.h	6.3 (Berkeley) 6/8/85 *//* * Raw protocol interface control block.  Used * to tie a socket to the generic raw interface. */struct rawcb {	struct	rawcb *rcb_next;	/* doubly linked list */	struct	rawcb *rcb_prev;	struct	socket *rcb_socket;	/* back pointer to socket */	struct	sockaddr rcb_faddr;	/* destination address */	struct	sockaddr rcb_laddr;	/* socket's address */	struct	sockproto rcb_proto;	/* protocol family, protocol */	caddr_t	rcb_pcb;		/* protocol specific stuff */	struct 	mbuf *rcb_options;	/* protocol specific options */	struct	route rcb_route;	/* routing information */	short	rcb_flags;};/* * Since we can't interpret canonical addresses, * we mark an address present in the flags field. */#define	RAW_LADDR	01#define	RAW_FADDR	02#define	RAW_DONTROUTE	04		/* no routing, default */#define	sotorawcb(so)		((struct rawcb *)(so)->so_pcb)/* * Nominal space allocated to a raw socket. */#define	RAWSNDQ		2048#define	RAWRCVQ		2048/* * Format of raw interface header prepended by * raw_input after call from protocol specific * input routine. */struct raw_header {	struct	sockproto raw_proto;	/* format of packet */	struct	sockaddr raw_dst;	/* dst address for rawintr */	struct	sockaddr raw_src;	/* src address for sbappendaddr */};#ifdef KERNELstruct rawcb rawcb;			/* head of list */#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -