add get_manuf_name_if_known (returns NULL if unknown) in addition to get_manuf_name
svn path=/trunk/; revision=14405
This commit is contained in:
parent
3bb534f338
commit
d2233711d9
|
@ -2130,6 +2130,23 @@ extern const gchar *get_manuf_name(const guint8 *addr)
|
||||||
} /* get_manuf_name */
|
} /* get_manuf_name */
|
||||||
|
|
||||||
|
|
||||||
|
const gchar *get_manuf_name_if_known(const guint8 *addr)
|
||||||
|
{
|
||||||
|
hashmanuf_t *manufp;
|
||||||
|
|
||||||
|
if (!eth_resolution_initialized) {
|
||||||
|
initialize_ethers();
|
||||||
|
eth_resolution_initialized = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((manufp = manuf_name_lookup(addr)) == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return manufp->name;
|
||||||
|
|
||||||
|
} /* get_manuf_name_if_known */
|
||||||
|
|
||||||
|
|
||||||
/* Translate a string, assumed either to be a dotted-quad IP address or
|
/* Translate a string, assumed either to be a dotted-quad IP address or
|
||||||
* a host name, to a numeric IP address. Return TRUE if we succeed and
|
* a host name, to a numeric IP address. Return TRUE if we succeed and
|
||||||
|
|
|
@ -135,6 +135,9 @@ extern gchar *get_ether_name_if_known(const guint8 *addr);
|
||||||
/* get_manuf_name returns the vendor name or "%02x:%02x:%02x" if not known */
|
/* get_manuf_name returns the vendor name or "%02x:%02x:%02x" if not known */
|
||||||
extern const gchar *get_manuf_name(const guint8 *addr);
|
extern const gchar *get_manuf_name(const guint8 *addr);
|
||||||
|
|
||||||
|
/* get_manuf_name returns the vendor name or NULL if not known */
|
||||||
|
extern const gchar *get_manuf_name_if_known(const guint8 *addr);
|
||||||
|
|
||||||
/* get_ipxnet_name returns the logical name if found in an ipxnets file,
|
/* get_ipxnet_name returns the logical name if found in an ipxnets file,
|
||||||
* or a string formatted with "%X" if not */
|
* or a string formatted with "%X" if not */
|
||||||
extern const gchar *get_ipxnet_name(const guint32 addr);
|
extern const gchar *get_ipxnet_name(const guint32 addr);
|
||||||
|
|
|
@ -285,6 +285,7 @@ get_dissector_table_ui_name
|
||||||
get_ether_name
|
get_ether_name
|
||||||
get_hostname
|
get_hostname
|
||||||
get_hostname6
|
get_hostname6
|
||||||
|
get_manuf_name_if_known
|
||||||
get_persconffile_path
|
get_persconffile_path
|
||||||
get_plugins_global_dir
|
get_plugins_global_dir
|
||||||
get_plugins_pers_dir
|
get_plugins_pers_dir
|
||||||
|
|
Loading…
Reference in New Issue