|
From: Peter K. <pk...@us...> - 2001-08-17 16:23:52
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_misc.c 1.11 1.12=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Need to set ifr.ifr_addr.sa_family before calling the SIOCGIFADDR ioctl
The diff of the modified file(s):
--- bt_misc.c 2001/06/08 09:44:58 1.11
+++ bt_misc.c 2001/08/17 16:23:21 1.12
@@ -267,6 +267,7 @@
return "0.0.0.0";
}
=20=20=20
+ ifr.ifr_addr.sa_family =3D AF_INET;
strcpy(ifr.ifr_name, "eth0");
if (ioctl(fd, SIOCGIFADDR, (int)&ifr) < 0)
{
|