diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2011-02-28 14:56:15 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-03-13 16:35:18 -0400 |
commit | 50d3e6399a61fca53c5c440a79f71299db66b803 (patch) | |
tree | 44470f60fb8cc9ed2d4b67280c5b6ba506e31617 /net/tipc | |
parent | 37b9c08a88f9a82456bb11fa050cccb544e8dc60 (diff) |
tipc: Correct misnamed references to neighbor discovery domain
Renames items that are improperly labelled as "network scope" items
(which are represented by simple integer values) rather than "network
domain" items (which are represented by <Z.C.N>-type network addresses).
This change is purely cosmetic, and does not affect the operation of TIPC.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/bearer.c | 14 | ||||
-rw-r--r-- | net/tipc/bearer.h | 2 | ||||
-rw-r--r-- | net/tipc/config.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index f2839b0f6b65..9815797631e7 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -474,7 +474,7 @@ int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr) | |||
474 | * tipc_enable_bearer - enable bearer with the given name | 474 | * tipc_enable_bearer - enable bearer with the given name |
475 | */ | 475 | */ |
476 | 476 | ||
477 | int tipc_enable_bearer(const char *name, u32 bcast_scope, u32 priority) | 477 | int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority) |
478 | { | 478 | { |
479 | struct tipc_bearer *b_ptr; | 479 | struct tipc_bearer *b_ptr; |
480 | struct media *m_ptr; | 480 | struct media *m_ptr; |
@@ -494,9 +494,9 @@ int tipc_enable_bearer(const char *name, u32 bcast_scope, u32 priority) | |||
494 | warn("Bearer <%s> rejected, illegal name\n", name); | 494 | warn("Bearer <%s> rejected, illegal name\n", name); |
495 | return -EINVAL; | 495 | return -EINVAL; |
496 | } | 496 | } |
497 | if (!tipc_addr_domain_valid(bcast_scope) || | 497 | if (!tipc_addr_domain_valid(disc_domain) || |
498 | !tipc_in_scope(bcast_scope, tipc_own_addr)) { | 498 | !tipc_in_scope(disc_domain, tipc_own_addr)) { |
499 | warn("Bearer <%s> rejected, illegal broadcast scope\n", name); | 499 | warn("Bearer <%s> rejected, illegal discovery domain\n", name); |
500 | return -EINVAL; | 500 | return -EINVAL; |
501 | } | 501 | } |
502 | if ((priority < TIPC_MIN_LINK_PRI || | 502 | if ((priority < TIPC_MIN_LINK_PRI || |
@@ -560,18 +560,18 @@ restart: | |||
560 | b_ptr->media = m_ptr; | 560 | b_ptr->media = m_ptr; |
561 | b_ptr->net_plane = bearer_id + 'A'; | 561 | b_ptr->net_plane = bearer_id + 'A'; |
562 | b_ptr->active = 1; | 562 | b_ptr->active = 1; |
563 | b_ptr->detect_scope = bcast_scope; | 563 | b_ptr->detect_scope = disc_domain; |
564 | b_ptr->priority = priority; | 564 | b_ptr->priority = priority; |
565 | INIT_LIST_HEAD(&b_ptr->cong_links); | 565 | INIT_LIST_HEAD(&b_ptr->cong_links); |
566 | INIT_LIST_HEAD(&b_ptr->links); | 566 | INIT_LIST_HEAD(&b_ptr->links); |
567 | if (m_ptr->bcast) { | 567 | if (m_ptr->bcast) { |
568 | b_ptr->link_req = tipc_disc_init_link_req(b_ptr, &m_ptr->bcast_addr, | 568 | b_ptr->link_req = tipc_disc_init_link_req(b_ptr, &m_ptr->bcast_addr, |
569 | bcast_scope); | 569 | disc_domain); |
570 | } | 570 | } |
571 | spin_lock_init(&b_ptr->lock); | 571 | spin_lock_init(&b_ptr->lock); |
572 | write_unlock_bh(&tipc_net_lock); | 572 | write_unlock_bh(&tipc_net_lock); |
573 | info("Enabled bearer <%s>, discovery domain %s, priority %u\n", | 573 | info("Enabled bearer <%s>, discovery domain %s, priority %u\n", |
574 | name, tipc_addr_string_fill(addr_string, bcast_scope), priority); | 574 | name, tipc_addr_string_fill(addr_string, disc_domain), priority); |
575 | return 0; | 575 | return 0; |
576 | failed: | 576 | failed: |
577 | write_unlock_bh(&tipc_net_lock); | 577 | write_unlock_bh(&tipc_net_lock); |
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index 255dea64f7bd..adebdaf0d07b 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h | |||
@@ -167,7 +167,7 @@ void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr); | |||
167 | int tipc_block_bearer(const char *name); | 167 | int tipc_block_bearer(const char *name); |
168 | void tipc_continue(struct tipc_bearer *tb_ptr); | 168 | void tipc_continue(struct tipc_bearer *tb_ptr); |
169 | 169 | ||
170 | int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority); | 170 | int tipc_enable_bearer(const char *bearer_name, u32 disc_domain, u32 priority); |
171 | int tipc_disable_bearer(const char *name); | 171 | int tipc_disable_bearer(const char *name); |
172 | 172 | ||
173 | /* | 173 | /* |
diff --git a/net/tipc/config.c b/net/tipc/config.c index fa3d50860055..b25a396b7e1e 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c | |||
@@ -148,7 +148,7 @@ static struct sk_buff *cfg_enable_bearer(void) | |||
148 | 148 | ||
149 | args = (struct tipc_bearer_config *)TLV_DATA(req_tlv_area); | 149 | args = (struct tipc_bearer_config *)TLV_DATA(req_tlv_area); |
150 | if (tipc_enable_bearer(args->name, | 150 | if (tipc_enable_bearer(args->name, |
151 | ntohl(args->detect_scope), | 151 | ntohl(args->disc_domain), |
152 | ntohl(args->priority))) | 152 | ntohl(args->priority))) |
153 | return tipc_cfg_reply_error_string("unable to enable bearer"); | 153 | return tipc_cfg_reply_error_string("unable to enable bearer"); |
154 | 154 | ||