21 #ifndef PLUGINS_ESPNET_ESPNETPACKETS_H_
22 #define PLUGINS_ESPNET_ESPNETPACKETS_H_
24 #include <sys/types.h>
26 #include <netinet/in.h>
28 #include "ola/network/InterfacePicker.h"
35 enum { ESPNET_NAME_LENGTH = 10 };
36 enum { ESPNET_DATA_LENGTH = 200 };
38 enum espnet_packet_type_e {
39 ESPNET_POLL =
'E' << 24 |
'S' << 16 |
'P' << 8 |
'P',
40 ESPNET_REPLY =
'E' << 24 |
'S' << 16 |
'P' << 8 |
'R',
41 ESPNET_DMX =
'E' << 24 |
'S' << 16 |
'D' << 8 |
'D',
42 ESPNET_ACK =
'E' << 24 |
'S' << 16 |
'A' << 8 |
'P'
43 }__attribute__((packed));
45 typedef enum espnet_packet_type_e espnet_packet_type_t;
53 } __attribute__((packed));
74 uint8_t mac[ola::network::MAC_LENGTH];
78 uint8_t name[ESPNET_NAME_LENGTH];
83 } __attribute__((packed));
94 } __attribute__((packed));
108 } __attribute__((packed));
128 #endif // PLUGINS_ESPNET_ESPNETPACKETS_H_