Giter Club home page Giter Club logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024

Original comment by [email protected] on 23 Oct 2010 at 8:36

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from ostinato.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
This issue was closed by revision b1402b1a47.

Original comment by [email protected] on 30 Jan 2011 at 11:13

  • Changed state: Fixed

from ostinato.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
which release has this fix ?

Original comment by [email protected] on 29 Mar 2011 at 12:55

from ostinato.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.