datapath: Check packet len does not exceed attribute len.
authorJesse Gross <jesse@nicira.com>
Mon, 28 Feb 2011 22:32:33 +0000 (14:32 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 3 Mar 2011 20:13:01 +0000 (12:13 -0800)
commit513130154d7af9f5b58602aeb00765629479d02e
tree443168a882961bbd96bc53cd9630fecc79ed3a8b
parentd76195db5a0780626e2742b184b86aeae60972bc
datapath: Check packet len does not exceed attribute len.

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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c