os-ken/ryu/lib/packet
IWAMOTO Toshihiro 0fc3d72ba2 packet_utils: Remove checksum() side-effect
checksum() was modifying argument when it is bytearray.  Make sure
checksum() doesn't modify its argument.

Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-03 11:38:00 +09:00
..
__init__.py doc: add components page 2014-05-27 20:24:50 +09:00
afi.py packet lib: some AFI/SAFI constants 2013-10-08 16:04:16 +09:00
arp.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
bfd.py python3: Use six.indexbytes for extracting single byte of data 2015-07-03 11:38:00 +09:00
bgp.py python3: Apply "2to3 -f map" 2015-06-26 21:21:49 +09:00
bmp.py python3: Remove use of buffer() 2015-06-25 12:23:31 +09:00
bpdu.py lib/packet: fix pep8 2014-05-14 13:20:57 +09:00
cfm.py python3: Use bytes type for binary data 2015-06-20 21:19:17 +09:00
dhcp.py python3: Use {encode, decode}('ascii') for text packet data 2015-07-03 11:38:00 +09:00
ether_types.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
ethernet.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
icmp.py packet lib: icmp: fix reversibility about json 2013-12-12 18:21:50 +09:00
icmpv6.py python3: Use integer division where appropriate 2015-06-23 05:56:06 +09:00
igmp.py python3: Use integer division where appropriate 2015-06-23 05:56:06 +09:00
in_proto.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
ipv4.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
ipv6.py python3: Use b'str' for binary literals 2015-06-25 12:23:31 +09:00
linux.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
llc.py disable padding check for llc packets 2015-04-22 11:40:17 +09:00
lldp.py packet lib: don't crash with corrupted lldp packet 2014-10-26 16:47:32 +09:00
mpls.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
ospf.py packet.ospf: Avoid parameter 'cls' reassignment 2015-06-30 17:00:24 +09:00
packet_base.py use six.add_metaclass 2014-02-11 13:56:40 +09:00
packet_utils.py packet_utils: Remove checksum() side-effect 2015-07-03 11:38:00 +09:00
packet.py '__div__' is renamed to '__truediv__' in Python 3 2015-04-14 05:31:38 +09:00
pbb.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
safi.py bgp: add support for RFC3107 2014-08-18 14:14:55 +09:00
sctp.py python3: Convert str to six.binary_type where appropriate 2015-06-26 15:58:11 +09:00
slow.py lib/packet: fix pep8 2014-05-14 13:20:57 +09:00
stream_parser.py use six.add_metaclass 2014-02-11 13:56:40 +09:00
tcp.py packet lib: tcp: fix default arguments 2014-07-30 14:52:59 +09:00
udp.py packet lib: udp: fix default arguments 2014-07-30 14:52:59 +09:00
vlan.py Move the definitions of ether types and inet protocols to lib.packet 2015-02-15 09:39:49 +09:00
vrrp.py python3: Apply "2to3 -f map" 2015-06-26 21:21:49 +09:00