]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Lock down parallel router_info list for tracking multicast IGMP
authorrwatson <rwatson@FreeBSD.org>
Fri, 11 Jun 2004 03:42:37 +0000 (03:42 +0000)
committerrwatson <rwatson@FreeBSD.org>
Fri, 11 Jun 2004 03:42:37 +0000 (03:42 +0000)
commit71dd84f2b8ab9098090e5a616277d3724c8ee483
tree2affedf2a5177d6c0df2520858fc07098c20737c
parent975177ce245941e1ad1d89228fdb7c2ecd4c7dff
Lock down parallel router_info list for tracking multicast IGMP
versions of various routers seen:

- Introduce igmp_mtx.
- Protect global variable 'router_info_head' and list fields
  in struct router_info with this mutex, as well as
  igmp_timers_are_running.
- find_rti() asserts that the caller acquires igmp_mtx.
- Annotate a failure to check the return value of
  MALLOC(..., M_NOWAIT).
sys/netinet/igmp.c