linux-hardened/net/tipc
Allan Stephens 5b1f7bdeb6 tipc: Fix premature broadcast advertisement by sending node
Prevent a TIPC node from sending out a LINK_STATE message
advertising a broadcast message that it is in the process
of sending, but has not yet actually sent.  Previously, it was
possible for a link timeout to occur in between the time the
broadcast link updated its "last message sent" counter and the
time the broadcast message was passed to the broadcast bearer
for transmission.  This ensures that the code which issues
the LINK_STATE message isn't informed of the new message until
the broadcast bearer has had a chance to send it.

Note: The "last message sent" value is stored in the "fsm_msg_count"
field of the link structure used by the broadcast link.  Since the
broadcast link doesn't utilize the normal link FSM, this field can
be re-used rather than adding a new field to the broadcast link.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-17 17:31:55 -07:00
..
addr.c tipc: Reduce footprint by un-inlining address routines 2010-05-12 23:02:26 -07:00
addr.h tipc: Reduce footprint by un-inlining address routines 2010-05-12 23:02:26 -07:00
bcast.c tipc: Fix premature broadcast advertisement by sending node 2010-08-17 17:31:55 -07:00
bcast.h tipc: Reduce footprint by un-inlining port list routines 2010-05-12 23:02:27 -07:00
bearer.c tipc: Reduce footprint by un-inlining bearer congestion routine 2010-05-12 23:02:28 -07:00
bearer.h tipc: Reduce footprint by un-inlining bearer congestion routine 2010-05-12 23:02:28 -07:00
cluster.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
cluster.h
config.c tipc: Add support for "-s" configuration option 2010-05-12 23:02:23 -07:00
config.h
core.c tipc: Fix log buffer memory leak if initialization fails 2010-08-17 17:31:51 -07:00
core.h tipc: Reduce footprint by un-inlining buf_acquire routine 2010-05-12 23:02:28 -07:00
dbg.c
dbg.h
discover.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
discover.h
eth_media.c
handler.c
Kconfig
link.c tipc: Check for disabled bearer when processing incoming messages 2010-08-17 17:31:53 -07:00
link.h tipc: Relocate trivial link status functions to header file 2010-05-12 23:02:24 -07:00
Makefile
msg.c tipc: Reduce footprint by un-inlining tipc_msg_* routines 2010-05-12 23:02:29 -07:00
msg.h tipc: Reduce footprint by un-inlining tipc_msg_* routines 2010-05-12 23:02:29 -07:00
name_distr.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
name_distr.h
name_table.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
name_table.h
net.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
net.h
netlink.c
node.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
node.h
node_subscr.c
node_subscr.h
port.c tipc: add tipc_ prefix to fcns targeted for un-inlining 2010-05-12 23:02:25 -07:00
port.h tipc: Eliminate obsolete port's "congested_link" field 2010-05-12 23:02:20 -07:00
ref.c
ref.h
socket.c tipc: correct problems with misleading flags returned using poll() 2010-08-17 17:31:53 -07:00
subscr.c
subscr.h
user_reg.c
user_reg.h
zone.c
zone.h