From 0056cea756a890101ec42a3da61977cc39cbc54a Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Thu, 6 Nov 2014 12:24:46 +0000
Subject: [PATCH] Remove user pdu hex dump

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5999 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair-cn/GTPV1-U/gtpv1u_task.c       |  6 +++---
 openair-cn/SGI/sgi_egress.c            | 14 +++++++-------
 openair-cn/UDP/udp_primitives_server.c |  8 ++++----
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/openair-cn/GTPV1-U/gtpv1u_task.c b/openair-cn/GTPV1-U/gtpv1u_task.c
index dab243d294..17f25d38e9 100644
--- a/openair-cn/GTPV1-U/gtpv1u_task.c
+++ b/openair-cn/GTPV1-U/gtpv1u_task.c
@@ -473,9 +473,9 @@ static void *gtpv1u_thread(void *args)
 
                 data_req_p = &received_message_p->ittiMsg.gtpv1uTunnelDataReq;
 
-                GTPU_DEBUG("-- GTPV1U_TUNNEL_DATA_REQ -----------------------------------------------------\n%s :\n",
-                        __FUNCTION__);
-                gtpu_print_hex_octets(data_req_p->buffer, data_req_p->length);
+                //GTPU_DEBUG("-- GTPV1U_TUNNEL_DATA_REQ -----------------------------------------------------\n%s :\n",
+                //        __FUNCTION__);
+                //gtpu_print_hex_octets(data_req_p->buffer, data_req_p->length);
 
 
                 memset(&stack_req, 0, sizeof(NwGtpv1uUlpApiT));
diff --git a/openair-cn/SGI/sgi_egress.c b/openair-cn/SGI/sgi_egress.c
index 00cf6ab5e8..01bdecace1 100755
--- a/openair-cn/SGI/sgi_egress.c
+++ b/openair-cn/SGI/sgi_egress.c
@@ -93,8 +93,8 @@ void sgi_process_raw_packet(sgi_data_t *sgi_data_pP, unsigned char* data_pP, int
         dest4_addr = iph_p->daddr;
         if (hashtable_get(sgi_data_pP->addr_v4_mapping, dest4_addr, (void**)&addr_mapping_p) == HASH_TABLE_OK) {
             memcpy(eh_p->ether_dhost, addr_mapping_p->ue_mac_addr, ETH_ALEN);
-            SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
-            sgi_print_hex_octets(data_pP, packet_sizeP);
+            //SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
+            //sgi_print_hex_octets(data_pP, packet_sizeP);
 
         } else {
             if (sgi_data_pP->ipv4_addr == dest4_addr) {
@@ -116,8 +116,8 @@ void sgi_process_raw_packet(sgi_data_t *sgi_data_pP, unsigned char* data_pP, int
         memcpy(dest6_addr.__in6_u.__u6_addr8, ip6h_p->daddr.__in6_u.__u6_addr8, 16);
         if (obj_hashtable_get(sgi_data_pP->addr_v6_mapping, (void*)&dest6_addr, sizeof(struct in6_addr), (void**)&addr_mapping_p) == HASH_TABLE_OK) {
             memcpy(eh_p->ether_dhost, addr_mapping_p->ue_mac_addr, ETH_ALEN);
-            SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
-            sgi_print_hex_octets(data_pP, packet_sizeP);
+            //SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
+            //sgi_print_hex_octets(data_pP, packet_sizeP);
         } else {
             //SGI_IF_WARNING("%s Dropping incoming egress IPV6 packet, IPV6 dest %X:%X:%X:%X:%X:%X:%X:%X not found \n", __FUNCTION__, NIP6ADDR(&dest6_addr));
             return;
@@ -226,7 +226,7 @@ void sgi_process_raw_packet(sgi_data_t *sgi_data_pP, unsigned char* data_pP, int
 
 
     switch (htons(eh_p->ether_type)) {
-    sgi_print_hex_octets(data_pP, packet_sizeP);
+    //sgi_print_hex_octets(data_pP, packet_sizeP);
 
     //*******************
     case ETHERTYPE_IP:
@@ -315,8 +315,8 @@ void sgi_process_raw_packet(sgi_data_t *sgi_data_pP, unsigned char* data_pP, int
         //SGI_IF_ERROR("%s UNHANDLED ether type %d of incoming egress packet\n", __FUNCTION__, eh_p->ether_type);
         return;
     }
-    SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
-    sgi_print_hex_octets(data_pP+sizeof(sgi_data_pP->eh), packet_sizeP - sizeof(sgi_data_pP->eh));
+    //SGI_IF_DEBUG("--------------------------------------------------------------\n%s :\n", __FUNCTION__);
+    //sgi_print_hex_octets(data_pP+sizeof(sgi_data_pP->eh), packet_sizeP - sizeof(sgi_data_pP->eh));
 
     message_p               = itti_alloc_new_message(TASK_FW_IP, GTPV1U_TUNNEL_DATA_REQ);
     if (message_p == NULL) {
diff --git a/openair-cn/UDP/udp_primitives_server.c b/openair-cn/UDP/udp_primitives_server.c
index f897aa9b7e..794f336642 100644
--- a/openair-cn/UDP/udp_primitives_server.c
+++ b/openair-cn/UDP/udp_primitives_server.c
@@ -347,10 +347,10 @@ static void *udp_intertask_interface(void *args_p)
 
                     udp_data_req_p = &received_message_p->ittiMsg.udp_data_req;
 
-                    UDP_DEBUG("-- UDP_DATA_REQ -----------------------------------------------------\n%s :\n",
-                            __FUNCTION__);
-                    udp_print_hex_octets(&udp_data_req_p->buffer[udp_data_req_p->buffer_offset],
-                            udp_data_req_p->buffer_length);
+                    //UDP_DEBUG("-- UDP_DATA_REQ -----------------------------------------------------\n%s :\n",
+                    //        __FUNCTION__);
+                    //udp_print_hex_octets(&udp_data_req_p->buffer[udp_data_req_p->buffer_offset],
+                    //        udp_data_req_p->buffer_length);
 
                     memset(&peer_addr, 0, sizeof(struct sockaddr_in));
 
-- 
GitLab