C
chellappa
hi all,
i trying to find the intferface name using this coding ,but that is
not working ,,,if anybody this pervious..please help to find the
interface name using Linux C.
//CODE
ioctl(sd, SIOCGIFNAME, &ifr);
strncpy(ifname,ifr.ifr_name,IFNAMSIZ);
printf("Interface name :%s\n",ifname);
//
thanks all
i trying to find the intferface name using this coding ,but that is
not working ,,,if anybody this pervious..please help to find the
interface name using Linux C.
//CODE
ioctl(sd, SIOCGIFNAME, &ifr);
strncpy(ifname,ifr.ifr_name,IFNAMSIZ);
printf("Interface name :%s\n",ifname);
//
thanks all