pub const MAX_BATCH_SIZE: u32 = 92;
Expand description
The largest number of results that can be returned in one call to
IpIterator.Next
.
This limit is calculated to fit the maximum number of items into a single
64 KiB Zircon channel message. In the current FIDL wire format, the fixed
overhead of the IpIterator.Next()
response is 40 bytes, and the worst-case
size of a single IpSocketState
is 706 bytes, so we selected the maximum N
where 40 + N * 706 <= 65535.