Open GoogleCodeExporter opened 9 years ago
For now, till this feature becomes available, you can use userscript protocol
in place of VLAN/SVLAN.
See http://code.google.com/p/ostinato/wiki/UserScriptHOWTO
Original comment by pstav...@gmail.com
on 16 Nov 2012 at 4:34
Hi,
I worked on a userscript but still not able to increment the vlan id. Is there
any function to do that?
pfv[3] is the variable hold the vlan id.
below is the script.
protocol.protocolFrameSize = function() { return 4; }
protocol.protocolId = function() { return 0x8100; }
protocol.protocolFrameValueVariable=true;
protocol.protocolFrameVariableCount=100;
protocol.protocolId = function(id)
{ return 200;
}
protocol.protocolFrameValue = function(index)
{
var pfv = new Array(4);
pfv.protocolFrameValueVariable=true;
pfv.protocolFrameVariableCount=100;
pfv.protocolFramePayloadVariableCount++;
pfv[0] = 0x81;
pfv[1]=0x00;
pfv[3]=201;
pfv[3].protocolFrameValueVariable=true;
pfv[3].protocolFrameVariableCount=100
pfv[3].protocolFramePayloadVariableCount++;
pfv[3]++;
return pfv;
}
Original comment by kam.t...@gmail.com
on 1 Apr 2015 at 5:24
@kam: Try the following (note: I haven't tested it)
protocol.protocolFrameSize = function() { return 4; }
protocol.protocolId = function(type) { return 0x8100; }
protocol.protocolFrameValueVariable=true;
protocol.protocolFrameVariableCount=100;
protocol.protocolFrameValue = function(index)
{
var pfv = new Array(4);
pfv[0] = 0x81;
pfv[1] = 0x00;
pfv[2] = 0x00;
pfv[3] = 201+index;
return pfv;
}
Original comment by pstav...@gmail.com
on 2 Apr 2015 at 3:54
Thanks a lot
It works great!!!
Original comment by kam.t...@gmail.com
on 3 Apr 2015 at 5:56
Original issue reported on code.google.com by
ftobias...@gmail.com
on 16 Nov 2012 at 1:12Attachments: