Harald Welte | c3fa0b0 | 2015-08-30 16:55:43 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | /* A humble attempt of reading the Iu messages (RUA/RANAP/HNBAP) without an asn.1 parser. |
| 4 | * Not actually used anywhere (yet?) */ |
| 5 | |
| 6 | struct iu_common_hdr { |
| 7 | uint8_t msg_type; |
| 8 | uint8_t procedure_code; |
| 9 | uint8_t criticality; |
| 10 | uint8_t len; /* first byte of length field */ |
| 11 | uint8_t payload[0]; /* possible further length field + payload */ |
| 12 | /* extension? */ |
| 13 | /* ? */ |
| 14 | /* number of ProtocolIEs */ |
| 15 | } __attribute__ ((packed)); |
| 16 | |
| 17 | struct iu_common_ie { |
| 18 | uint16_t iei; |
| 19 | uint8_t criticality; |
| 20 | uint8_t len; /* first byte of length field */ |
| 21 | uint8_t payload[0]; /* possible further length field + payload */ |
| 22 | } __attribute__ ((packed)); |
| 23 | |