xref: /dflybsd-src/stand/lib/iodesc.h (revision 479ab7f0492f2a51b48e8537e4f1dc686fc6014b)
1*479ab7f0SSascha Wildner /*	$NetBSD: iodesc.h,v 1.4 1995/09/23 03:31:50 gwr Exp $	*/
2*479ab7f0SSascha Wildner 
3*479ab7f0SSascha Wildner /*
4*479ab7f0SSascha Wildner  * Copyright (c) 1993 Adam Glass
5*479ab7f0SSascha Wildner  * Copyright (c) 1992 Regents of the University of California.
6*479ab7f0SSascha Wildner  * All rights reserved.
7*479ab7f0SSascha Wildner  *
8*479ab7f0SSascha Wildner  * This software was developed by the Computer Systems Engineering group
9*479ab7f0SSascha Wildner  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
10*479ab7f0SSascha Wildner  * contributed to Berkeley.
11*479ab7f0SSascha Wildner  *
12*479ab7f0SSascha Wildner  * Redistribution and use in source and binary forms, with or without
13*479ab7f0SSascha Wildner  * modification, are permitted provided that the following conditions
14*479ab7f0SSascha Wildner  * are met:
15*479ab7f0SSascha Wildner  * 1. Redistributions of source code must retain the above copyright
16*479ab7f0SSascha Wildner  *    notice, this list of conditions and the following disclaimer.
17*479ab7f0SSascha Wildner  * 2. Redistributions in binary form must reproduce the above copyright
18*479ab7f0SSascha Wildner  *    notice, this list of conditions and the following disclaimer in the
19*479ab7f0SSascha Wildner  *    documentation and/or other materials provided with the distribution.
20*479ab7f0SSascha Wildner  * 3. Neither the name of the University nor the names of its contributors
21*479ab7f0SSascha Wildner  *    may be used to endorse or promote products derived from this software
22*479ab7f0SSascha Wildner  *    without specific prior written permission.
23*479ab7f0SSascha Wildner  *
24*479ab7f0SSascha Wildner  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25*479ab7f0SSascha Wildner  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26*479ab7f0SSascha Wildner  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27*479ab7f0SSascha Wildner  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28*479ab7f0SSascha Wildner  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29*479ab7f0SSascha Wildner  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30*479ab7f0SSascha Wildner  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31*479ab7f0SSascha Wildner  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32*479ab7f0SSascha Wildner  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33*479ab7f0SSascha Wildner  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34*479ab7f0SSascha Wildner  * SUCH DAMAGE.
35*479ab7f0SSascha Wildner  */
36*479ab7f0SSascha Wildner 
37*479ab7f0SSascha Wildner #ifndef _STAND_IODESC_H_
38*479ab7f0SSascha Wildner #define	_STAND_IODESC_H_
39*479ab7f0SSascha Wildner 
40*479ab7f0SSascha Wildner struct iodesc {
41*479ab7f0SSascha Wildner 	struct	in_addr destip;		/* dest. ip addr, net order */
42*479ab7f0SSascha Wildner 	struct	in_addr myip;		/* local ip addr, net order */
43*479ab7f0SSascha Wildner 	u_short	destport;		/* dest. port, net order */
44*479ab7f0SSascha Wildner 	u_short	myport;			/* local port, net order */
45*479ab7f0SSascha Wildner 	u_long	xid;			/* transaction identification */
46*479ab7f0SSascha Wildner 	u_char	myea[6];		/* my ethernet address */
47*479ab7f0SSascha Wildner 	struct netif *io_netif;
48*479ab7f0SSascha Wildner };
49*479ab7f0SSascha Wildner 
50*479ab7f0SSascha Wildner #endif /* !_STAND_IODESC_H_ */
51