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
+
/// Set to `TRUE` after this [`Tcp4Protocol`] instance has been
18
+
/// successfully configured.
19
+
pubis_started:Boolean,
20
+
/// The maximum packet size, in bytes, of the packet which the
21
+
/// upper layer driver could feed.
22
+
pubmax_packet_size:u32,
23
+
/// Current configuration settings.
24
+
pubconfig_data:Ip4ConfigData,
25
+
/// Set to `TRUE` when the [`Tcp4Protocol`] instance has a
26
+
/// station address and subnet mask.
27
+
pubis_configured:Boolean,
28
+
/// Number of joined multicast groups.
29
+
pubgroup_count:u32,
30
+
/// List of joined multicast group addresses.
31
+
pubgroup_table:*constIpv4Address,
32
+
/// Number of entries in the routing table.
33
+
pubroute_count:u32,
34
+
/// Routing table entries.
35
+
pubroute_table:*constIp4RouteTable,
36
+
/// Number of entries in the supported ICMP types list.
37
+
pubicmp_type_count:u32,
38
+
/// Array of ICMP types and codes that are supported.
39
+
pubicmp_type_list:*constIp4IcmpType,
40
+
}
41
+
42
+
/// 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)
43
+
#[derive(Debug)]
44
+
#[repr(C)]
45
+
pubstructIp4IcmpType{
46
+
/// ICMP message type.
47
+
pubtype_:u8,
48
+
/// ICMP message code.
49
+
pubcode:u8,
50
+
}
51
+
52
+
#[derive(Debug)]
53
+
#[repr(C)]
54
+
pubstructIp4ConfigData{
55
+
/// Default protocol to be used.
56
+
///
57
+
/// See <https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml>.
58
+
pubdefault_protocol:u8,
59
+
/// Set to `TRUE` to receive all IPv4 packets.
60
+
pubaccept_any_protocol:Boolean,
61
+
/// Set to `TRUE` to receive ICMP error packets.
62
+
pubaccept_icmp_errors:Boolean,
63
+
/// Set to `TRUE` to receive broadcast IPv4 packets.
64
+
pubaccept_broadcast:Boolean,
65
+
/// Set to `TRUE` to receive all IPv4 packets in promiscuous mode.
66
+
pubaccept_promiscuous:Boolean,
67
+
/// Set to `TRUE` to use the default IPv4 address and routing
68
+
/// table.
69
+
pubuse_default_address:Boolean,
70
+
/// Station IPv4 address.
71
+
pubstation_address:Ipv4Address,
72
+
/// Subnet mask for the station address.
73
+
pubsubnet_mask:Ipv4Address,
74
+
/// Type of service field in transmitted IPv4 packets.
75
+
pubtype_of_service:u8,
76
+
/// Time to live field in transmitted IPv4 packets.
0 commit comments