Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai-upf-6g
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
oai-upf-6g
Commits
47bb9838
Commit
47bb9838
authored
Oct 16, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: check if the map_size is larger than MAX_PDRS_PER_SESSION
parent
80334e2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/upf_app/bpf/rules/pdr/pfcp_session_lookup_xdp_kernel.c
src/upf_app/bpf/rules/pdr/pfcp_session_lookup_xdp_kernel.c
+2
-1
No files found.
src/upf_app/bpf/rules/pdr/pfcp_session_lookup_xdp_kernel.c
View file @
47bb9838
...
...
@@ -68,7 +68,7 @@ static u8 next_hop_n3_mac_address[6] = {0};
static
bool
cached_n3
=
false
;
// static bool cached_n6 = false;
#define MAX_PDRS_PER_SESSION 32
//
#define MAX_PDRS_PER_SESSION 32
enum
ret_code
{
FAILURE
=
-
1
,
// Distinguished frop drop for further processing later on. We
...
...
@@ -524,6 +524,7 @@ static __always_inline pfcp_pdr_t_* pfcp_session_s_lookup_precedence_over_n3(
#pragma clang loop unroll(full)
for
(
int
i
=
0
;
i
<
MAX_PDRS_PER_SESSION
;
i
++
)
{
if
(
i
>=
max_pdrs_per_pdu_session
)
break
;
pfcp_pdr_t_
*
pdr_high_prec
=
&
(
*
pdrs
)[
i
];
pdi_t_
pdi
=
pdr_high_prec
->
pdi
;
u32
ipaddr
=
bpf_htonl
(
pdi
.
ue_ip_address
.
ipv4_address
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment