diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-06-10 05:17:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-10 05:17:59 +0200 |
commit | f533ec876716415ed0e6ba28d13dfb6263068e82 (patch) | |
tree | 30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /networking/ether-wake.c | |
parent | d488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff) | |
download | busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.bz2 busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.zip |
*: simplify Ethernet header includes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ether-wake.c')
-rw-r--r-- | networking/ether-wake.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index 260ba2463..6a88279f4 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -74,13 +74,11 @@ | |||
74 | //usage: "\n -i iface Interface to use (default eth0)" | 74 | //usage: "\n -i iface Interface to use (default eth0)" |
75 | //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" |
76 | 76 | ||
77 | #include "libbb.h" | ||
77 | #include <netpacket/packet.h> | 78 | #include <netpacket/packet.h> |
78 | #include <net/ethernet.h> | ||
79 | #include <netinet/ether.h> | 79 | #include <netinet/ether.h> |
80 | #include <linux/if.h> | 80 | #include <linux/if.h> |
81 | 81 | ||
82 | #include "libbb.h" | ||
83 | |||
84 | /* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to | 82 | /* Note: PF_INET, SOCK_DGRAM, IPPROTO_UDP would allow SIOCGIFHWADDR to |
85 | * 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 |
86 | * destination address. | 84 | * destination address. |