dpif-netlink: Drop oversized packets instead of assert-failing.
authorBen Pfaff <blp@nicira.com>
Sun, 11 Jan 2015 21:45:36 +0000 (13:45 -0800)
committerBen Pfaff <blp@nicira.com>
Sun, 11 Jan 2015 21:45:36 +0000 (13:45 -0800)
commit0f3358ea4227bce79580870f139c82c9a5cfe75d
treeed439817a6aff037e0dc3cd85caa2dab7c7d023d
parent91496302bd818aa2b69598cc338a76c4d4c9e2ad
dpif-netlink: Drop oversized packets instead of assert-failing.

A packet sent to a Netlink datapath has to fit within a Netlink attribute.
Until now, this was only checked in an assertion inside the Netlink code,
which meant that trying to send a too-large packet (approximate 64 kB or
larger) would assert-fail.  It's better to just drop those packets, which
this commit does.

Reported-by: Shuping Cui <scui@redhat.com>
Reported-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
lib/dpif-netlink.c