aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/wake
Commit message (Collapse)AuthorAgeFilesLines
* Anything that casts struct sockaddr * to struct sockaddr_foo is safeWarner Losh2010-02-091-0/+2
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=203707
* If there is only one NIC in the system that is up and running, theMartin Blapp2010-02-082-45/+86
| | | | | | | | | | | | 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> Notes: svn path=/head/; revision=203686
* Make it clear that "interface" is one out of possibly many interface of theMartin Blapp2010-01-021-2/+2
| | | | | | | | | | local machine (s/the network interface/a network interface). Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days Notes: svn path=/head/; revision=201398
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* Fix wake(8) synopsis to make it clear that at least one lladdr is requiredRobert Watson2009-12-262-2/+3
| | | | | | | | | | as an argument. Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days Notes: svn path=/head/; revision=201024
* Use our canonical .Dd format.Christian Brueffer2009-11-021-1/+1
| | | | | | | Submitted by: Ulrich Spoerlein Notes: svn path=/head/; revision=198788
* - Properly order headers, local variables and prototypes. [1]Stanislav Sedov2009-07-011-18/+11
| | | | | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1] Notes: svn path=/head/; revision=195264
* - Fix the bug in write(2) called with incorrect parameters resulting in writesStanislav Sedov2009-07-012-52/+64
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=195237
* Compiles without higher warn levelMartin Blapp2009-06-301-2/+0
| | | | | | | | | M wake/Makefile Approved by: re (previous commit) Notes: svn path=/head/; revision=195213
* Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet networkMartin Blapp2009-06-303-0/+243
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 Notes: svn path=/head/; revision=195200