Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
alex037yang
OpenXG-RAN
Commits
757b1940
Commit
757b1940
authored
Nov 13, 2015
by
gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem decoding S1AP
parent
34ab7c37
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1035 additions
and
93 deletions
+1035
-93
cmake_targets/epc_test/CMakeLists.template
cmake_targets/epc_test/CMakeLists.template
+2
-0
openair3/TEST/EPC_TEST/TEST_1MME_1ENB_1UE_ATTACH_GUTI/attach_complete.pdml
..._TEST/TEST_1MME_1ENB_1UE_ATTACH_GUTI/attach_complete.pdml
+1
-1
openair3/TEST/EPC_TEST/generic_scenario.xsl
openair3/TEST/EPC_TEST/generic_scenario.xsl
+49
-42
openair3/TEST/EPC_TEST/play_scenario.c
openair3/TEST/EPC_TEST/play_scenario.c
+931
-34
openair3/TEST/EPC_TEST/play_scenario.h
openair3/TEST/EPC_TEST/play_scenario.h
+52
-16
No files found.
cmake_targets/epc_test/CMakeLists.template
View file @
757b1940
cmake_minimum_required(VERSION 2.8)
set ( CMAKE_BUILD_TYPE "RelWithDebInfo" )
set ( ASN_DEBUG False)
set ( ADDR_CONF False )
set ( DEBUG_OMG False )
set ( DISABLE_XER_PRINT False )
set ( DRIVER2013 True )
set ( EMOS False )
set ( EMIT_ASN_DEBUG True )
set ( ENABLE_FXP True )
set ( ENABLE_ITTI True )
set ( ENABLE_NAS_UE_LOGGING True )
...
...
openair3/TEST/EPC_TEST/TEST_1MME_1ENB_1UE_ATTACH_GUTI/attach_complete.pdml
View file @
757b1940
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="pdml2html.xsl"?>
<!-- You can find pdml2html.xsl in /usr/share/wireshark or at http://anonsvn.wireshark.org/trunk/wireshark/pdml2html.xsl. -->
<pdml
capture_file=
"./attach_complete.pcapng"
creator=
"wireshark/1.10.6"
time=
"
Wed Oct 14 15:33:0
8 2015"
version=
"0"
>
<pdml
capture_file=
"./attach_complete.pcapng"
creator=
"wireshark/1.10.6"
time=
"
Mon Nov 2 09:22:4
8 2015"
version=
"0"
>
<packet>
<proto
name=
"frame"
pos=
"0"
showname=
"Frame 9: 82 bytes on wire (656 bits), 82 bytes captured (656 bits) on interface 0"
size=
"82"
>
<field
name=
"frame.interface_id"
pos=
"0"
show=
"0"
showname=
"Interface id: 0"
size=
"0"
/>
...
...
openair3/TEST/EPC_TEST/generic_scenario.xsl
View file @
757b1940
This diff is collapsed.
Click to expand it.
openair3/TEST/EPC_TEST/play_scenario.c
View file @
757b1940
This diff is collapsed.
Click to expand it.
openair3/TEST/EPC_TEST/play_scenario.h
View file @
757b1940
...
...
@@ -28,18 +28,22 @@
*******************************************************************************/
/*
generate
_scenario.h
play
_scenario.h
-------------------
AUTHOR : Lionel GAUTHIER
COMPANY : EURECOM
EMAIL : Lionel.Gauthier@eurecom.fr
*/
#ifndef GENERATE_SCENARIO_H_
#define GENERATE_SCENARIO_H_
# include <time.h>
# include <stdint.h>
#include <libxml/tree.h>
#ifndef PLAY_SCENARIO_H_
#define PLAY_SCENARIO_H_
# include <time.h>
# include <stdint.h>
# include <libxml/tree.h>
# include <netinet/in.h>
#include "s1ap_ies_defs.h"
/** @defgroup _enb_app ENB APP
* @ingroup _oai2
...
...
@@ -83,13 +87,32 @@ typedef enum {
SCTP_CID_ASCONF_ACK
=
0x80
,
}
sctp_cid_t
;
/* enum */
typedef
enum
{
TEST_S1AP_PDU_TYPE_START
=
0
,
TEST_S1AP_PDU_TYPE_UNKNOWN
=
TEST_S1AP_PDU_TYPE_START
,
TEST_S1AP_PDU_TYPE_INITIATING
,
TEST_S1AP_PDU_TYPE_SUCCESSFUL_OUTCOME
,
TEST_S1AP_PDU_TYPE_UNSUCCESSFUL_OUTCOME
,
TEST_S1AP_PDU_TYPE_END
}
test_s1ap_pdu_type_t
;
typedef
struct
test_s1ap_s
{
//test_s1ap_pdu_type_t pdu_type;
uint16_t
binary_stream_pos
;
uint16_t
binary_stream_allocated_size
;
uint8_t
*
binary_stream
;
s1ap_message
message
;
}
test_s1ap_t
;
// from kernel source file 3.19/include/linux/sctp.h, Big Endians
typedef
struct
sctp_datahdr_s
{
uint32_t
tsn
;
uint16_t
stream
;
uint16_t
ssn
;
uint32_t
ppid
;
uint8_t
payload
[
0
]
;
uint32_t
tsn
;
uint16_t
stream
;
uint16_t
ssn
;
uint32_t
ppid
;
test_s1ap_t
payload
;
}
sctp_datahdr_t
;
// from kernel source file 3.19/include/linux/sctp.h, Big Endians
...
...
@@ -115,15 +138,28 @@ typedef struct test_sctp_hdr_s {
}
u
;
}
test_sctp_hdr_t
;
typedef
struct
test_ip_s
{
unsigned
int
address_family
;
// AF_INET, AF_INET6
union
{
struct
in6_addr
ipv6
;
in_addr_t
ipv4
;
}
address
;
}
test_ip_t
;
typedef
struct
test_ip_hdr_s
{
test_ip_t
src
;
test_ip_t
dst
;
}
test_ip_hdr_t
;
typedef
struct
test_packet_s
{
test_action_t
action
;
struct
timeval
time_relative_to_first_packet
;
struct
timeval
time_relative_to_last_packet
;
struct
timeval
time_relative_to_last_sent_packet
;
struct
timeval
time_relative_to_last_received_packet
;
unsigned
int
original_frame_number
;
unsigned
int
packet_number
;
test_ip_hdr_t
ip_hdr
;
test_sctp_hdr_t
sctp_hdr
;
uint16_t
s1ap_byte_stream_count
;
uint8_t
*
s1ap_byte_stream
;
xmlNodePtr
*
s1ap_node
;
struct
test_packet_s
*
next
;
}
test_packet_t
;
...
...
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