From 39f5b03674446933451e911c517e299675f2c294 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 5 Jun 2019 12:22:09 +0100 Subject: [PATCH] Removed empty line. Changed comment. Removed unused variables. --- srsue/hdr/stack/upper/tft_packet_filter.h | 2 +- srsue/src/stack/upper/gw.cc | 4 ++-- srsue/src/stack/upper/tft_packet_filter.cc | 3 --- srsue/test/upper/nas_test.cc | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/srsue/hdr/stack/upper/tft_packet_filter.h b/srsue/hdr/stack/upper/tft_packet_filter.h index 26648b017..4361daf5b 100644 --- a/srsue/hdr/stack/upper/tft_packet_filter.h +++ b/srsue/hdr/stack/upper/tft_packet_filter.h @@ -96,4 +96,4 @@ public: } // namespace srsue -#endif // SRSUE_GW_METRICS_H +#endif // SRSUE_TFT_PACKET_FILTER_H diff --git a/srsue/src/stack/upper/gw.cc b/srsue/src/stack/upper/gw.cc index 48e20b3c1..6910cd07d 100644 --- a/srsue/src/stack/upper/gw.cc +++ b/srsue/src/stack/upper/gw.cc @@ -228,8 +228,8 @@ int gw::apply_traffic_flow_template(uint8_t erab_id, const LIBLTE_MME_TRAFFIC_FL for (int i = 0; i < tft->packet_filter_list_size; i++) { gw_log->console("New packet filter for TFT\n"); tft_packet_filter_t filter(erab_id, tft->packet_filter_list[i]); - auto it = tft_filter_map.insert(std::make_pair(filter.eval_precedence, filter)); - if(it.second == false){ + auto it = tft_filter_map.insert(std::make_pair(filter.eval_precedence, filter)); + if (it.second == false) { gw_log->error("Error inserting TFT Packet Filter\n"); return SRSLTE_ERROR_CANT_START; } diff --git a/srsue/src/stack/upper/tft_packet_filter.cc b/srsue/src/stack/upper/tft_packet_filter.cc index 2d0239374..7a9094756 100644 --- a/srsue/src/stack/upper/tft_packet_filter.cc +++ b/srsue/src/stack/upper/tft_packet_filter.cc @@ -95,9 +95,6 @@ tft_packet_filter_t::tft_packet_filter_t(uint8_t eps_bearer_id, const LIBLTE_MME bool tft_packet_filter_t::match(const srslte::unique_byte_buffer_t& pdu) { - bool match = true; - struct iphdr* ip_pkt = (struct iphdr*)pdu->msg; - struct ipv6hdr* ip6_pkt = (struct ipv6hdr*)pdu->msg; // Match IP Header to active filters if (!match_ip(pdu)) { diff --git a/srsue/test/upper/nas_test.cc b/srsue/test/upper/nas_test.cc index 7f6452b2a..1d1d4d1d9 100644 --- a/srsue/test/upper/nas_test.cc +++ b/srsue/test/upper/nas_test.cc @@ -435,7 +435,6 @@ int dedicated_eps_bearer_test() int main(int argc, char **argv) { - if (security_command_test()) { printf("Security command test failed.\n"); return -1;