source: freewrt/package/ether-wake/patches/no_ether_hostton_in_uclibc.patch@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.1 KB
  • ether-wake.c

    old new  
    1515"       an optional password appended.\n"
    1616"\n"
    1717"       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"
    1919"       The MAC address may be found with the 'arp' program while the target\n"
    2020"       machine is awake.\n"
    2121"\n"
     
    289289                if (debug)
    290290                        fprintf(stderr, "The target station address is %s.\n",
    291291                                        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));
    296292        } else {
    297293                (void)fprintf(stderr,
    298294                                          "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");
    302296                return -1;
    303297        }
    304298        return 0;
Note: See TracBrowser for help on using the repository browser.