File: vendor.h

package info (click to toggle)
open-isns 0.100-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,472 kB
  • sloc: ansic: 19,959; sh: 3,211; python: 1,083; perl: 839; makefile: 213
file content (56 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * iSNS "vendor-specific" protocol definitions
 *
 * Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
 */

#ifndef ISNS_VENDOR_H
#define ISNS_VENDOR_H

#include <libisns/isns-proto.h>

/*
 * We're poor, we don't own a OUI. Let's fake one.
 */
#define OPENISNS_VENDOR_OUI	0xFFFF00
#define OPENISNS_VENDOR_PREFIX	(OPENISNS_VENDOR_OUI << 8)
#define OPENISNS_IS_PRIVATE_ATTR(tag) (((tag) >> 16) == 0xFFFF)

enum openisns_vendor_tag {
	/* Security Policy Identifier */
	OPENISNS_TAG_POLICY_SPI	= OPENISNS_VENDOR_PREFIX + ISNS_VENDOR_SPECIFIC_OTHER_BASE,

	__OPENISNS_TAG_POLICY_RESERVED,

	/* DSA signature key (public) */
	OPENISNS_TAG_POLICY_KEY,

	/* Entity name to use */
	OPENISNS_TAG_POLICY_ENTITY,

	/* Functions the client is permitted to invoke */
	OPENISNS_TAG_POLICY_FUNCTIONS,

	/* Object types the client is permitted to see. */
	OPENISNS_TAG_POLICY_OBJECT_TYPE,

	/* iSCSI node name the client is permitted to register.
	 * This attribute may occur multiple times.
	 * If absent, it defaults to POLICY_SOURCE_NAME
	 */
	OPENISNS_TAG_POLICY_NODE_NAME,

	/* Node type bitmap the client is permitted to register */
	OPENISNS_TAG_POLICY_NODE_TYPE,

	/* Default discovery domain the client will be
	 * placed in.
	 * Not used yet.
	 */
	OPENISNS_TAG_POLICY_DEFAULT_DD,
	OPENISNS_TAG_POLICY_VISIBLE_DD,
};

extern const struct isns_object_template	isns_policy_template;

#endif /* ISNS_VENDOR_H */