You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Defined in [UEFI Specification, Section 28.3.5](https://uefi.org/specs/UEFI/2.11/28_Network_Protocols_TCP_IP_and_Configuration.html#efi-ip4-protocol-getmodedata)
14
+
#[derive(Debug)]
15
+
#[repr(C)]
16
+
pubstructIp4ModeData{
17
+
// TODO Ipv4Protocol not yet in uefi-raw
18
+
/// Set to [`Boolean::TRUE`] after an associated `Ipv4Protocol` instance
19
+
/// has been successfully configured.
20
+
pubis_started:Boolean,
21
+
/// The maximum packet size, in bytes, of the packet which the
22
+
/// upper layer driver could feed.
23
+
pubmax_packet_size:u32,
24
+
/// Current configuration settings.
25
+
pubconfig_data:Ip4ConfigData,
26
+
// TODO Ipv4Protocol not yet in uefi-raw
27
+
/// Set to [`Boolean::TRUE`] when an associated `Ipv4Protocol` instance
28
+
/// has a station address and subnet mask.
29
+
pubis_configured:Boolean,
30
+
/// Number of joined multicast groups.
31
+
pubgroup_count:u32,
32
+
/// List of joined multicast group addresses.
33
+
pubgroup_table:*constIpv4Address,
34
+
/// Number of entries in the routing table.
35
+
pubroute_count:u32,
36
+
/// Routing table entries.
37
+
pubroute_table:*constIp4RouteTable,
38
+
/// Number of entries in the supported ICMP types list.
39
+
pubicmp_type_count:u32,
40
+
/// Array of ICMP types and codes that are supported.
41
+
pubicmp_type_list:*constIp4IcmpType,
42
+
}
43
+
44
+
/// Defined in [UEFI Specification, Section 28.3.5](https://uefi.org/specs/UEFI/2.11/28_Network_Protocols_TCP_IP_and_Configuration.html#efi-ip4-protocol-getmodedata)
45
+
#[derive(Debug)]
46
+
#[repr(C)]
47
+
pubstructIp4IcmpType{
48
+
/// ICMP message type.
49
+
pubtype_:u8,
50
+
/// ICMP message code.
51
+
pubcode:u8,
52
+
}
53
+
54
+
#[derive(Debug)]
55
+
#[repr(C)]
56
+
pubstructIp4ConfigData{
57
+
/// Default protocol to be used.
58
+
///
59
+
/// See <https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml>.
60
+
pubdefault_protocol:u8,
61
+
/// Set to `TRUE` to receive all IPv4 packets.
62
+
pubaccept_any_protocol:Boolean,
63
+
/// Set to `TRUE` to receive ICMP error packets.
64
+
pubaccept_icmp_errors:Boolean,
65
+
/// Set to `TRUE` to receive broadcast IPv4 packets.
66
+
pubaccept_broadcast:Boolean,
67
+
/// Set to `TRUE` to receive all IPv4 packets in promiscuous mode.
68
+
pubaccept_promiscuous:Boolean,
69
+
/// Set to `TRUE` to use the default IPv4 address and routing
70
+
/// table.
71
+
pubuse_default_address:Boolean,
72
+
/// Station IPv4 address.
73
+
pubstation_address:Ipv4Address,
74
+
/// Subnet mask for the station address.
75
+
pubsubnet_mask:Ipv4Address,
76
+
/// Type of service field in transmitted IPv4 packets.
77
+
pubtype_of_service:u8,
78
+
/// Time to live field in transmitted IPv4 packets.
0 commit comments