|
From: Peter K. <pk...@us...> - 2001-08-17 16:23:23
|
The following file was modified in apps/bluetooth/btd: Name Old version New version Comment ---- ----------- ----------- ------- btd.c 1.102 1.103=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): --- btd.c 2001/07/31 09:03:34 1.102 +++ btd.c 2001/08/17 16:23:21 1.103 @@ -1644,6 +1644,8 @@ char *local_address =3D NULL; int fd =3D socket(AF_INET, SOCK_DGRAM, 0); struct ifreq ifr; + + ifr.ifr_addr.sa_family =3D AF_INET; strcpy(ifr.ifr_name, "eth0"); ioctl(fd, SIOCGIFADDR, (int)&ifr); close_device(fd); |