LM_GETHOSTID(3)

NAME
lm_gethostid - returns the hostid for the local host

SYNOPSIS
#include <lm_client.h>

HOSTID *lm_gethostid()

typedef struct hostid {			/* Host ID data */
	short override;	/* Hostid checking override type */
#define NO_EXTENDED 1			/* Turn off extended hostid */
#define DEMO_SOFTWARE 2			/* DEMO software, no hostid */
	short type;	/* Type of HOST ID */
#define	NOHOSTID 0
#define HOSTID_LONG 1			/* Longword hostid, eg, SUN */
#define HOSTID_ETHER 2			/* Ethernet address, eg, VAX */
	union {
		long data;
#define ETHER_LEN 6			/* Length of an ethernet address */
		unsigned char e[ETHER_LEN];
	} id;
#define hostid_value id.data
#define hostid_eth id.e
} HOSTID;

DESCRIPTION
lm_gethostid() returns the hostid information for the current host. FLEXlm provides this version of gethostid to ensure compatibility across all platforms, and to provide more security than the standard gethostid on some platforms.