summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bp_sim.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index f070fa76..63a3c144 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -1211,7 +1211,7 @@ void CPacketIndication::ProcessIpPacket(CPacketParser *parser,
return;
}
- if ( m_packet->pkt_len > MAX_PKT_SIZE -FIRST_PKT_SIZE ){
+ if ( m_packet->pkt_len > MAX_PKT_SIZE ){
m_cnt->m_tcp_udp_pkt_length_error++;
printf("ERROR packet is too big, not supported jumbo packets that larger than %d \n",MAX_PKT_SIZE);
return;
@@ -1221,9 +1221,6 @@ void CPacketIndication::ProcessIpPacket(CPacketParser *parser,
m_packet->pkt_len = l3.m_ipv4->getTotalLength() + getIpOffset();
if (m_packet->pkt_len < 60) { m_packet->pkt_len = 60; }
-
-
-
m_cnt->m_valid_udp_tcp++;
m_payload_len = l3.m_ipv4->getTotalLength() - (payload_offset_from_ip);
m_payload = (uint8_t *)(packetBase +offset);