Comments (5)
After looking deeper into the cause of this, the assumption which produced the problem, was that a user would always want to change (fix) the header length.
Users may only want to change (fix) the header length when desired. Thus a flag to turn on (default off) this behavior, would avoid surprises for those using 4.4.0, and moving to 4.4.1
from tcpreplay.
This issue is related to issue #845
The issue resolves the problems encountered with modifying packet length.
This issue does not address the underlying quesion, what should be the packet length calculation result.
from tcpreplay.
This issue does not address the underlying quesion, what should be the packet length calculation result.
I would like to mark this issue resolved by PR #843. I'm a bit concerned about this statement. Can you elaborate? Can a new ticket be opened if the packet length calculation is incorrect (other than issue #845)?
from tcpreplay.
Verified PR #846 fixes this:
~/git/tcpreplay/build Bug_703_844_PR_846_optionally_fix_pkt_hdr_len* ⇡
❯ src/tcprewrite --cachefile=pcaps/pcap.cache \
--infile=pcaps/cap-original-packet-3.pcap \
--outfile=pcaps/cap-4.5.0-packet-out.pcap \
--endpoints=10.200.1.1:10.200.1.2
Warning in ../../src/tcprewrite.c:post_args() line 231:
pcaps/cap-original-packet-3.pcap was captured using a snaplen of 1514 bytes. This may mean you have truncated packets.
~/git/tcpreplay/build Bug_703_844_PR_846_optionally_fix_pkt_hdr_len* ⇡
❯ diff pcaps/cap-4.4.0-packet-3.pcap pcaps/cap-4.5.0-packet-out.pcap
~/git/tcpreplay/build Bug_703_844_PR_846_optionally_fix_pkt_hdr_len* ⇡
❯
from tcpreplay.
Fixed in PR #846
from tcpreplay.
Related Issues (20)
- Fatal Error: failed to open device ens1f1: Failure accessing netmap. HOT 3
- Warning: Unable to process unsupported DLT type: Ethernet (0x1) HOT 3
- [Bug] Heap overflow in csum_replace4() (reopen) HOT 1
- [Feature] GitHub Template for pull requests HOT 1
- `tcpreplay-edit` incorrectly rewrites layer 3 length field to include Ethernet padding HOT 6
- [Bug] tcprewrite provides incorrect checksum for certain ipv4 packets HOT 2
- [Bug] Double-free in tcpreplay's tcprewrite utility HOT 4
- [Bug] Fortigate and tcpreplay HOT 2
- [Bug] regression with nanosecond timestamps HOT 1
- [Bug] tcpprep memory leak when using Regex HOT 1
- [Bug] memory leak in tcpprep with using include/exclude HOT 1
- [Bug] AF_XDP compile failures HOT 1
- [Feature] add -w (--suppress-warnings) option to suppress warning messages HOT 1
- [Feature] tcpreplay --include / --exclude options HOT 1
- [Bug] NULL Pointer Dereference in parse_endpoints at cidr.c:338 HOT 4
- [Bug] NULL Pointer Dereference in ports2PORT at portmap.c:112
- [Enhancement] Build-Depends on GNU autogen
- [Bug] AF_XDP sender sends at maximum speed
- [Feature] recalculate IPv6 Fragment header checksum HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcpreplay.