About the enum type of per decode
In the function of packet-per.c, dissect_per_enumerated,when there is only one element in the extension part, why not need to decode the element?
the responding code is as follows:
......
if (ext_num == 1) {
/* 10.5.4 If "range" has the value 1,
* then the result of the encoding shall be
* an empty bit-field (no bits).
*/
enum_index = 0;
}
......
the above regulation cannot be seen in the enum type of per decode regulation