Philippe Mathieu-Daudé ef763586c9 net/eth: Check iovec has enough data earlier
We want to check fields from ip6_ext_hdr_routing structure
and if correct read the full in6_address. Let's directly check
if our iovec contains enough data for everything, else return
early.

Suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2021-03-22 17:34:31 +08:00
..
2020-12-15 10:02:07 -05:00
2020-12-15 10:02:07 -05:00
2020-12-15 10:02:07 -05:00
2021-03-15 16:41:22 +08:00
2021-03-15 16:41:22 +08:00