Browse Source

Merge pull request #901 from Databean/expose_dhcp_opcode

Re-export `dhcpv4::Flags` and `dhcpv4::OpCode`
Thibaut Vandervelden 1 năm trước cách đây
mục cha
commit
5eced2a5c0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/wire/mod.rs

+ 2 - 2
src/wire/mod.rs

@@ -267,8 +267,8 @@ pub use self::tcp::{
 
 #[cfg(feature = "proto-dhcpv4")]
 pub use self::dhcpv4::{
-    DhcpOption, DhcpOptionWriter, MessageType as DhcpMessageType, Packet as DhcpPacket,
-    Repr as DhcpRepr, CLIENT_PORT as DHCP_CLIENT_PORT,
+    DhcpOption, DhcpOptionWriter, Flags as DhcpFlags, MessageType as DhcpMessageType,
+    OpCode as DhcpOpCode, Packet as DhcpPacket, Repr as DhcpRepr, CLIENT_PORT as DHCP_CLIENT_PORT,
     MAX_DNS_SERVER_COUNT as DHCP_MAX_DNS_SERVER_COUNT, SERVER_PORT as DHCP_SERVER_PORT,
 };