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
8cffa02f
Commit
8cffa02f
authored
Oct 17, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: folloow up to the update of the code base
parent
0c7ccbcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
src/upf_app/bpf/rules/include/arp_table.h
src/upf_app/bpf/rules/include/arp_table.h
+12
-0
src/upf_app/bpf/rules/include/far_maps.h
src/upf_app/bpf/rules/include/far_maps.h
+33
-0
No files found.
src/upf_app/bpf/rules/include/arp_table.h
0 → 100644
View file @
8cffa02f
#ifndef __ARP_TABLE_H__
#define __ARP_TABLE_H__
#include <types.h>
//#include <stdint.h>
struct
s_arp_mapping
{
uint8_t
mac_address
[
6
];
uint32_t
ipv4_address
;
};
#endif // __ARP_TABLE_H__
\ No newline at end of file
src/upf_app/bpf/rules/include/far_maps.h
0 → 100644
View file @
8cffa02f
#ifndef __FAR_MAPS_H__
#define __FAR_MAPS_H__
#include <bpf_helpers.h>
#include <linux/bpf.h>
#include <pfcp/pfcp_far.h>
#include <types.h>
#include "arp_table.h"
#define ARP_ENTRIES_MAX_SIZE 10000
#define FAR_TAILS_MAX 20
#define MAX_INTERFACES 10
#define MAX_FAR_PROGRAMS 10000
/*---------------------------------------------------------------------------------------------------------------*/
struct
{
__uint
(
type
,
BPF_MAP_TYPE_DEVMAP
);
__uint
(
max_entries
,
MAX_INTERFACES
);
__type
(
key
,
u32
);
// id
__type
(
value
,
u32
);
// tx port
}
m_redirect_interfaces
SEC
(
".maps"
);
/*---------------------------------------------------------------------------------------------------------------*/
struct
{
__uint
(
type
,
BPF_MAP_TYPE_HASH
);
__uint
(
max_entries
,
ARP_ENTRIES_MAX_SIZE
);
__type
(
key
,
u32
);
// IPv4 address
__type
(
value
,
struct
s_arp_mapping
);
// <IP Address, MAC address>
}
m_arp_table
SEC
(
".maps"
);
/*---------------------------------------------------------------------------------------------------------------*/
#endif // __FAR_MAPS_H__
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