Decode an NSF field.
Decode an NSF field to try to determine the make and model of the remote machine.
- Parameters
-
msg | The NSF message. |
len | The length of the NSF message. |
country | A pointer which will be pointed to the identified country of origin. If a NULL pointer is given, the country of origin will not be returned. If the country of origin is not identified, NULL will be returned. |
vendor | A pointer which will be pointed to the identified vendor. If a NULL pointer is given, the vendor ID will not be returned. If the vendor is not identified, NULL will be returned. |
model | A pointer which will be pointed to the identified model. If a NULL pointer is given, the model will not be returned. If the model is not identified, NULL will be returned. |
- Returns
- TRUE if the machine was identified, otherwise FALSE.
References nsf_data_t::inverse_station_id_order, nsf_data_t::known_models, model_data_t::model_id, model_data_t::model_id_size, model_data_t::model_name, t35_country_codes, nsf_data_t::vendor_id, nsf_data_t::vendor_id_len, and nsf_data_t::vendor_name.