1
0
mirror of https://github.com/tonarino/innernet.git synced 2025-01-06 03:54:04 +02:00

netlink-request: print out packet that was oversized for debugging

This commit is contained in:
Jake McGinty 2022-01-11 00:25:19 -06:00
parent a21928c30c
commit 9fbc0c5f1b

View File

@ -87,9 +87,10 @@ mod linux {
return Err(io::Error::new(
io::ErrorKind::InvalidInput,
format!(
"Serialized netlink packet ({} bytes) larger than maximum size {}",
"Serialized netlink packet ({} bytes) larger than maximum size {}: {:?}",
req.buffer_len(),
MAX_NETLINK_BUFFER_LENGTH
MAX_NETLINK_BUFFER_LENGTH,
req
),
));
}