add one more parameter to func craftPacket to identify which virtual device