- use netaddr to convert bin <-> text addresses
- use bytes instead of int to represent ipv4 addresses

this is after my of-wire json patches and OXM_OF_ patch.
(logically independent but only tested with them)

YAMAMOTO Takashi (3):
  binary <-> text conversion of mac/ipv4/ipv6 addresses
  replace homegrown bin<->text routines with addrconv for mac and ipv6
  use bytes instead of int to represent ipv4 addresses

 ryu/lib/addrconv.py                  | 69 ++++++++++++++++++++++++++++++++++++
 ryu/lib/ip.py                        | 44 +++--------------------
 ryu/lib/mac.py                       | 21 ++++++-----
 ryu/lib/packet/arp.py                |  2 +-
 ryu/lib/packet/ipv4.py               |  4 +--
 ryu/lib/packet/packet_utils.py       |  2 +-
 ryu/lib/packet/vrrp.py               | 12 +++----
 ryu/tests/unit/lib/test_ip.py        |  4 +--
 ryu/tests/unit/packet/test_arp.py    |  4 +--
 ryu/tests/unit/packet/test_ipv4.py   |  4 +--
 ryu/tests/unit/packet/test_packet.py | 10 +++---
 ryu/tests/unit/packet/test_tcp.py    | 10 +++---
 ryu/tests/unit/packet/test_udp.py    |  6 ++--
 ryu/tests/unit/packet/test_vlan.py   |  4 +--
 ryu/tests/unit/packet/test_vrrp.py   | 31 ++++++++--------
 15 files changed, 130 insertions(+), 97 deletions(-)
 create mode 100644 ryu/lib/addrconv.py

-- 
1.8.1.5


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to