os-ken/ryu/lib
IWASE Yusuke 1af384fa17 RPC: Specify encoding to msgpack.Packer/Unpacker
Currently, RPC requests using rpc_cli.py will crash on Python 3,
because the decoded string through msgpack-rpc is not str type
when the default encoding is not specified into msgpack.Unpacker.
On Python 2, bytes type is the same as str type, and this problem
does not occur.

The old spec of msgpack had no notation of the encoding, but now,
msgpack defines "UTF-8" as the default encoding and has the explicit
type definitions for String and Binary.
  https://github.com/msgpack/msgpack/blob/master/spec.md

This patch fixes to specify the encoding to msgpack.Packer/Unpacker
and enable to use Binary type when packing for the Python 3
compatibility.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14 18:14:45 +09:00
..
netconf Remove duplicated definitions 2015-06-30 17:00:24 +09:00
of_config contrib: Revert module path to ryu.contrib 2016-11-14 18:14:20 +09:00
ovs ovs/vsctl: Fix API for parsing column/key/value set 2016-10-25 16:22:53 +09:00
packet packet/bgp: Support for IP Prefix Route encoding 2016-11-14 13:21:04 +09:00
xflow Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
__init__.py initial commit 2011-12-09 15:56:05 +09:00
addrconv.py addrconv: remove embedded test code 2013-07-25 05:16:36 +09:00
alert.py Snort integrate: Add the snort lib supporting snort integration. Add an sample application simple_switch_snort.py which can dump alert message. 2014-09-01 15:16:05 +09:00
bfdlib.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
dpid.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
hub.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
igmplib.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
ip.py lib/ip: Add method to convert IPv4/IPv6 to int 2016-11-14 12:14:27 +09:00
lacplib.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
mac.py stplib: Fix to compare MAC address and Bridge ID 2016-10-01 20:46:28 +09:00
ofctl_nicira_ext.py ofctl_nicira_ext: Fix not enough arguments for format string 2016-08-19 17:48:53 +09:00
ofctl_utils.py add modify role API in ofctl_rest 2016-09-07 09:37:46 +09:00
ofctl_v1_0.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
ofctl_v1_2.py add modify role API in ofctl_rest 2016-09-07 09:37:46 +09:00
ofctl_v1_3.py ryu/lib/ofctl_v1_3: port name decoding fix 2016-10-08 22:52:36 +09:00
ofctl_v1_4.py add modify role API in ofctl_rest 2016-09-07 09:37:46 +09:00
ofctl_v1_5.py add modify role API in ofctl_rest 2016-09-07 09:37:46 +09:00
ofp_pktinfilter.py Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
pack_utils.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
pcaplib.py doc: Add PCAP file library reference 2016-06-01 20:40:04 +09:00
port_no.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
rpc.py RPC: Specify encoding to msgpack.Packer/Unpacker 2016-11-14 18:14:45 +09:00
snortlib.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
sockaddr.py Add a small library to deal with TCP-MD5 socket option 2014-06-29 08:19:49 +09:00
sockopt.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
stplib.py stplib: Fix to store current OFPPort status 2016-10-01 20:46:29 +09:00
stringify.py lib: Reduce Pylint warnings 2016-08-19 17:49:01 +09:00
type_desc.py BGPSpeaker: Support Ethernet VPN update messages 2016-08-25 13:33:10 +09:00