source:
freewrt/package/ether-wake/patches/no_ether_hostton_in_uclibc.patch@
428f140
| Last change on this file since 428f140 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 1.1 KB | |
-
ether-wake.c
old new 15 15 " an optional password appended.\n" 16 16 "\n" 17 17 " The single required parameter is the Ethernet MAC (station) address\n" 18 " of the machine to wake or a host ID with known NSS 'ethers' entry.\n"18 " of the machine to wake.\n" 19 19 " The MAC address may be found with the 'arp' program while the target\n" 20 20 " machine is awake.\n" 21 21 "\n" … … 289 289 if (debug) 290 290 fprintf(stderr, "The target station address is %s.\n", 291 291 ether_ntoa(eaddr)); 292 } else if (ether_hostton(hostid, eaddr) == 0) {293 if (debug)294 fprintf(stderr, "Station address for hostname %s is %s.\n",295 hostid, ether_ntoa(eaddr));296 292 } else { 297 293 (void)fprintf(stderr, 298 294 "ether-wake: The Magic Packet host address must be " 299 "specified as\n" 300 " - a station address, 00:11:22:33:44:55, or\n" 301 " - a hostname with a known 'ethers' entry.\n"); 295 "specified as a station address, 00:11:22:33:44:55.\n"); 302 296 return -1; 303 297 } 304 298 return 0;
Note:
See TracBrowser
for help on using the repository browser.
