mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
[5G-NAS] Avoid parse failure with Packet Filter match-all type
This commit is contained in:
committed by
Sukchan Lee
parent
b11350f969
commit
f7889f2be3
@@ -843,6 +843,8 @@ static int parse_qos_rules_packet_filter_list(ogs_nas_qos_rule_t *rule, const ui
|
||||
sizeof(rule->pf[i].content.component[j].type));
|
||||
len += sizeof(rule->pf[i].content.component[j].type);
|
||||
switch(rule->pf[i].content.component[j].type) {
|
||||
case OGS_PACKET_FILTER_MATCH_ALL:
|
||||
break;
|
||||
case OGS_PACKET_FILTER_PROTOCOL_IDENTIFIER_NEXT_HEADER_TYPE:
|
||||
if (size+len+
|
||||
sizeof(rule->pf[i].content.component[j].proto) >
|
||||
|
@@ -112,6 +112,8 @@ static int reconfigure_packet_filter(
|
||||
pf->direction = qos_rule->pf[i].direction;
|
||||
for (j = 0; j < qos_rule->pf[i].content.num_of_component; j++) {
|
||||
switch(qos_rule->pf[i].content.component[j].type) {
|
||||
case OGS_PACKET_FILTER_MATCH_ALL:
|
||||
break;
|
||||
case OGS_PACKET_FILTER_PROTOCOL_IDENTIFIER_NEXT_HEADER_TYPE:
|
||||
pf->ipfw_rule.proto = qos_rule->pf[i].content.component[j].proto;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user