123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef COQOS_HEADER
- #define COQOS_HEADER
- #include "../plc/rules.h"
- #ifndef __GNUC__
- #pragma pack (push,1)
- #endif
- struct __packed connection
- {
- uint32_t REQ_ID;
- uint32_t RSVD;
- uint8_t APP_DA [6];
- uint8_t RSVD2;
- struct __packed
- {
- uint8_t MOPERAND;
- uint8_t NUM_CLASSIFIERS;
- struct MMEClassifier CLASSIFIERS [RULE_MAX_CLASSIFIERS];
- }
- rule;
- struct __packed
- {
- uint16_t CSPEC_VERSION;
- uint8_t CONN_CAP;
- uint8_t CONN_COQOS_PRIO;
- uint16_t CONN_RATE;
- uint32_t CONN_TTL;
- }
- cspec;
- };
- struct __packed conn_info
- {
- uint8_t SNID;
- uint16_t CID;
- uint8_t STEI;
- uint8_t DTEI;
- uint8_t LLID;
- uint8_t RSVD;
- uint16_t CSPECVERSION;
- uint8_t CONN_CAP;
- uint8_t CONN_COQOS_PRIO;
- uint16_t CONN_RATE;
- uint32_t CONN_TTL;
- uint16_t BW_USED;
- };
- #ifndef __GNUC__
- #pragma pack (pop)
- #endif
- #endif
|