Enum dhcproto::v4::DhcpOption[][src]

pub enum DhcpOption {
Show 62 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), SubnetSelection(Ipv4Addr), Unknown(UnknownOption), End,
}
Expand description

DHCP Options

Variants

Pad

0 Padding

SubnetMask(Ipv4Addr)

Tuple Fields

1 Subnet Mask

TimeOffset(i32)

Tuple Fields

0: i32

2 Time Offset

Router(Vec<Ipv4Addr>)

Tuple Fields

3 Router

TimeServer(Vec<Ipv4Addr>)

Tuple Fields

4 Router

NameServer(Vec<Ipv4Addr>)

Tuple Fields

5 Name Server

DomainNameServer(Vec<Ipv4Addr>)

Tuple Fields

6 Name Server

LogServer(Vec<Ipv4Addr>)

Tuple Fields

7 Log Server

QuoteServer(Vec<Ipv4Addr>)

Tuple Fields

8 Quote Server

LprServer(Vec<Ipv4Addr>)

Tuple Fields

9 LPR Server

ImpressServer(Vec<Ipv4Addr>)

Tuple Fields

10 Impress server

ResourceLocationServer(Vec<Ipv4Addr>)

Tuple Fields

11 Resource Location Server

Hostname(String)

Tuple Fields

0: String

12 Host name

BootFileSize(u16)

Tuple Fields

0: u16

13 Boot file size

MeritDumpFile(String)

Tuple Fields

0: String

14 Merit Dump File

DomainName(String)

Tuple Fields

0: String

15 Domain Name

SwapServer(Ipv4Addr)

Tuple Fields

16 Swap server

RootPath(String)

Tuple Fields

0: String

17 Root Path

ExtensionsPath(String)

Tuple Fields

0: String

18 Extensions path

IpForwarding(bool)

Tuple Fields

0: bool

19 IP forwarding

NonLocalSrcRouting(bool)

Tuple Fields

0: bool

20 Non-local source routing

MaxDatagramSize(u16)

Tuple Fields

0: u16

22 Max Datagram reassembly size

DefaultIpTtl(u8)

Tuple Fields

0: u8

23 Ip TTL

InterfaceMtu(u16)

Tuple Fields

0: u16

26 Interface MTU

AllSubnetsLocal(bool)

Tuple Fields

0: bool

27 All Subnets Local

BroadcastAddr(Ipv4Addr)

Tuple Fields

28 Broadcast address

PerformMaskDiscovery(bool)

Tuple Fields

0: bool

29 Perform mask discovery

MaskSupplier(bool)

Tuple Fields

0: bool

30 Mask supplier

PerformRouterDiscovery(bool)

Tuple Fields

0: bool

31 Perform router discovery

RouterSolicitationAddr(Ipv4Addr)

Tuple Fields

32 Router solicitation address

StaticRoutingTable(Vec<(Ipv4Addr, Ipv4Addr)>)

Tuple Fields

33 Static routing table

ArpCacheTimeout(u32)

Tuple Fields

0: u32

35 ARP timeout

EthernetEncapsulation(bool)

Tuple Fields

0: bool

36 Ethernet encapsulation

DefaultTcpTtl(u8)

Tuple Fields

0: u8

37 Default TCP TTL

TcpKeepaliveInterval(u32)

Tuple Fields

0: u32

38 TCP keepalive interval

TcpKeepaliveGarbage(bool)

Tuple Fields

0: bool

39 TCP keealive garbage

NISDomain(String)

Tuple Fields

0: String

40 Network information service domain

NIS(Vec<Ipv4Addr>)

Tuple Fields

41 Network infomration servers

NTPServers(Vec<Ipv4Addr>)

Tuple Fields

42 NTP servers

VendorExtensions(Vec<u8>)

Tuple Fields

0: Vec<u8>

43 Vendor Extensions

NetBiosNameServers(Vec<Ipv4Addr>)

Tuple Fields

44 NetBIOS over TCP/IP name server

NetBiosDatagramDistributionServer(Vec<Ipv4Addr>)

Tuple Fields

45 NetBIOS over TCP/IP Datagram Distribution Server

NetBiosNodeType(NodeType)

Tuple Fields

46 NetBIOS over TCP/IP Node Type

NetBiosScope(String)

Tuple Fields

0: String

47 NetBIOS over TCP/IP Scope

XFontServer(Vec<Ipv4Addr>)

Tuple Fields

48 X Window System Font Server

XDisplayManager(Vec<Ipv4Addr>)

Tuple Fields

48X Window System Display Manager

RequestedIpAddress(Ipv4Addr)

Tuple Fields

50 Requested IP Address

AddressLeaseTime(u32)

Tuple Fields

0: u32

51 IP Address Lease Time

OptionOverload(u8)

Tuple Fields

0: u8

52 Option Overload

MessageType(MessageType)

Tuple Fields

53 Message Type

ServerIdentifier(Ipv4Addr)

Tuple Fields

54 Server Identifier

ParameterRequestList(Vec<OptionCode>)

Tuple Fields

55 Parameter Request List

Message(String)

Tuple Fields

0: String

56 Message

MaxMessageSize(u16)

Tuple Fields

0: u16

57 Maximum DHCP Message Size

Renewal(u32)

Tuple Fields

0: u32

58 Renewal (T1) Time Value

Rebinding(u32)

Tuple Fields

0: u32

59 Rebinding (T2) Time Value

ClassIdentifier(Vec<u8>)

Tuple Fields

0: Vec<u8>

60 Class-identifier

ClientIdentifier(Vec<u8>)

Tuple Fields

0: Vec<u8>

61 Client Identifier

RelayAgentInformation(RelayAgentInformation)

Tuple Fields

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

SubnetSelection(Ipv4Addr)

Tuple Fields

Unknown(UnknownOption)

Tuple Fields

Unknown option

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)

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.