hi all,
i trying to find the intferface name using this coding ,but that is
not working ,,,if anybody this pervious..pleas e help to find the
interface name using Linux C.
//CODE
ioctl(sd, SIOCGIFNAME, &ifr);
strncpy(ifname, ifr.ifr_name,IF NAMSIZ);
printf("Interfa ce 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..pleas e help to find the
interface name using Linux C.
//CODE
ioctl(sd, SIOCGIFNAME, &ifr);
strncpy(ifname, ifr.ifr_name,IF NAMSIZ);
printf("Interfa ce name :%s\n",ifname);
//
thanks all
Comment