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
335fec3a
Commit
335fec3a
authored
Oct 23, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: additional cleaning
parent
fda3eef1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
93 deletions
+1
-93
src/upf_app/bpf/lib/crc16.h
src/upf_app/bpf/lib/crc16.h
+0
-63
src/upf_app/bpf/msg/pfcp_header.h
src/upf_app/bpf/msg/pfcp_header.h
+0
-29
src/upf_app/bpf/rules/pdr_and_far/pfcp_session_lookup_xdp_kernel.c
...pp/bpf/rules/pdr_and_far/pfcp_session_lookup_xdp_kernel.c
+1
-1
No files found.
src/upf_app/bpf/lib/crc16.h
deleted
100644 → 0
View file @
fda3eef1
// #ifndef __CRC16_H__
// #define __CRC16_H__
// #include <stdint.h>
// #define CRC16 0x8005
// static uint16_t gen_crc16(const uint8_t *data, uint16_t size)
// {
// uint16_t out = 0;
// int bits_read = 0, bit_flag;
// /* Sanity check: */
// if(data == 0)
// return 0;
// // while(size > 0)
// int k;
// for(k = 0; k < 32; k++)
// {
// bit_flag = out >> 15;
// /* Get next bit: */
// out <<= 1;
// out |= (*data >> bits_read) & 1; // item a) work from the least
// significant bits
// /* Increment bit counter: */
// bits_read++;
// if(bits_read > 7)
// {
// bits_read = 0;
// data++;
// // size--;
// }
// /* Cycle check: */
// if(bit_flag)
// out ^= CRC16;
// }
// // item b) "push out" the last 16 bits
// int i;
// for (i = 0; i < 16; ++i) {
// bit_flag = out >> 15;
// out <<= 1;
// if(bit_flag)
// out ^= CRC16;
// }
// // item c) reverse the bits
// uint16_t crc = 0;
// i = 0x8000;
// int j = 0x0001;
// for (; i != 0; i >>=1, j <<= 1) {
// if (i & out) crc |= j;
// }
// return crc;
// }
// #endif // __CRC16_H__
\ No newline at end of file
src/upf_app/bpf/msg/pfcp_header.h
deleted
100644 → 0
View file @
fda3eef1
#ifndef __PFCP_HEADER_H__
#define __PFCP_HEADER_H__
#include <types.h>
#include <ie/ie_base.h>
namespace
pfcp
{
//--------------------------------------------------------
// 7.2.2.2-1: PFCP Message Header for node related messages
typedef
struct
header_node
{
u8
s
:
1
;
u8
mp
:
1
;
u8
spare
:
3
;
u8
version
:
3
u16
message_length
;
u32
sequence_number
:
24
;
u32
spare
:
8
;
}
header_node_t_
;
//--------------------------------------------------------
// 7.2.2.3-1: PFCP message Header for session related messages
// TODO
typedef
struct
header_node
{
u8
s
:
1
;
u8
mp
:
1
;
u8
spare
:
3
;
u8
version
:
3
}
header_session_t_
;
}
// namespace pfcp
#endif // __PFCP_HEADER_H__
\ No newline at end of file
src/upf_app/bpf/rules/pdr_and_far/pfcp_session_lookup_xdp_kernel.c
View file @
335fec3a
...
...
@@ -4,7 +4,7 @@
#include <bpf_helpers.h>
#include <bpf_endian.h>
#include <endian.h>
#include <lib/crc16.h>
//
#include <lib/crc16.h>
#include <utils/csum.h>
#include <protocols/ip.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