Removed empty line. Changed comment. Removed unused variables.

This commit is contained in:
Pedro Alvarez 2019-06-05 12:22:09 +01:00 committed by Andre Puschmann
parent 94ee294aea
commit 39f5b03674
4 changed files with 3 additions and 7 deletions

View File

@ -96,4 +96,4 @@ public:
} // namespace srsue
#endif // SRSUE_GW_METRICS_H
#endif // SRSUE_TFT_PACKET_FILTER_H

View File

@ -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;
}

View File

@ -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)) {

View File

@ -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;