If you are looking for opensource solutions, scapy will probably be able to do the job. Regards, Lukas