Cosmetic changes.

This commit is contained in:
pdw
2003-10-14 22:33:45 +00:00
parent b7eb237e15
commit 3824538a29
2 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ get_addrs_dlpi(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr)
return -1;
}
fprintf(stderr,"if: %s\n", devname);
fprintf(stderr,"interface: %s\n", devname);
// on Solaris, even though we are wanting to talk to ethernet device
// ge0, we have to open /dev/ge, then bind to unit 0. Dupe our

View File

@@ -50,7 +50,7 @@ get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr)
return -1;
}
fprintf(stderr,"if: %s\n", interface);
fprintf(stderr,"interface: %s\n", interface);
memset(if_hw_addr, 0, 6);
strncpy(ifr.ifr_name, interface, IFNAMSIZ);
@@ -72,7 +72,7 @@ get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr)
#ifdef SIOCGIFADDR
(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = AF_INET;
if (ioctl(s, SIOCGIFADDR, &ifr) < 0) {
fprintf(stderr, "Error getting IP address for interface: %s\n", interface);
fprintf(stderr, "Unable to get IP address for interface: %s\n", interface);
perror("ioctl(SIOCGIFADDR)");
}
else {