Skip to content

Commit

Permalink
Re-export dhcpv4::OpCode
Browse files Browse the repository at this point in the history
Similar to issue #762 and PR #763, `DhcpPacket::set_opcode` was not usable
externally because `dhcpv4::OpCode` was a private type. Re-export this
type as `smoltcp::wire::DhcpOpCode`.
  • Loading branch information
Databean committed Jan 28, 2024
1 parent 9bd836b commit e6f1ff4
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, 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 e6f1ff4

Please sign in to comment.