Thx for your time.
I tried and sadly it does not work :
80610954 packets were captured by the application
80611383 packets were captured by the kernel
283 packets were dropped by the kernel
0 packets were dropped by the driver
0 packets were dropped due to buffer overflow
9783068 ms execution time
80610954 packets were processed
worker threads: 6 on 6 CPUs
rcdcap: /tmp/source/src/common-buffer.cc:156: RCDCap::PacketInfo RCDCap::CommonBuffer::next(RCDCap::PacketInfo) const: Assertion `reinterpret_cast<char*>(packet_info) + packet_info->getAllocatedSize() <= m_Data + m_Capacity' failed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Alright, can you try the latest modification? My knowledge about this pipeline was getting a little bit rusty. It would be much faster to fix it if you can provide a repro dump of a stream of packets.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
RCDcap crash after few hours.
The command is :
rcdcap -i eth0 --erspan -d -b 400MB --tap-persist -t ERSPAN --expression "host IP1 or host IP2"
The rcdcap log :
The trafic load is about 8 MB/s and 17K pps.
Do you have an idea ?
Regards,
Julien
Are you sure that you don't have jumbo frames enabled? You may increase the packet size by using -s 1600 or -s 9100 if you have jumbo frames.
I tried both and I had this error :
rcdcap: /tmp/RCDCap-0.7.99-Source/src/sink.cc:275: void RCDCap::TAPDeviceSink::writeCompleted(RCDCap::PacketInfo*, size_t, size_t, const boost::system::error_code&, std::size_t): Assertion
bytes_transferred == packet_info->getPCAPHeader().getCapturedLength()' failed.`For your information, it works fine without the erspan decode!
It seems there is an issue into it.
Can you check the latest revision? I have added a very simple option to bypass the check and drop packets (-y or --ignore-incomplete)
Last edit: Zero effect 2016-11-13
Thx for your time.
I tried and sadly it does not work :
80610954 packets were captured by the application
80611383 packets were captured by the kernel
283 packets were dropped by the kernel
0 packets were dropped by the driver
0 packets were dropped due to buffer overflow
9783068 ms execution time
80610954 packets were processed
worker threads: 6 on 6 CPUs
rcdcap: /tmp/source/src/common-buffer.cc:156: RCDCap::PacketInfo RCDCap::CommonBuffer::next(RCDCap::PacketInfo) const: Assertion `reinterpret_cast<char*>(packet_info) + packet_info->getAllocatedSize() <= m_Data + m_Capacity' failed.
Alright, can you try the latest modification? My knowledge about this pipeline was getting a little bit rusty. It would be much faster to fix it if you can provide a repro dump of a stream of packets.