This whole thread reeks of script kiddy. You can pull all of this off with scapy which is in the repos. If you're going to put so much effort into porting this one tool you may as well learn a good chunk of scapy and utilise it far more effectively.