Creating icmp and ip headers