diff options
Diffstat (limited to 'networking/ether-wake.c')
-rw-r--r-- | networking/ether-wake.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index 7bb9aa5a7..6a88279f4 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -70,18 +70,15 @@ | |||
70 | //usage: "Send a magic packet to wake up sleeping machines.\n" | 70 | //usage: "Send a magic packet to wake up sleeping machines.\n" |
71 | //usage: "MAC must be a station address (00:11:22:33:44:55) or\n" | 71 | //usage: "MAC must be a station address (00:11:22:33:44:55) or\n" |
72 | //usage: "a hostname with a known 'ethers' entry.\n" | 72 | //usage: "a hostname with a known 'ethers' entry.\n" |
73 | //usage: "\nOptions:" | ||
74 | //usage: "\n -b Send wake-up packet to the broadcast address" | 73 | //usage: "\n -b Send wake-up packet to the broadcast address" |
75 | //usage: "\n -i iface Interface to use (default eth0)" | 74 | //usage: "\n -i iface Interface to use (default eth0)" |
76 | //usage: "\n -p pass Append four or six byte password PW to the packet" | 75 | //usage: "\n -p pass Append four or six byte password PW to the packet" |
77 | 76 | ||
77 | #include "libbb.h" | ||
78 | #include <netpacket/packet.h> | 78 | #include <netpacket/packet.h> |
79 | #include <net/ethernet.h> | ||
80 | #include <netinet/ether.h> | 79 | #include <netinet/ether.h> |
81 | #include <linux/if.h> | 80 | #include <linux/if.h> |
82 | 81 | ||
83 | #include "libbb.h" | ||
84 | |||
85 | /* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to | 82 | /* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to |
86 | * work as non-root, but we need SOCK_PACKET to specify the Ethernet | 83 | * work as non-root, but we need SOCK_PACKET to specify the Ethernet |
87 | * destination address. | 84 | * destination address. |