pub fn sanitize_route_link_stats(buf: &mut [u8]) -> boolExpand description
Zero the live counters in a NETLINK_ROUTE reply, in place.
Returns whether anything was modified, so the caller can skip writing the buffer back to guest memory when there was nothing to change. A malformed or truncated buffer is left ALONE rather than partially rewritten: this is a determinism sanitizer, and a half-rewritten reply would be a worse guest observation than an undeterminized one.