def _decode_rrq_wrq(packet, packet_buff, offset):
 (file_name, idx) = _get_string(packet_buff, offset)
 packet['file_name'] = file_name
 _decode_options(packet, packet_buff, idx)
 return packet

def _decode_rrq_wrq ( packet , packet_buff , offset ) : ( file_name , idx ) = _get_string ( packet_buff , offset ) packet [ 'file_name' ] = file_name _decode_options ( packet , packet_buff , idx ) return packet
decodes a rrq/wrq packet .