diff options
author | Ben Pfaff <blp@nicira.com> | 2011-12-02 15:22:20 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-12-19 14:53:28 -0800 |
commit | 02e83e83b4c8d88f50317ba56fec53cd6d3fb909 (patch) | |
tree | 3add70419a691c6243a6b5cdb81caada3899456d /lib/netdev-provider.h | |
parent | a57a8488da2e6e02f515230d42a958126971ba8e (diff) |
netdev-linux: Report error for truncated packets on receive.
Found by inspection.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r-- | lib/netdev-provider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 81e6c391..d5a30c80 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -172,6 +172,9 @@ struct netdev_class { * packet, otherwise a negative errno value. Returns -EAGAIN immediately * if no packet is ready to be received. * + * Returns -EMSGSIZE, and discards the packet, if the received packet is + * longer than 'size' bytes. + * * This function can only be expected to return a packet if ->listen() has * been called successfully. * |