Commit Graph

17 Commits

Author SHA1 Message Date
mbalmer 06404c9d5f remove stupid casts. if lint complains about return values that are ignored,
lint should fe fixed, and not code being cluttered.
2010-01-10 19:40:11 +00:00
mbalmer 43f131c4e8 Only use an auto-determined interface if it is the only one in the system
that is up and running.  This change prevents wake(8) from picking an
arbitrary interface (which is possibly the wrong one).
2010-01-04 11:34:39 +00:00
wiz f5e16a46b4 Capitalize Ethernet. 2010-01-03 19:04:26 +00:00
mbalmer 18af789290 Indicating the interface over which to send Wake on LAN frames is optional,
if the interface is not given on the command line, wake(8) will use the
first ethernet interface that is up and running.
2010-01-03 17:58:14 +00:00
mbalmer 9e1aa40062 Better wording. 2009-12-21 15:48:33 +00:00
mbalmer 0b145a4077 Fix synopsis to make it clear that at least one lladdr is required. 2009-12-21 08:42:39 +00:00
wiz 18de4741b9 Improve wording, based on suggestions by Jukka Ruohonen in private mail. 2009-08-06 22:01:36 +00:00
mbalmer 6ef876ad7c Use EXIT_FAILURE/EXIT_SUCCESS instead of numerical values when exiting. 2009-07-18 08:35:19 +00:00
mbalmer b98fada729 No need to set BINDIR here, since ../Makefile.inc has it.
Noticed by hannken@eis.cs.tu-bs.de, thx.
2009-07-06 12:47:38 +00:00
mbalmer cf8e7832f4 Fix write loop. 2009-07-01 07:49:12 +00:00
mbalmer 649bcbf015 - No need to include paths.h twice (christos, you oversaw that paths.h
was already included)
- use "usage", not "Usage", like other tools
2009-06-26 21:55:28 +00:00
christos 1ede09dfc2 - include <paths.h> for _PATH_BPF explicitly.
- make sure that everything sets errno appropriately so we can use warn/err
- only open and setup bpf once since if this does not work we fail and don't
  do extra work.
- use getprogname
- static local functions and no parameters.

I think this utility should be renamed wakeonlan because wake is too generic.
2009-06-26 17:38:32 +00:00
wiz 8615942dc8 Fix Dd argument, remove superfluous quotes, add author name. 2009-06-26 09:25:39 +00:00
mbalmer 0161c10332 /dev/bpf is cloneable, no need to dance around /dev/bpfN to find an
available device.
2009-06-26 09:00:49 +00:00
mbalmer c57bd217eb Switch from bcopy to memcpy. Requested by and ok christos. 2009-06-25 22:26:54 +00:00
mbalmer bcbaac7ec1 Add a blank line after the cvs marker and add a descriptive one line comment.
requested by matt green.
2009-06-25 18:50:46 +00:00
mbalmer 35f74629dc wake(8) is a command to send Wake-on-LAN packets to machines on the local
ethernet, allowing machines to be powered up without physical access to them.

tonnerre@ and tron@ reviewed it and decided that the bin directories
are not to full for this small and useful command.
2009-06-25 18:41:21 +00:00