Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multicast Support - Work In Progress #1019

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 25, 2024

  1. Adds support for receiving IPv4 and IPv6 multicast groups

    Modifies eConsiderFrameForProcessing() to allow all multicast ethernet frames when ipconfigSUPPORT_IP_MULTICAST is enabled and ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES is disabled.
    Adds parsing of IGMP and MLD queries.
    Sends IGMPv2 and MLDv1 reports on a schedule that is updated based on received IGMP/MLD queries.
    Sends unsolicited IGMP and MLD reports on network-up events and on add-membership socket option.
    Adds pxSocket->u.xUDP.xMulticastTTL that can be used for both IPv4 and IPv6
    Adds pxSocket->u.xUDP.xMulticastAddress that can be used for both IPv4 and IPv6
    Adds pxSocket->u.xUDP.pxMulticastNetIf that specifies the interface on which a sockets wants to receive multicasts.
    Adds socket option defines to add/drop membership as well as change the transmit TTL of multicasts.
    Makes all 3 multicast socket options (add/drop/ttl) work with both IPv4 and IPv6
    Adds a ucMaximumHops field to NetworkBufferDescriptor_t and assigns it to the proper TTL/HopLimit value based on what packet is being sent.
    Adds exceptions so that we don't send multicast reports for 224.0.0.1, ff02::1, as well as anything with IPv6 multicast scope of 0 or 1
    Adds defines for MLD packets like the Multicast Listener Query and Report.
    The MLD report defines are different for transmitted and received packets because the stack strips the optional headers from received MLD packets.
    Generates an MLD report for the solicited-node multicast addresses corresponding to all unicast IPv6 addresses
    Sends IGMPv2 Leave Group messages whenever the last socket subscribed to a group drops that membership.
    On network down, stops receiving the MAC address that corresponds to the solicited node multicast IPv6 address. This balances out the "network-up" calls that allow that MAC address.
    Removes the explicit broadcast MAC check in eConsiderFrameForProcessing. Broadcasts are a form of multicasts and will be received when ipconfigSUPPORT_IP_MULTICAST is enabled.
    
    Adds ipconfigSUPPORT_IP_MULTICAST to enable/disable all the functionality described above.
    Adds ipconfigPERIODIC_MULTICAST_REPORT_INTERVAL for debug purposes when there is no IGMP/MLD querier
    
    Moves the registration of the IGMP multicast MAC to the network driver init code.
    Adds a Multicast Todo list to help keep me on track.
    Emil Popov committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    8d7d5df View commit details
    Browse the repository at this point in the history