of1.2: fix typo

Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of1.2: Add OXM_OF_ constants

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
Update REAME.rst

- simplify a bit since we have the web site now. We don't use
  README.rst for index.html anymore.
- rewrite 'What's Ryu' section so that it can be used for RPM package
  description.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Update setup.py

Use 'What's Ryu' section for RPM package description. Otherwise, we
use README.rst for long_description so that we have a nice PyPI
website.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Move version string to ryu/__init__.py

Export version string to other components in the sane way.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fix README.rst format

One place in README.rst isn't formatted as I expected. Try to fix.

-
>From 460a3b5965056bcf4d7762e01f0083f328db45e6 Mon Sep 17 00:00:00 2001
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Date: Tue, 19 Jun 2012 11:31:56 +0900
Subject: [PATCH] Fix README.rst format

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: fix nxm_put()

Fix the regression of commit 3b3bcaa7591e3f11f328d82bee3800f407f14e3d.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: fix NXM_OF_ICMP_TYPE and NXM_OF_ICMP_CODE

- Set the proper values for both
- NXM_OF_ICMP_TYPE and NXM_OF_ICMP_CODE should be set at the same time.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
add IPPROTO_ constants

NXM and OXM code need IPPROTO_ constants. They can be shared safely
(will not be changed). So better to share them in a common file.

This adds only IPPROTO_ constants that OVS uses now, which we are
likely to use.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_NX_ICMPV6_TYPE and NXM_NX_ICMPV6_CODE support

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of1.2: reorder the arguments of OFPPacketOut

- reorder the arguments of OFPPacketOut (the same order in the
  spec). in_port can't be None in the spec. We can't remove None for
  in_port argument so put assert.

- fix some typos (again)

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of1.2: initial ofp_match support

Add ofp_match support except for L3 stuff. The following match types
are supported:

IN_PORT
IN_PHY_PORT
ETH_DST
DST_SRC
ETH_TYPE
VLAN_VID
VLAN_PCP
ARP_OP
ARP_SPA
ARP_TPA
ARP_SHA
ARP_THA
MPLS_LABLE
MPLS_TC

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: fix MFField putw

Fix another regression of commit 3b3bcaa7591e3f11f328d82bee3800f407f14e3d.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_OF_ARP_SPA and NXM_OF_ARP_TPA

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_NX_IPV6_LABEL

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_NX_IPV6_SRC and NXM_NX_IPV6_DST

v6 address and mask are represented in a list including four int
values like the following:

set_ipv6_src_masked([0xf1234567, 3, 4, 7], [0xffff0000, 0, 0, 0])

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_NX_ND_TARGET

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
nxm: add NXM_NX_IP_FRAG

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
fix test_lib.py for SkipTest

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
add of-1.3 support

Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp>