hpimdm/Main.py
def add_membership_interface(interface_name, ipv4=True, ipv6=False):
    """
    Add a new interface to be controlled by IGMP/MLD
    """
    if interface_name == "*":
        for interface_name in netifaces.interfaces():
            add_membership_interface(interface_name, ipv4, ipv6)
        return

    if ipv4 and kernel is not None:
        kernel.create_membership_interface(interface_name=interface_name)
    if ipv6 and kernel_v6 is not None:
        kernel_v6.create_membership_interface(interface_name=interface_name)

    Add a new interface to be controlled by IGMP/MLD
    
Add a new interface to be controlled by IGMP/MLD
Add a new interface to be controlled by IGMP / MLD
def add_membership_interface(interface_name, ipv4=True, ipv6=False):
    if interface_name == "*":
        for interface_name in netifaces.interfaces():
            add_membership_interface(interface_name, ipv4, ipv6)
        return
    if ipv4 and kernel is not None:
        kernel.create_membership_interface(interface_name=interface_name)
    if ipv6 and kernel_v6 is not None:
        kernel_v6.create_membership_interface(interface_name=interface_name)
def add_membership_interface ( interface_name , ipv4 = True , ipv6 = False ) : if interface_name == "*" : for interface_name in netifaces . interfaces ( ) : add_membership_interface ( interface_name , ipv4 , ipv6 ) return if ipv4 and kernel is not None : kernel . create_membership_interface ( interface_name = interface_name ) if ipv6 and kernel_v6 is not None : kernel_v6 . create_membership_interface ( interface_name = interface_name )
Add a new interface to be controlled by IGMP/MLD
Add a new interface to be controlled by IGMP / MLD
"""
    Add a new interface to be controlled by IGMP/MLD
    """
interface_name
ipv4
ipv6