Commit Graph

13 Commits

Author SHA1 Message Date
Joel Dahl
2710751bc3 mdoc sweep. 2013-05-12 22:22:12 +00:00
Jaakko Heinonen
06eb5e92e2 Exit with proper status when wake() fails.
PR:		bin/153527
Submitted by:	Douglas Steinwand
MFC after:	2 weeks
2012-02-24 07:54:08 +00:00
Jaakko Heinonen
6acc4f15d0 style(9).
MFC after:	2 weeks
2012-02-24 07:49:55 +00:00
Warner Losh
b207c9d856 Anything that casts struct sockaddr * to struct sockaddr_foo is safe
due to careful design.  We've not yet figured out how to properly
annotate the sockaddr structs to communicate this to the compiler and
there's a number of constructs in the tree that make this annotation
challenging.

As such, reduce warns to 3 here because this code really isn't warns 6
safe, even if it kinda sorta appears to be on intel (which has no such
alignment restrictions).  Warns 4 adds the -Wcast-align warning.

# fixes the mips tinderbox build
2010-02-09 17:16:13 +00:00
Martin Blapp
66df920cc9 If there is only one NIC in the system that is up and running, the
interface specifier on the command line can be ommited.

Besides of this, the bpf is being reused for each machine
that has to be woken up.

Submitted by:	Marc Balmer <marc@msys.ch>
2010-02-08 20:57:49 +00:00
Martin Blapp
bb40fa6f73 Make it clear that "interface" is one out of possibly many interface of the
local machine (s/the network interface/a network interface).

Submitted by:	Marc Balmer <marc@msys.ch>
MFC after:	3 days
2010-01-02 17:29:13 +00:00
Ed Schouten
71ccf09269 The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
Robert Watson
4d2280e883 Fix wake(8) synopsis to make it clear that at least one lladdr is required
as an argument.

Submitted by:	Marc Balmer <marc@msys.ch>
MFC after:	3 days
2009-12-26 18:03:16 +00:00
Christian Brueffer
cf6c5eebe7 Use our canonical .Dd format.
Submitted by:	Ulrich Spoerlein
2009-11-02 12:35:38 +00:00
Stanislav Sedov
12de41a26f - Properly order headers, local variables and prototypes. [1]
- Remove unneeded headers.
- Return non-zero error code in usage().

Approved by:	re (kib)
Suggested by:	bde [1]
2009-07-01 22:23:26 +00:00
Stanislav Sedov
d981a4e272 - Fix the bug in write(2) called with incorrect parameters resulting in writes
always started from the start of the packet.
- Fix usage string (multiple addresses can be specified).
- Make the source more style(9) compliant.
- Improve error reporting (do not silently fail if something goes
  wrong).
- Make functions static.
- Use warns level 6.

Approved by:	re (kib)
Discussed with:	Marc Balmer <marc@msys.ch>, brian, mbr
2009-07-01 13:07:02 +00:00
Martin Blapp
a6dff0a5de Compiles without higher warn level
M    wake/Makefile

Approved by: re (previous commit)
2009-06-30 22:09:47 +00:00
Martin Blapp
58c6a70a52 Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet network
Submitted by:   Marc Balmer <marc@msys.ch>
Reviewed by:    rwatson
Approved by:	re

M    usr.sbin/Makefile
A    usr.sbin/wake
AM   usr.sbin/wake/wake.c
AM   usr.sbin/wake/Makefile
AM   usr.sbin/wake/wake.8
2009-06-30 18:51:22 +00:00