Can someone help me with RED packet code?