netcmd: do not print broadcast address
cmd_ifconfig() prints incorrect broadcast address on its output. This is
mainly because SIOCGIFBRDADDR is not currently implemented in
netdev_ioctl(). Until we can handle it, do not print the broadcast
address on ifconfig.
@@ -146,9 +146,7 @@ nic_display_state(void)
printf("RUNNING: %s\n", (ifr->ifr_flags & IFF_UP) ? "UP" : "DOWN");
}
printf("\tinet addr: %s\t", inet_ntoa(sin->sin_addr));
- ioctl(fd, SIOCGIFBRDADDR, (char *)ifr);
- sin = (struct sockaddr_in *)&ifr->ifr_broadaddr;
- printf("Bcast: %s\t", inet_ntoa(sin->sin_addr));
+
ioctl(fd, SIOCGIFNETMASK, (char *)ifr);
sin = (struct sockaddr_in *)&ifr->ifr_addr;
printf("Mask: %s\t", inet_ntoa(sin->sin_addr));
