1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use MIB_IPNET_ROW2;
/// Sets the `IsRouter` bit of the `MIB_IPNET_ROW2` structure to the given value.
///
/// # Safety
///
/// This function modifies a raw bitfield, which could lead to undefined behavior
/// if used improperly. Ensure that the `mib_row` pointer is valid and not aliased.
///
/// # Arguments
///
/// * `mib_row` - A mutable reference to the `MIB_IPNET_ROW2` structure.
/// * `value` - A boolean value indicating whether the `IsRouter` bit should be set or not.
pub unsafe
/// Sets the `IsUnreachable` bit of the `MIB_IPNET_ROW2` structure to the given value.
///
/// # Safety
///
/// This function modifies a raw bitfield, which could lead to undefined behavior
/// if used improperly. Ensure that the `mib_row` pointer is valid and not aliased.
///
/// # Arguments
///
/// * `mib_row` - A mutable reference to the `MIB_IPNET_ROW2` structure.
/// * `value` - A boolean value indicating whether the `IsUnreachable` bit should be set or not.
pub unsafe