Skip to content

Commit 9c422f8

Browse files
committed
Re-export dhcpv4::Flags and dhcpv4::OpCode
Similar to issue #762 and PR #763, `DhcpPacket::set_flags` and `DhcpPacket::set_opcode` were not usable externally because `dhcpv4::Flags` and `dhcpv4::OpCode` were private types. Re-export these types as `smoltcp::wire::DhcpFlags` and `smoltcp::wire::DhcpOpCode`.
1 parent 9bd836b commit 9c422f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wire/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ pub use self::tcp::{
267267

268268
#[cfg(feature = "proto-dhcpv4")]
269269
pub use self::dhcpv4::{
270-
DhcpOption, DhcpOptionWriter, MessageType as DhcpMessageType, Packet as DhcpPacket,
271-
Repr as DhcpRepr, CLIENT_PORT as DHCP_CLIENT_PORT,
270+
DhcpOption, DhcpOptionWriter, Flags as DhcpFlags, MessageType as DhcpMessageType,
271+
OpCode as DhcpOpCode, Packet as DhcpPacket, Repr as DhcpRepr, CLIENT_PORT as DHCP_CLIENT_PORT,
272272
MAX_DNS_SERVER_COUNT as DHCP_MAX_DNS_SERVER_COUNT, SERVER_PORT as DHCP_SERVER_PORT,
273273
};
274274

0 commit comments

Comments
 (0)