21 #ifndef PLUGINS_SANDNET_SANDNETPACKETS_H_
22 #define PLUGINS_SANDNET_SANDNETPACKETS_H_
24 #include <sys/types.h>
26 #include <netinet/in.h>
28 #include <ola/network/InterfacePicker.h>
30 #include "plugins/sandnet/SandNetCommon.h"
36 using ola::network::MAC_LENGTH;
38 enum { SANDNET_NAME_LENGTH = 31};
45 SANDNET_ADVERTISMENT = 0x0100,
46 SANDNET_CONTROL = 0x0200,
48 SANDNET_NAME = 0x0400,
49 SANDNET_IDENTIFY = 0x0500,
50 SANDNET_PROG = 0x0600,
52 SANDNET_COMPRESSED_DMX = 0x0a00,
53 }__attribute__((packed));
55 typedef enum packet_type_e packet_type_t;
58 SANDNET_SANDNET = 0x02,
59 SANDNET_ARTNET = 0x04,
60 SANDNET_COMPULIGHT = 0x06,
61 SANDNET_SHOWNET = 0x09,
64 }__attribute__((packed));
66 typedef enum protocol_id_e protocol_id_t;
69 protocol_id_t protocol;
76 }__attribute__((packed));
83 uint8_t mac[ola::network::MAC_LENGTH];
87 char name[SANDNET_NAME_LENGTH];
92 }__attribute__((packed));
105 }__attribute__((packed));
114 uint8_t mac[MAC_LENGTH];
117 }__attribute__((packed));
126 uint8_t mac[MAC_LENGTH];
128 uint8_t name[SANDNET_NAME_LENGTH];
129 }__attribute__((packed));
139 uint8_t mac[MAC_LENGTH];
140 }__attribute__((packed));
150 uint8_t mac[MAC_LENGTH];
154 }__attribute__((packed));
163 uint8_t mac[MAC_LENGTH];
165 }__attribute__((packed));
181 } __attribute__((packed));
199 } __attribute__((packed));
203 #endif // PLUGINS_SANDNET_SANDNETPACKETS_H_