21 #ifndef PLUGINS_PATHPORT_PATHPORTPACKETS_H_
22 #define PLUGINS_PATHPORT_PATHPORTPACKETS_H_
24 #include <sys/types.h>
26 #include "ola/network/IPV4Address.h"
36 enum pathport_packet_type_e {
37 PATHPORT_DATA = 0x0100,
38 PATHPORT_PATCH = 0x0200,
39 PATHPORT_PATCHREP = 0x0210,
40 PATHPORT_GET = 0x0222,
41 PATHPORT_GET_REPLY = 0x0223,
42 PATHPORT_ARP_REQUEST = 0x0301,
43 PATHPORT_ARP_REPLY = 0x0302,
44 PATHPORT_SET = 0x0400,
45 }__attribute__((packed));
47 typedef enum pathport_packet_type_e pathport_packet_type_t;
55 uint16_t channel_count;
60 }__attribute__((packed));
70 } __attribute__((packed));
80 } __attribute__((packed));
98 uint8_t ip[ola::network::IPV4Address::LENGTH];
99 uint8_t manufacturer_code;
100 uint8_t device_class;
102 uint8_t component_count;
103 }__attribute__((packed));
111 }__attribute__((packed));
126 }__attribute__((packed));
136 uint8_t version_major;
137 uint8_t version_minor;
141 uint32_t destination;
142 }__attribute__((packed));
156 }__attribute__((packed));
160 #endif // PLUGINS_PATHPORT_PATHPORTPACKETS_H_