Enum dhcproto::v4::DhcpOption [−][src]
pub enum DhcpOption {
Show 61 variants
Pad,
SubnetMask(Ipv4Addr),
TimeOffset(i32),
Router(Vec<Ipv4Addr>),
TimeServer(Vec<Ipv4Addr>),
NameServer(Vec<Ipv4Addr>),
DomainNameServer(Vec<Ipv4Addr>),
LogServer(Vec<Ipv4Addr>),
QuoteServer(Vec<Ipv4Addr>),
LprServer(Vec<Ipv4Addr>),
ImpressServer(Vec<Ipv4Addr>),
ResourceLocationServer(Vec<Ipv4Addr>),
Hostname(String),
BootFileSize(u16),
MeritDumpFile(String),
DomainName(String),
SwapServer(Ipv4Addr),
RootPath(String),
ExtensionsPath(String),
IpForwarding(bool),
NonLocalSrcRouting(bool),
MaxDatagramSize(u16),
DefaultIpTtl(u8),
InterfaceMtu(u16),
AllSubnetsLocal(bool),
BroadcastAddr(Ipv4Addr),
PerformMaskDiscovery(bool),
MaskSupplier(bool),
PerformRouterDiscovery(bool),
RouterSolicitationAddr(Ipv4Addr),
StaticRoutingTable(Vec<(Ipv4Addr, Ipv4Addr)>),
ArpCacheTimeout(u32),
EthernetEncapsulation(bool),
DefaultTcpTtl(u8),
TcpKeepaliveInterval(u32),
TcpKeepaliveGarbage(bool),
NISDomain(String),
NIS(Vec<Ipv4Addr>),
NTPServers(Vec<Ipv4Addr>),
VendorExtensions(Vec<u8>),
NetBiosNameServers(Vec<Ipv4Addr>),
NetBiosDatagramDistributionServer(Vec<Ipv4Addr>),
NetBiosNodeType(NodeType),
NetBiosScope(String),
XFontServer(Vec<Ipv4Addr>),
XDisplayManager(Vec<Ipv4Addr>),
RequestedIpAddress(Ipv4Addr),
AddressLeaseTime(u32),
OptionOverload(u8),
MessageType(MessageType),
ServerIdentifier(Ipv4Addr),
ParameterRequestList(Vec<OptionCode>),
Message(String),
MaxMessageSize(u16),
Renewal(u32),
Rebinding(u32),
ClassIdentifier(Vec<u8>),
ClientIdentifier(Vec<u8>),
RelayAgentInformation(RelayAgentInformation),
Unknown(UnknownOption),
End,
}
Expand description
DHCP Options
Variants
0 Padding
SubnetMask(Ipv4Addr)
1 Subnet Mask
Tuple Fields of SubnetMask
0: Ipv4Addr
TimeOffset(i32)
2 Time Offset
Tuple Fields of TimeOffset
0: i32
3 Router
4 Router
5 Name Server
6 Name Server
7 Log Server
8 Quote Server
9 LPR Server
10 Impress server
11 Resource Location Server
Hostname(String)
12 Host name
Tuple Fields of Hostname
0: String
BootFileSize(u16)
13 Boot file size
Tuple Fields of BootFileSize
0: u16
MeritDumpFile(String)
14 Merit Dump File
Tuple Fields of MeritDumpFile
0: String
DomainName(String)
15 Domain Name
Tuple Fields of DomainName
0: String
SwapServer(Ipv4Addr)
16 Swap server
Tuple Fields of SwapServer
0: Ipv4Addr
RootPath(String)
17 Root Path
Tuple Fields of RootPath
0: String
ExtensionsPath(String)
18 Extensions path
Tuple Fields of ExtensionsPath
0: String
IpForwarding(bool)
19 IP forwarding
Tuple Fields of IpForwarding
0: bool
NonLocalSrcRouting(bool)
20 Non-local source routing
Tuple Fields of NonLocalSrcRouting
0: bool
MaxDatagramSize(u16)
22 Max Datagram reassembly size
Tuple Fields of MaxDatagramSize
0: u16
DefaultIpTtl(u8)
23 Ip TTL
Tuple Fields of DefaultIpTtl
0: u8
InterfaceMtu(u16)
26 Interface MTU
Tuple Fields of InterfaceMtu
0: u16
AllSubnetsLocal(bool)
27 All Subnets Local
Tuple Fields of AllSubnetsLocal
0: bool
BroadcastAddr(Ipv4Addr)
28 Broadcast address
Tuple Fields of BroadcastAddr
0: Ipv4Addr
PerformMaskDiscovery(bool)
29 Perform mask discovery
Tuple Fields of PerformMaskDiscovery
0: bool
MaskSupplier(bool)
30 Mask supplier
Tuple Fields of MaskSupplier
0: bool
PerformRouterDiscovery(bool)
31 Perform router discovery
Tuple Fields of PerformRouterDiscovery
0: bool
RouterSolicitationAddr(Ipv4Addr)
32 Router solicitation address
Tuple Fields of RouterSolicitationAddr
0: Ipv4Addr
33 Static routing table
ArpCacheTimeout(u32)
35 ARP timeout
Tuple Fields of ArpCacheTimeout
0: u32
EthernetEncapsulation(bool)
36 Ethernet encapsulation
Tuple Fields of EthernetEncapsulation
0: bool
DefaultTcpTtl(u8)
37 Default TCP TTL
Tuple Fields of DefaultTcpTtl
0: u8
TcpKeepaliveInterval(u32)
38 TCP keepalive interval
Tuple Fields of TcpKeepaliveInterval
0: u32
TcpKeepaliveGarbage(bool)
39 TCP keealive garbage
Tuple Fields of TcpKeepaliveGarbage
0: bool
NISDomain(String)
40 Network information service domain
Tuple Fields of NISDomain
0: String
41 Network infomration servers
42 NTP servers
43 Vendor Extensions
44 NetBIOS over TCP/IP name server
45 NetBIOS over TCP/IP Datagram Distribution Server
NetBiosNodeType(NodeType)
46 NetBIOS over TCP/IP Node Type
Tuple Fields of NetBiosNodeType
0: NodeType
NetBiosScope(String)
47 NetBIOS over TCP/IP Scope
Tuple Fields of NetBiosScope
0: String
48 X Window System Font Server
48X Window System Display Manager
RequestedIpAddress(Ipv4Addr)
50 Requested IP Address
Tuple Fields of RequestedIpAddress
0: Ipv4Addr
AddressLeaseTime(u32)
51 IP Address Lease Time
Tuple Fields of AddressLeaseTime
0: u32
OptionOverload(u8)
52 Option Overload
Tuple Fields of OptionOverload
0: u8
MessageType(MessageType)
53 Message Type
Tuple Fields of MessageType
0: MessageType
ServerIdentifier(Ipv4Addr)
54 Server Identifier
Tuple Fields of ServerIdentifier
0: Ipv4Addr
ParameterRequestList(Vec<OptionCode>)
55 Parameter Request List
Tuple Fields of ParameterRequestList
0: Vec<OptionCode>
Message(String)
56 Message
Tuple Fields of Message
0: String
MaxMessageSize(u16)
57 Maximum DHCP Message Size
Tuple Fields of MaxMessageSize
0: u16
Renewal(u32)
58 Renewal (T1) Time Value
Tuple Fields of Renewal
0: u32
Rebinding(u32)
59 Rebinding (T2) Time Value
Tuple Fields of Rebinding
0: u32
60 Class-identifier
61 Client Identifier
RelayAgentInformation(RelayAgentInformation)
82 Relay Agent Information - https://datatracker.ietf.org/doc/html/rfc3046
Tuple Fields of RelayAgentInformation
Unknown(UnknownOption)
Unknown option
Tuple Fields of Unknown
255 End
Trait Implementations
Read the type from the stream
Returns the object in binary form
Read the type from the stream
encode this type into a new Vec
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DhcpOption
impl Send for DhcpOption
impl Sync for DhcpOption
impl Unpin for DhcpOption
impl UnwindSafe for DhcpOption
Blanket Implementations
Mutably borrows from an owned value. Read more