|
|
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: /*
26: * Copyright (c) 1988, 1989 Apple Computer, Inc.
27: *
28: * The information contained herein is subject to change without
29: * notice and should not be construed as a commitment by Apple
30: * Computer, Inc. Apple Computer, Inc. assumes no responsibility
31: * for any errors that may appear.
32: *
33: * Confidential and Proprietary to Apple Computer, Inc.
34: */
35:
36: /* "@(#)nbp.h: 2.0, 1.7; 7/26/89; Copyright 1988-89, Apple Computer, Inc." */
37:
38: /*
39: * Title: nbp.h
40: *
41: * Facility: Include file for NBP kernel module.
42: *
43: * Author: Kumar Vora, Creation Date: May-1-1989
44: *
45: * History:
46: * X01-001 Kumar Vora May-1-1989
47: * Initial Creation.
48: */
49:
50: /* Struct for name registry */
51: typedef struct _nve_ {
52: struct _nve_ *fwd;
53: struct _nve_ *bwd;
54: gbuf_t *tag; /*pointer to the parent gbuf_t*/
55: at_nvestr_t zone;
56: u_int zone_hash;
57: at_nvestr_t object;
58: u_int object_hash;
59: at_nvestr_t type;
60: u_int type_hash;
61: at_inet_t address;
62: u_char enumerator;
63: u_char ddptype;
64: int pid;
65: } nve_entry_t;
66:
67: #define NBP_WILD_OBJECT 0x01
68: #define NBP_WILD_TYPE 0x02
69: #define NBP_WILD_MASK 0x03
70:
71: typedef struct nbp_req {
72: int (*func)();
73: gbuf_t *response; /* the response datagram */
74: int space_unused; /* Space available in the resp */
75: /* packet. */
76: gbuf_t *request; /* The request datagram */
77: /* Saved for return address */
78: nve_entry_t nve;
79: u_char flags; /* Flags to indicate whether or */
80: /* not the request tuple has */
81: /* wildcards in it */
82: } nbp_req_t;
83:
84:
85: #define DEFAULT_ZONE(nve) (nve->len == 1 && nve->str[0] == '*')
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.