大网数据广告活动
网络与域名解析

Processing Groups and Callbacks

· 52CE 我爱测

The following table summarizes a series of steps in an operational interaction between a routing protocol and the multicast group manager.

The following table summarizes a series of steps in an operational interaction between a routing protocol and the multicast group manager. The first column describes the actions that the routing protocol performs and the routing protocol's responses to the multicast group manager. The second column describes the multicast group manager's responses to the routing protocol and any actions the multicast group manager performs such as callbacks. The third column presents any additional information.

Each row of the table represents one step.

The tasks listed in this table do not occur in any specific order; rather, they occur based on the status of multicast group memberships. The table below shows an example order.

Routing protocol action Multicast group manager action Notes
Manage group memberships based on protocol information received on those interfaces that the protocol owns. Management is performed using the following functions:<ul><li><a href="/windows/desktop/api/Mgm/nf-mgm-mgmaddgroupmembershipentry">MgmAddGroupMembershipEntry</a></li><li><a href="/windows/desktop/api/Mgm/nf-mgm-mgmdeletegroupmembershipentry">MgmDeleteGroupMembershipEntry</a></li></ul> Add to and delete from the outgoing interface list for the specified (s, g), (, g), and (, *) entries. This list represents the set of interfaces on which data for this group is forwarded. The data for this group is from the specified source.
Send alerts to routing protocols in the form of callbacks. The following events trigger the multicast group manager to invoke a callback:<ul><li>Join or leave groups ( <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_join_alert_callback">PMGM_JOIN_ALERT_CALLBACK</a>, <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_prune_alert_callback">PMGM_PRUNE_ALERT_CALLBACK</a>).</li><li>Group membership changed by IGMP ( <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_local_join_callback">PMGM_LOCAL_JOIN_CALLBACK</a>, <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_local_leave_callback">PMGM_LOCAL_LEAVE_CALLBACK</a>).</li><li>Data received on wrong interface ( <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_wrong_if_callback">PMGM_WRONG_IF_CALLBACK</a>).</li><li>Data received from new sources or to a new group ( <a href="/windows/desktop/api/mgm/nc-mgm-pmgm_creation_alert_callback">PMGM_CREATION_ALERT_CALLBACK</a> and <a href="/windows/desktop/api/Mgm/nc-mgm-pmgm_rpf_callback">PMGM_RPF_CALLBACK</a>).</li></ul> Using these callbacks, the multicast group manager is able to coordinate packet forwarding when several multicast routing protocols are present on a router.
Enumerate the multicast forwarding entries (MFEs), using the <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetfirstmfe">MgmGetFirstMfe</a>, <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetnextmfe">MgmGetNextMfe</a>, and <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetmfe">MgmGetMfe</a> functions. Make decisions about multicast data based on the results of the enumeration. Return the requested MFEs. Return ERROR_NO_MORE ITEMS when there are no more MFEs to return. Use the <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetfirstmfestats">MgmGetFirstMfeStats</a>, <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetnextmfestats">MgmGetNextMfeStats</a>, <a href="/windows/desktop/api/Mgm/nf-mgm-mgmgetmfestats">MgmGetMfeStats</a> functions to enumerate MFE statistics. See <a href="administrative-application-scenario.md">Administrative Application Scenario</a> for a complete example of using these functions.
Modify the upstream neighbor in an MFE using the <a href="/windows/desktop/api/Mgm/nf-mgm-mgmsetmfe">MgmSetMfe</a> function. Clients use this function to modify the information regarding the incoming interface.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。