def build_mreq(ifindex):
    """
    struct packet_mreq {
        int mr_ifindex;
        unsigned short int mr_type;
        unsigned short int mr_alen;
        unsigned char mr_address[8];
    };
    """
    PACKET_MR_MULTICAST = 0
    return pack('IHH8s', ifindex, PACKET_MR_MULTICAST,
            len(pae_group_addr), pae_group_addr)

    struct packet_mreq {
        int mr_ifindex;
        unsigned short int mr_type;
        unsigned short int mr_alen;
        unsigned char mr_address[8];
    };
    
recipes/Python/577523_EAPMD5_8021X_Supplicant/recipe-577523.py