[ovs-dev] [PATCH 3/6] datapath: Check packet len does not exceed attribute len.

Ben Pfaff blp at nicira.com
Thu Mar 3 18:14:59 UTC 2011


On Wed, Mar 02, 2011 at 07:20:32PM -0800, Jesse Gross wrote:
> Netlink attributes have a maximum length of 64k.  It's theoretically
> possible that a packet could exceed this length, so check for it before
> we try to send the packet to userspace.
> 
> Signed-off-by: Jesse Gross <jesse at nicira.com>

It's too bad that the kernel doesn't have UINT16_MAX.  I guess
USHRT_MAX will always have the same value.

Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list