On Mon, 23 Jun 2014 12:27:02 +0800
Pyxis LX <[email protected]> wrote:
> Hello,
>
> I'm testing switches with the switch test tool.
>
> I've found that the values of VLAN_VID look quite strange in this file:
>
> ryu/tests/switch/of13/action/25_SET_FIELD/06_VLAN_VID.json
>
> In line 15, 30, 79, 94, 143, 158 we have VLAN_VID 4196 and 4299 respectively.
>
> Should they be 100 and 203 or I missed something?
I think OFPVID_PRESENT is bitwise-OR'ed with VID.
enum ofp_vlan_id {
OFPVID_PRESENT = 0x1000, /* Bit that indicate that a VLAN id is set */
OFPVID_NONE = 0x0000, /* No VLAN id was set. */
};
OF 1.3.4 spec (Table 13: Match combinations for VLAN tags.) says:
"value | OFPVID_PRESENT" matches packets with VLAN tag and VID equal value.
i.e.
100 | 0x1000 = 4196
And OF 1.3.4 spec (7.2.5 Action Structures) says:
The value in the payload of the OXM TLV must be valid, in particular the
OFPVID_PRESENT
bit must be set in OXM_OF_VLAN_VID set-field actions.
i.e.
203 | 0x1000 = 4299
>
> Thanks!
>
> -PLX
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel