Skip to content

Commit

Permalink
Re-export dhcpv4::Flags and dhcpv4::OpCode
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Databean committed Jan 28, 2024
1 parent 9bd836b commit 9c422f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wire/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 9c422f8

Please sign in to comment.