[Ryu-devel] [PATCH] lib/packet: teach packet library to truncate padding octet

2013-06-30 Thread Isaku Yamahata
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. If payload_length = 0, do nothing. Cc: YAMAMOTO Takashi Cc: Shaun Crampton

Re: [Ryu-devel] [PATCH] lib/packet: teach packet library to truncate padding octet

2013-06-07 Thread Shaun Crampton
When would payload_length differ from payload_length_? Seems like they should have the same value so why not use payload_length everywhere? -Shaun On 02/06/2013 23:50, "YAMAMOTO Takashi" wrote: >> The patch teaches packet library to truncate padding octets. >> The protocol class that knows its

Re: [Ryu-devel] [PATCH] lib/packet: teach packet library to truncate padding octet

2013-06-02 Thread Isaku Yamahata
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 payl

Re: [Ryu-devel] [PATCH] lib/packet: teach packet library to truncate padding octet

2013-06-02 Thread YAMAMOTO Takashi
> 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_lengt

[Ryu-devel] [PATCH] lib/packet: teach packet library to truncate padding octet

2013-06-02 Thread Isaku Yamahata
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: Sh