diff options
Diffstat (limited to 'net/tipc/name_table.h')
-rw-r--r-- | net/tipc/name_table.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/net/tipc/name_table.h b/net/tipc/name_table.h index f67b3d8d4b2f..52501fdaafa5 100644 --- a/net/tipc/name_table.h +++ b/net/tipc/name_table.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #define _TIPC_NAME_TABLE_H | 38 | #define _TIPC_NAME_TABLE_H |
39 | 39 | ||
40 | struct tipc_subscription; | 40 | struct tipc_subscription; |
41 | struct tipc_port_list; | 41 | struct tipc_plist; |
42 | 42 | ||
43 | /* | 43 | /* |
44 | * TIPC name types reserved for internal TIPC use (both current and planned) | 44 | * TIPC name types reserved for internal TIPC use (both current and planned) |
@@ -101,7 +101,7 @@ struct sk_buff *tipc_nametbl_get(struct net *net, const void *req_tlv_area, | |||
101 | int req_tlv_space); | 101 | int req_tlv_space); |
102 | u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *node); | 102 | u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *node); |
103 | int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, | 103 | int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, |
104 | u32 limit, struct tipc_port_list *dports); | 104 | u32 limit, struct tipc_plist *dports); |
105 | struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, | 105 | struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, |
106 | u32 upper, u32 scope, u32 port_ref, | 106 | u32 upper, u32 scope, u32 port_ref, |
107 | u32 key); | 107 | u32 key); |
@@ -118,4 +118,18 @@ void tipc_nametbl_unsubscribe(struct tipc_subscription *s); | |||
118 | int tipc_nametbl_init(struct net *net); | 118 | int tipc_nametbl_init(struct net *net); |
119 | void tipc_nametbl_stop(struct net *net); | 119 | void tipc_nametbl_stop(struct net *net); |
120 | 120 | ||
121 | struct tipc_plist { | ||
122 | struct list_head list; | ||
123 | u32 port; | ||
124 | }; | ||
125 | |||
126 | static inline void tipc_plist_init(struct tipc_plist *pl) | ||
127 | { | ||
128 | INIT_LIST_HEAD(&pl->list); | ||
129 | pl->port = 0; | ||
130 | } | ||
131 | |||
132 | void tipc_plist_push(struct tipc_plist *pl, u32 port); | ||
133 | u32 tipc_plist_pop(struct tipc_plist *pl); | ||
134 | |||
121 | #endif | 135 | #endif |