diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2011-02-28 11:04:08 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-03-13 16:35:19 -0400 |
commit | f9107ebe7d18a04f07d2a990a912efa2a2ac1873 (patch) | |
tree | ec14aea5a5cf2a8de72af882517e76599751fc9f | |
parent | d901a42b271dbd94983b798955403dcf1afa60ac (diff) |
tipc: Don't respond to neighbor discovery request on blocked bearer
Adds a check to prevent TIPC from trying to respond to an incoming
LINK_CONFIG request message if the associated bearer is currently
prohibited from sending messages.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | net/tipc/discover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index 2c14d6dbc3d7..491eff56b9da 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c | |||
@@ -202,7 +202,7 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr) | |||
202 | /* Accept discovery message & send response, if necessary */ | 202 | /* Accept discovery message & send response, if necessary */ |
203 | link_fully_up = link_working_working(link); | 203 | link_fully_up = link_working_working(link); |
204 | 204 | ||
205 | if ((type == DSC_REQ_MSG) && !link_fully_up) { | 205 | if ((type == DSC_REQ_MSG) && !link_fully_up && !b_ptr->blocked) { |
206 | rbuf = tipc_disc_init_msg(DSC_RESP_MSG, orig, b_ptr); | 206 | rbuf = tipc_disc_init_msg(DSC_RESP_MSG, orig, b_ptr); |
207 | if (rbuf) { | 207 | if (rbuf) { |
208 | b_ptr->media->send_msg(rbuf, b_ptr, &media_addr); | 208 | b_ptr->media->send_msg(rbuf, b_ptr, &media_addr); |