deb-ryu/ryu/lib
Victor Orlikowski 8f7d302fd5 packet: Better validate parameters to constructors better icmp
According to RFC 4884 (which supersedes RFC 792), the Destination
Unreachable and Time Exceeded ICMP message get a new “length” field.
This length field, for ICMPv4, is interpreted in 32 bit units.

In the constructor, we cannot validate that the length specified
matches the length of the data passed; the length may need to be
larger (in 32 bit units) in order to accommodate the data that is
actually being sent.  We *should*, however, ensure that the data_len
parameter passed fits into a single byte.

It may make sense to document the fact that the length is specified 32
bit units, for when users of the icmp class get a ValueError back
from these constructors.

Signed-off-by: Victor J. Orlikowski <vjo@duke.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-01-31 14:54:06 +09:00
..
netconf Remove duplicated definitions 2015-06-30 17:00:24 +09:00
of_config python3: Apply "2to3 -f map" 2015-06-26 21:21:49 +09:00
ovs fixes for mutable default arguments 2016-01-19 10:03:57 +09:00
packet packet: Better validate parameters to constructors better icmp 2016-01-31 14:54:06 +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 fixes for mutable default arguments 2016-01-19 10:03:57 +09:00
dpid.py wsgi/routes: add regex pattern for each REST component 2012-11-03 15:57:05 +09:00
hub.py eventlet has already supported WebSocket(RFC6455) in stable releases (>= 0.15) 2015-06-23 14:55:51 +09:00
igmplib.py lib: fix pep8 2014-05-14 13:19:16 +09:00
ip.py of10: Support human readable MAC/IPv4 address in OFPMatch 2015-10-11 21:51:37 +09:00
lacplib.py lib: fix pep8 2014-05-14 13:19:16 +09:00
mac.py python3: Avoid applying ord() to integers 2015-06-25 12:23:31 +09:00
ofctl_utils.py lib/ofctl: Add utility library for ofctl_v1_*.py 2016-01-19 13:38:12 +09:00
ofctl_v1_0.py lib/ofctl: Add utility library for ofctl_v1_*.py 2016-01-19 13:38:12 +09:00
ofctl_v1_2.py lib/ofctl: Add utility library for ofctl_v1_*.py 2016-01-19 13:38:12 +09:00
ofctl_v1_3.py lib/ofctl: Add utility library for ofctl_v1_*.py 2016-01-19 13:38:12 +09:00
ofp_pktinfilter.py Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
pack_utils.py Move msg_pack_into from ofproto to lib 2015-02-16 13:05:32 +09:00
pcaplib.py python3: Continuous patch to replace str to six.binary_type 2015-06-27 21:08:46 +09:00
port_no.py lib/port_no: handling port_no as string 2013-03-31 18:11:00 +09:00
rpc.py python3: Use six.binary_type for I/O of ryu.lib.rpc 2015-07-01 10:13:22 +09:00
snortlib.py python3: Continuous patch to replace str to six.binary_type 2015-06-27 21:08:46 +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 Add a small library to deal with TCP-MD5 socket option 2014-06-29 08:19:49 +09:00
stplib.py python3: Adapt to new iterator names 2015-06-20 21:19:12 +09:00
stringify.py python3: import __future__ for just in case 2015-11-13 15:36:51 +09:00
type_desc.py Implement NXActionCT and related ct_* matches 2015-11-13 16:13:58 +09:00