[5G-NAS] Avoid parse failure with Packet Filter match-all type

This commit is contained in:
Pau Espin Pedrol
2025-08-22 18:44:18 +02:00
committed by Sukchan Lee
parent b11350f969
commit f7889f2be3
2 changed files with 4 additions and 0 deletions

View File

@@ -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) >

View File

@@ -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;