|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /* Copyright (c) 1997, 1998 Apple Computer, Inc. All Rights Reserved */
26: /*
27: * @(#)ndrv.h 1.1 (Rhapsody) 6/10/97
28: * Justin Walker - 970604
29: */
30:
31: #ifndef _NET_NDRV_H
32: #define _NET_NDRV_H
33:
34: struct sockaddr_ndrv
35: { unsigned char snd_len;
36: unsigned char snd_family;
37: unsigned char snd_name[IFNAMSIZ]; /* from if.h */
38: };
39:
40: /*
41: * The cb is plugged into the socket (so_pcb), and the ifnet structure
42: * of BIND is plugged in here.
43: * For now, it looks like a raw_cb up front...
44: */
45: struct ndrv_cb
46: { struct ndrv_cb *nd_next; /* Doubly-linked list */
47: struct ndrv_cb *nd_prev;
48: struct socket *nd_socket; /* Back to the socket */
49: unsigned int nd_signature; /* Just double-checking */
50: struct sockaddr_ndrv *nd_faddr;
51: struct sockaddr_ndrv *nd_laddr;
52: struct sockproto nd_proto; /* proto family, protocol */
53: struct ifnet *nd_if;
54: };
55:
56: #define sotondrvcb(so) ((struct ndrv_cb *)(so)->so_pcb)
57: #define NDRV_SIGNATURE 0x4e445256 /* "NDRV" */
58:
59: /* Nominal allocated space for NDRV sockets */
60: #define NDRVSNDQ 8192
61: #define NDRVRCVQ 8192
62:
63: #ifdef KERNEL
64: extern struct ndrv_cb ndrvl; /* Head of controlblock list */
65: #endif
66: #endif /* _NET_NDRV_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.