name_table.h (49ed2617a06abacaccd46fa88ae14c333baa15f0) name_table.h (a8f48af587b0f257c49dce5b49a62554a4b8627e)
1/*
2 * net/tipc/name_table.h: Include file for TIPC name table code
3 *
4 * Copyright (c) 2000-2006, 2014, Ericsson AB
5 * Copyright (c) 2004-2005, 2010-2011, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#ifndef _TIPC_NAME_TABLE_H
38#define _TIPC_NAME_TABLE_H
39
1/*
2 * net/tipc/name_table.h: Include file for TIPC name table code
3 *
4 * Copyright (c) 2000-2006, 2014, Ericsson AB
5 * Copyright (c) 2004-2005, 2010-2011, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#ifndef _TIPC_NAME_TABLE_H
38#define _TIPC_NAME_TABLE_H
39
40#include "node_subscr.h"
41
42struct tipc_subscription;
43struct tipc_port_list;
44
45/*
46 * TIPC name types reserved for internal TIPC use (both current and planned)
47 */
48#define TIPC_ZM_SRV 3 /* zone master service name type */
49
50/**
51 * struct publication - info about a published (name or) name sequence
52 * @type: name sequence type
53 * @lower: name sequence lower bound
54 * @upper: name sequence upper bound
55 * @scope: scope of publication
56 * @node: network address of publishing port's node
57 * @ref: publishing port
58 * @key: publication key
40struct tipc_subscription;
41struct tipc_port_list;
42
43/*
44 * TIPC name types reserved for internal TIPC use (both current and planned)
45 */
46#define TIPC_ZM_SRV 3 /* zone master service name type */
47
48/**
49 * struct publication - info about a published (name or) name sequence
50 * @type: name sequence type
51 * @lower: name sequence lower bound
52 * @upper: name sequence upper bound
53 * @scope: scope of publication
54 * @node: network address of publishing port's node
55 * @ref: publishing port
56 * @key: publication key
59 * @subscr: subscription to "node down" event (for off-node publications only)
57 * @nodesub_list: subscription to "node down" event (off-node publication only)
60 * @local_list: adjacent entries in list of publications made by this node
61 * @pport_list: adjacent entries in list of publications made by this port
62 * @node_list: adjacent matching name seq publications with >= node scope
63 * @cluster_list: adjacent matching name seq publications with >= cluster scope
64 * @zone_list: adjacent matching name seq publications with >= zone scope
65 *
66 * Note that the node list, cluster list, and zone list are circular lists.
67 */
68struct publication {
69 u32 type;
70 u32 lower;
71 u32 upper;
72 u32 scope;
73 u32 node;
74 u32 ref;
75 u32 key;
58 * @local_list: adjacent entries in list of publications made by this node
59 * @pport_list: adjacent entries in list of publications made by this port
60 * @node_list: adjacent matching name seq publications with >= node scope
61 * @cluster_list: adjacent matching name seq publications with >= cluster scope
62 * @zone_list: adjacent matching name seq publications with >= zone scope
63 *
64 * Note that the node list, cluster list, and zone list are circular lists.
65 */
66struct publication {
67 u32 type;
68 u32 lower;
69 u32 upper;
70 u32 scope;
71 u32 node;
72 u32 ref;
73 u32 key;
76 struct tipc_node_subscr subscr;
74 struct list_head nodesub_list;
77 struct list_head local_list;
78 struct list_head pport_list;
79 struct list_head node_list;
80 struct list_head cluster_list;
81 struct list_head zone_list;
82};
83
84

--- 22 unchanged lines hidden ---
75 struct list_head local_list;
76 struct list_head pport_list;
77 struct list_head node_list;
78 struct list_head cluster_list;
79 struct list_head zone_list;
80};
81
82

--- 22 unchanged lines hidden ---