Commit a23dcab2 authored by Gary Wong's avatar Gary Wong

Local changes to add debugging output, and modify crypto key.

parent 99eccc54
......@@ -221,6 +221,14 @@ void LTE_fdd_enb_gw::handle_pdcp_msg(LTE_FDD_ENB_MESSAGE_STRUCT *msg)
{
LTE_fdd_enb_interface *interface = LTE_fdd_enb_interface::get_instance();
interface->send_debug_msg(LTE_FDD_ENB_DEBUG_TYPE_ERROR,
LTE_FDD_ENB_DEBUG_LEVEL_GW,
__FILE__,
__LINE__,
"Received handle_pdca_msg PDCP message %s",
LTE_fdd_enb_message_type_text[msg->type]);
switch(msg->type)
{
case LTE_FDD_ENB_MESSAGE_TYPE_GW_DATA_READY:
......
......@@ -361,6 +361,16 @@ void LTE_fdd_enb_interface::send_debug_msg(LTE_FDD_ENB_DEBUG_TYPE_ENUM type,
// Cleanup the variable argument string
free(args_msg);
{
static FILE *f;
if( !f )
f = fopen( "/tmp/openlte-log", "a" );
if( f )
fputs( tmp_msg.c_str(), f );
}
debug_socket->send(tmp_msg);
}
}
......
......@@ -180,6 +180,12 @@ void LTE_fdd_enb_mac::stop(void)
/***********************/
void LTE_fdd_enb_mac::handle_phy_msg(LTE_FDD_ENB_MESSAGE_STRUCT *msg)
{
if( msg->type != 3 && msg->type != 4 )
interface->send_debug_msg(LTE_FDD_ENB_DEBUG_TYPE_INFO,
LTE_FDD_ENB_DEBUG_LEVEL_MAC,
__FILE__,
__LINE__,
"MAC recv msg type %d", msg->type );
if(LTE_FDD_ENB_DEST_LAYER_MAC == msg->dest_layer ||
LTE_FDD_ENB_DEST_LAYER_ANY == msg->dest_layer)
{
......
......@@ -152,6 +152,10 @@ void LTE_fdd_enb_mme::handle_rrc_msg(LTE_FDD_ENB_MESSAGE_STRUCT *msg)
{
LTE_fdd_enb_interface *interface = LTE_fdd_enb_interface::get_instance();
interface->send_debug_msg( LTE_FDD_ENB_DEBUG_TYPE_INFO,
LTE_FDD_ENB_DEBUG_LEVEL_MME,
__FILE__, __LINE__,
"MME recv RRC msg %d", msg->type );
switch(msg->type)
{
case LTE_FDD_ENB_MESSAGE_TYPE_MME_NAS_MSG_READY:
......
......@@ -42,7 +42,8 @@ printf "#!/bin/sh\niptables-restore < /etc/iptables_openlte.rules\nexit 0\n" > /
chmod +x /etc/network/if-up.d/iptablesload
# Give cap_net_admin capabilities to LTE_fdd_enodeb
tmp_loc=$(which LTE_fdd_enodeb)
#tmp_loc=$(which LTE_fdd_enodeb)
tmp_loc="/usr/local/src/openlte-code/build/LTE_fdd_enodeb/LTE_fdd_enodeb"
setcap cap_net_admin=eip $tmp_loc
# Give global read/write permissions to /dev/net/tun
......
......@@ -59,9 +59,13 @@ typedef struct{
/*******************************************************************************
GLOBAL VARIABLES
*******************************************************************************/
/*
static const uint8 OP[16] = {0x63,0xBF,0xA5,0x0E,0xE6,0x52,0x33,0x65,
0xFF,0x14,0xC1,0xF4,0x5F,0x88,0x73,0x7D};
*/
static const uint8 OP[16] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,
0x09,0x10,0x11,0x12,0x13,0x14,0x15,0x16};
static const uint8 S[256] = { 99,124,119,123,242,107,111,197, 48, 1,103, 43,254,215,171,118,
202,130,201,125,250, 89, 71,240,173,212,162,175,156,164,114,192,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment