/// <summary> /// Creates a RadiusPacket for a Radius request from a received /// datagram packet. /// @param packet received datagram /// @return RadiusPacket object /// @exception RadiusException malformed packet /// @exception IOException communication error (after getRetryCount() /// retries) /// </summary> protected RadiusPacket MakeRadiusPacket(byte[] packet, String sharedSecret) { var @in = new MemoryStream(packet); return(RadiusPacket.DecodeRequestPacket(@in, sharedSecret)); }