Consolidated the debug print information for the linux server demo.

This commit is contained in:
skarg
2007-06-01 17:48:34 +00:00
parent f618f21715
commit 5084d3f50d
2 changed files with 11 additions and 22 deletions
+4 -1
View File
@@ -89,8 +89,11 @@ static void bip_set_interface(char *ifname)
get_local_address_ioctl(ifname, &broadcast_address, SIOCGIFBRDADDR);
bip_set_broadcast_addr(broadcast_address.s_addr);
#ifdef BIP_DEBUG
fprintf(stderr, "Broadcast Address: %s\n",
fprintf(stderr, "IP Broadcast Address: %s\n",
inet_ntoa(broadcast_address));
fprintf(stderr, "UDP Port: 0x%04X [%hu]\n",
bip_get_port(),
bip_get_port());
#endif
}