Modified the WhoIs demo to use BBMD if configured for BACnet/IP. Corrected the BVLC code.
This commit is contained in:
@@ -40,6 +40,21 @@
|
||||
|
||||
bool BIP_Debug = false;
|
||||
|
||||
/* gets an IP address by name, where name can be a
|
||||
string that is an IP address in dotted form, or
|
||||
a name that is a domain name
|
||||
returns 0 if not found, or
|
||||
an IP address in network byte order */
|
||||
long bip_getaddrbyname(const char *host_name)
|
||||
{
|
||||
struct hostent *host_ent;
|
||||
|
||||
if ((host_ent = gethostbyname(host_name)) == NULL)
|
||||
return 0;
|
||||
|
||||
return *(long *) host_ent->h_addr;
|
||||
}
|
||||
|
||||
static int get_local_ifr_ioctl(
|
||||
char *ifname,
|
||||
struct ifreq *ifr,
|
||||
|
||||
Reference in New Issue
Block a user