Re: [ovs-dev] [PATCH] flow: Verify that tot_len >= ip_len in miniflow_extract().

2016-07-26 Thread Ben Pfaff
On Sat, Jul 23, 2016 at 02:29:35AM -0300, Flavio Leitner wrote: > On Fri, Jul 22, 2016 at 04:43:50PM -0700, Ben Pfaff wrote: > > miniflow_extract() uses the following quantities when it examines an IPv4 > > header: > > > > size, the number of bytes from the start of the IPv4 header onward > >

Re: [ovs-dev] [PATCH] flow: Verify that tot_len >= ip_len in miniflow_extract().

2016-07-22 Thread Ben Pfaff
On Sat, Jul 23, 2016 at 02:29:35AM -0300, Flavio Leitner wrote: > On Fri, Jul 22, 2016 at 04:43:50PM -0700, Ben Pfaff wrote: > > miniflow_extract() uses the following quantities when it examines an IPv4 > > header: > > > > size, the number of bytes from the start of the IPv4 header onward > >

Re: [ovs-dev] [PATCH] flow: Verify that tot_len >= ip_len in miniflow_extract().

2016-07-22 Thread Flavio Leitner
On Fri, Jul 22, 2016 at 04:43:50PM -0700, Ben Pfaff wrote: > miniflow_extract() uses the following quantities when it examines an IPv4 > header: > > size, the number of bytes from the start of the IPv4 header onward > ip_len, the number of bytes in the IPv4 header (from the IHL field) >

[ovs-dev] [PATCH] flow: Verify that tot_len >= ip_len in miniflow_extract().

2016-07-22 Thread Ben Pfaff
miniflow_extract() uses the following quantities when it examines an IPv4 header: size, the number of bytes from the start of the IPv4 header onward ip_len, the number of bytes in the IPv4 header (from the IHL field) tot_len, same as size but taken from IPv4 header Total Length field