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

Pad

0 Padding

SubnetMask(Ipv4Addr)

1 Subnet Mask

Tuple Fields of SubnetMask

0: Ipv4Addr
TimeOffset(i32)

2 Time Offset

Tuple Fields of TimeOffset

0: i32
Router(Vec<Ipv4Addr>)

3 Router

Tuple Fields of Router

0: Vec<Ipv4Addr>
TimeServer(Vec<Ipv4Addr>)

4 Router

Tuple Fields of TimeServer

0: Vec<Ipv4Addr>
NameServer(Vec<Ipv4Addr>)

5 Name Server

Tuple Fields of NameServer

0: Vec<Ipv4Addr>
DomainNameServer(Vec<Ipv4Addr>)

6 Name Server

Tuple Fields of DomainNameServer

0: Vec<Ipv4Addr>
LogServer(Vec<Ipv4Addr>)

7 Log Server

Tuple Fields of LogServer

0: Vec<Ipv4Addr>
QuoteServer(Vec<Ipv4Addr>)

8 Quote Server

Tuple Fields of QuoteServer

0: Vec<Ipv4Addr>
LprServer(Vec<Ipv4Addr>)

9 LPR Server

Tuple Fields of LprServer

0: Vec<Ipv4Addr>
ImpressServer(Vec<Ipv4Addr>)

10 Impress server

Tuple Fields of ImpressServer

0: Vec<Ipv4Addr>
ResourceLocationServer(Vec<Ipv4Addr>)

11 Resource Location Server

Tuple Fields of ResourceLocationServer

0: Vec<Ipv4Addr>
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
StaticRoutingTable(Vec<(Ipv4Addr, Ipv4Addr)>)

33 Static routing table

Tuple Fields of StaticRoutingTable

0: Vec<(Ipv4Addr, Ipv4Addr)>
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

Tuple Fields of NIS

0: Vec<Ipv4Addr>
NTPServers(Vec<Ipv4Addr>)

42 NTP servers

Tuple Fields of NTPServers

0: Vec<Ipv4Addr>
VendorExtensions(Vec<u8>)

43 Vendor Extensions

Tuple Fields of VendorExtensions

0: Vec<u8>
NetBiosNameServers(Vec<Ipv4Addr>)

44 NetBIOS over TCP/IP name server

Tuple Fields of NetBiosNameServers

0: Vec<Ipv4Addr>
NetBiosDatagramDistributionServer(Vec<Ipv4Addr>)

45 NetBIOS over TCP/IP Datagram Distribution Server

Tuple Fields of NetBiosDatagramDistributionServer

0: Vec<Ipv4Addr>
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
XFontServer(Vec<Ipv4Addr>)

48 X Window System Font Server

Tuple Fields of XFontServer

0: Vec<Ipv4Addr>
XDisplayManager(Vec<Ipv4Addr>)

48X Window System Display Manager

Tuple Fields of XDisplayManager

0: Vec<Ipv4Addr>
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
ClassIdentifier(Vec<u8>)

60 Class-identifier

Tuple Fields of ClassIdentifier

0: Vec<u8>
ClientIdentifier(Vec<u8>)

61 Client Identifier

Tuple Fields of ClientIdentifier

0: Vec<u8>
RelayAgentInformation(RelayAgentInformation)

82 Relay Agent Information - https://datatracker.ietf.org/doc/html/rfc3046

Tuple Fields of RelayAgentInformation

0: RelayAgentInformation
Unknown(UnknownOption)

Unknown option

Tuple Fields of Unknown

0: UnknownOption
End

255 End

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.