Comments (8)
Jim,
Currently, the ethertype (and other type fields such as IP protocol type) is
derived from the subsequent protocol in the frame and not user modifiable.
However, you can use this workaround to setup a custom ethertype -
* Open the stream editor
* Goto Protocol Selection tab and select the Advanced mode - replace the Eth II protocol with the UserScript protocol
* In the Protocol Data tab, configure the script given below as the UserScript
* Hit Compile
* Goto Packet View and verify the frame is as you expected.
protocol.protocolFrameSize = function() { return 2; }
protocol.protocolFrameValue = function(index) { return [0x08, 0x00] }
Modify the protocolFrameValue() function above with the ethertype value you
want. More details and examples of userscripts are at
http://code.google.com/p/ostinato/wiki/UserScriptHOWTO.
Let me know if the workaround is acceptable for your use case. Meanwhile, I'll
mark this issue request as a future enhancement.
Regards,
Srivats
Original comment by [email protected]
on 23 Oct 2010 at 4:00
- Changed state: Accepted
from ostinato.
Original comment by [email protected]
on 23 Oct 2010 at 8:36
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from ostinato.
Thank you for your help. I'm sure that the script would have worked, and I may
use it in future if I need to control more details of content. For yesterday's
test, all I needed was a frame with the intended type word, just to see if the
recipient's stack would direct it properly. I managed to do that by deleting
the ethertype from the protocol, then specifying a repeating word content. I
made sure that the word contained the ethertype that I needed in the first 2
bytes. The test worked.
I'm probably not your typical user. Right now, I'm less interested in stress,
etc., than I am in just achieving functionality on the receiving system. For
me, it would be great to be able to compose packet content as a simple string
of hex bytes.
In any event, your tester definitely got me started, and I'm very grateful for
that.
Original comment by [email protected]
on 23 Oct 2010 at 3:07
from ostinato.
Jim,
Good to know that you managed to find a workaround for yourself! A user
editable packet content hex dump editor is planned for the next release - 0.3
Regards,
Srivats
Original comment by [email protected]
on 24 Oct 2010 at 7:28
from ostinato.
The following protocols should be modified to allow overriding of their
type/length/protocolId fields -
* Ethernet II
* 802.3
* LLC
* SNAP
* IPv4
This change will require a bump in the file format version number.
Original comment by [email protected]
on 24 Oct 2010 at 7:28
from ostinato.
This issue was closed by revision b1402b1a47.
Original comment by [email protected]
on 30 Jan 2011 at 11:13
- Changed state: Fixed
from ostinato.
which release has this fix ?
Original comment by [email protected]
on 29 Mar 2011 at 12:55
from ostinato.
The next release 0.4 due sometime in April will have this fix. Till that time,
you need to build from source to get this fix or use the workaround of using a
hexdump protocol instead of eth2.
Original comment by [email protected]
on 29 Mar 2011 at 5:47
from ostinato.
Related Issues (20)
- ARP enhancements
- Build fails under Windows with msys2 HOT 10
- Rx stream stats does not work on Linux for vlan tagged packets
- Stream stats with IPv6/ICMPv6
- Copy/Paste of stream stats does not include row/column headers HOT 1
- Adding port names as a second line in port stats header columns breaks copy paste HOT 1
- Better UX for (very) slow streams HOT 1
- RX streams stats always 0 with VLAN tag on Linux HOT 1
- Reduce performance impact of stream stats
- Out of sequence packets
- Fixed duration transmit
- Qt Script Deprecated HOT 1
- Remove compiler warnings emitted by a recent gcc/clang version
- Support pattern payload of size 0
- 1.3 Port Statistics no longer works with Show My Reserved Ports Only HOT 2
- IPv6 import from PCAP file leads to diff in ipv6.version
- ostinato build issues with Qt5.15.2 MinGW 32-bit. HOT 6
- Suppress Deprecated Warning with QT 5.15.x and prepare migration to Qt6 HOT 2
- Current build requirements? HOT 1
- Is there any plans to add stateful or connection-oriented features to Ostinato ? HOT 5
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 ostinato.