On Mon, Jun 03, 2013 at 03:50:41PM +0900, YAMAMOTO Takashi wrote:
> > The patch teaches packet library to truncate padding octets.
> > The protocol class that knows its payload length should set its payload
> > length as payload_length_ > 0 attributes.
> > Then, the packet.parser truncates its payload.
> > payload_length_ is used to avoid name clash with ipv6.payload_length.
> > 
> > Cc: Shaun Crampton <[email protected]>
> > Signed-off-by: Isaku Yamahata <[email protected]>
> > ---
> >  ryu/lib/packet/ipv4.py        |    2 ++
> >  ryu/lib/packet/ipv6.py        |    2 ++
> >  ryu/lib/packet/lldp.py        |    1 +
> >  ryu/lib/packet/packet.py      |    4 ++++
> >  ryu/lib/packet/packet_base.py |    1 +
> >  ryu/lib/packet/udp.py         |    2 ++
> >  6 files changed, 12 insertions(+)
> > 
> > diff --git a/ryu/lib/packet/ipv4.py b/ryu/lib/packet/ipv4.py
> > index 09ed734..f6054f4 100644
> > --- a/ryu/lib/packet/ipv4.py
> > +++ b/ryu/lib/packet/ipv4.py
> > @@ -83,6 +83,8 @@ class ipv4(packet_base.PacketBase):
> >          self.length = header_length * 4
> >          self.option = option
> >  
> > +        self.payoad_length_ = total_length
> 
> typo?

Oops, thanks.

-- 
yamahata

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to