* Filter outgoing IGMP report state by group. * * Reports are ALWAYS suppressed for ALL-HOSTS (224.0.0.1). * If the net.inet.igmp.sendlocal sysctl is 0, then IGMP reports are * disabled for all groups in the 224.0.0.0/24 link-local scope. However, * this may break certain IGMP snooping switches which rely on the old * report behaviour. * * Return zero if the given group is one for which IG
| 576 | * should be suppressed, or non-zero if reports should be issued. |
| 577 | */ |
| 578 | static __inline int |
| 579 | igmp_isgroupreported(const struct in_addr addr) |
| 580 | { |
| 581 | |
| 582 | if (in_allhosts(addr) || |
| 583 | ((!V_igmp_sendlocal && IN_LOCAL_GROUP(ntohl(addr.s_addr))))) |
| 584 | return (0); |
| 585 | |
| 586 | return (1); |
| 587 | } |
| 588 | |
| 589 | /* |
| 590 | * Construct a Router Alert option to use in outgoing packets. |
no outgoing calls
no test coverage detected