21 #ifndef PLUGINS_SANDNET_SANDNETPACKETS_H_
22 #define PLUGINS_SANDNET_SANDNETPACKETS_H_
24 #include <sys/types.h>
26 #include <netinet/in.h>
31 #include "plugins/sandnet/SandNetCommon.h"
37 enum { SANDNET_NAME_LENGTH = 31};
44 SANDNET_ADVERTISMENT = 0x0100,
45 SANDNET_CONTROL = 0x0200,
47 SANDNET_NAME = 0x0400,
48 SANDNET_IDENTIFY = 0x0500,
49 SANDNET_PROG = 0x0600,
51 SANDNET_COMPRESSED_DMX = 0x0a00,
52 }__attribute__((packed));
54 typedef enum packet_type_e packet_type_t;
57 SANDNET_SANDNET = 0x02,
58 SANDNET_ARTNET = 0x04,
59 SANDNET_COMPULIGHT = 0x06,
60 SANDNET_SHOWNET = 0x09,
63 }__attribute__((packed));
65 typedef enum protocol_id_e protocol_id_t;
68 protocol_id_t protocol;
75 }__attribute__((packed));
82 uint8_t mac[ola::network::MACAddress::LENGTH];
86 char name[SANDNET_NAME_LENGTH];
91 }__attribute__((packed));
104 }__attribute__((packed));
113 uint8_t mac[ola::network::MACAddress::LENGTH];
116 }__attribute__((packed));
125 uint8_t mac[ola::network::MACAddress::LENGTH];
127 uint8_t name[SANDNET_NAME_LENGTH];
128 }__attribute__((packed));
138 uint8_t mac[ola::network::MACAddress::LENGTH];
139 }__attribute__((packed));
149 uint8_t mac[ola::network::MACAddress::LENGTH];
150 uint8_t ip[ola::network::IPV4Address::LENGTH];
152 uint8_t netmask[ola::network::IPV4Address::LENGTH];
153 }__attribute__((packed));
162 uint8_t mac[ola::network::MACAddress::LENGTH];
164 }__attribute__((packed));
180 } __attribute__((packed));
198 } __attribute__((packed));
202 #endif // PLUGINS_SANDNET_SANDNETPACKETS_H_