MKCommModel
MKPacket.h
00001 #ifndef MKPACKET_H
00002 #define MKPACKET_H
00003 
00007 struct NeighborInfo {
00008         uint16_t zsize;
00010         uint8_t mac[6];
00012         uint32_t ip_addr;
00013 
00014         
00015         uint32_t metric;
00016         uint32_t inactive;
00017         uint32_t rx_bytes;
00018         uint32_t rx_packets;
00019         uint32_t tx_bytes;
00020         uint32_t tx_packets;
00021         
00022         uint16_t signal;
00023         uint8_t tx_rate;
00024         uint32_t throughput;
00025 } __attribute__((packed));
00026 
00028 struct HeartBeatPacket {
00029         uint8_t pkt_vermaj;
00030         uint8_t pkt_vermin;
00031         uint16_t pkt_size;
00032         uint32_t uptime;
00034         uint8_t mac[6];
00036         uint32_t ip_addr;
00038         uint8_t num_stations;
00040         NeighborInfo *mp;
00041 } __attribute__((packed));
00042 
00043 #endif
 All Classes Functions Variables