4545
4646
4747/**
48- * struct link_req - information about an ongoing link setup request
48+ * struct tipc_link_req - information about an ongoing link setup request
4949 * @bearer: bearer issuing requests
5050 * @dest: destination address for request messages
5151 * @domain: network domain to which links can be established
5454 * @timer: timer governing period between requests
5555 * @timer_intv: current interval between requests (in ms)
5656 */
57- struct link_req {
57+ struct tipc_link_req {
5858 struct tipc_bearer * bearer ;
5959 struct tipc_media_addr dest ;
6060 u32 domain ;
@@ -120,7 +120,7 @@ static void disc_dupl_alert(struct tipc_bearer *b_ptr, u32 node_addr,
120120void tipc_disc_recv_msg (struct sk_buff * buf , struct tipc_bearer * b_ptr )
121121{
122122 struct tipc_node * n_ptr ;
123- struct link * link ;
123+ struct tipc_link * link ;
124124 struct tipc_media_addr media_addr , * addr ;
125125 struct sk_buff * rbuf ;
126126 struct tipc_msg * msg = buf_msg (buf );
@@ -218,7 +218,7 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr)
218218 * and is either not currently searching or is searching at a slow rate
219219 */
220220
221- static void disc_update (struct link_req * req )
221+ static void disc_update (struct tipc_link_req * req )
222222{
223223 if (!req -> num_nodes ) {
224224 if ((req -> timer_intv == TIPC_LINK_REQ_INACTIVE ) ||
@@ -234,7 +234,7 @@ static void disc_update(struct link_req *req)
234234 * @req: ptr to link request structure
235235 */
236236
237- void tipc_disc_add_dest (struct link_req * req )
237+ void tipc_disc_add_dest (struct tipc_link_req * req )
238238{
239239 req -> num_nodes ++ ;
240240}
@@ -244,7 +244,7 @@ void tipc_disc_add_dest(struct link_req *req)
244244 * @req: ptr to link request structure
245245 */
246246
247- void tipc_disc_remove_dest (struct link_req * req )
247+ void tipc_disc_remove_dest (struct tipc_link_req * req )
248248{
249249 req -> num_nodes -- ;
250250 disc_update (req );
@@ -255,7 +255,7 @@ void tipc_disc_remove_dest(struct link_req *req)
255255 * @req: ptr to link request structure
256256 */
257257
258- static void disc_send_msg (struct link_req * req )
258+ static void disc_send_msg (struct tipc_link_req * req )
259259{
260260 if (!req -> bearer -> blocked )
261261 tipc_bearer_send (req -> bearer , req -> buf , & req -> dest );
@@ -268,7 +268,7 @@ static void disc_send_msg(struct link_req *req)
268268 * Called whenever a link setup request timer associated with a bearer expires.
269269 */
270270
271- static void disc_timeout (struct link_req * req )
271+ static void disc_timeout (struct tipc_link_req * req )
272272{
273273 int max_delay ;
274274
@@ -316,7 +316,7 @@ static void disc_timeout(struct link_req *req)
316316int tipc_disc_create (struct tipc_bearer * b_ptr ,
317317 struct tipc_media_addr * dest , u32 dest_domain )
318318{
319- struct link_req * req ;
319+ struct tipc_link_req * req ;
320320
321321 req = kmalloc (sizeof (* req ), GFP_ATOMIC );
322322 if (!req )
@@ -345,7 +345,7 @@ int tipc_disc_create(struct tipc_bearer *b_ptr,
345345 * @req: ptr to link request structure
346346 */
347347
348- void tipc_disc_delete (struct link_req * req )
348+ void tipc_disc_delete (struct tipc_link_req * req )
349349{
350350 k_cancel_timer (& req -> timer );
351351 k_term_timer (& req -> timer );
0 commit comments