Last change
on this file since 1855b68 was
96b02b5,
checked in by OpenGnSys Support Team <soporte-og@…>, 4 years ago
|
#971 split wake on lan code
Add wol.c and wol.h that implements WakeOnLan?.
|
-
Property mode set to
100644
|
File size:
469 bytes
|
Line | |
---|
1 | #ifndef _OG_WOL_H_ |
---|
2 | #define _OG_WOL_H_ |
---|
3 | |
---|
4 | #define OG_WOL_SEQUENCE 6 |
---|
5 | #define OG_WOL_MACADDR_LEN 6 |
---|
6 | #define OG_WOL_REPEAT 16 |
---|
7 | |
---|
8 | #include <stdbool.h> |
---|
9 | |
---|
10 | struct wol_msg { |
---|
11 | char secuencia_FF[OG_WOL_SEQUENCE]; |
---|
12 | char macbin[OG_WOL_REPEAT][OG_WOL_MACADDR_LEN]; |
---|
13 | }; |
---|
14 | |
---|
15 | bool wake_up_send(int sd, struct sockaddr_in *client, |
---|
16 | const struct wol_msg *msg, const struct in_addr *addr); |
---|
17 | bool wake_up_broadcast(int sd, struct sockaddr_in *client, |
---|
18 | const struct wol_msg *msg); |
---|
19 | |
---|
20 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.