Skip to content

Releases: bluecatengineering/dhcproto

0.11.0

03 Dec 19:26
d736010
Compare
Choose a tag to compare

[0.11.0]

Fixed

  • AgentRemoteId was returning the wrong variant on decode

Added

  • RFC 2563/8925

0.10.0

29 Sep 16:53
44fe6c9
Compare
Choose a tag to compare

[0.10.0]

Fixed

  • dhcpv6: Fix OPTION_STATUS_CODE parsing. After a status code option, all following options will be corrupted

Added

  • add v4 options 21/24/25/34 & 62..65 & 68..77
  • add v4 opts 88 & 89. 88 uses same domain long opt encoding as 119

Changed

  • Picked more consistent name & casing for option types (NIS -> NisServers, NISDomain -> NisDomain, NTPServers -> NtpServers)
  • remove Domain type and just re-export trust-dns Name

0.9.0

06 Mar 20:07
fad8f49
Compare
Choose a tag to compare

Added

  • PartialOrd/Ord impls for v4::DhcpOption/v6::DhcpOption/v4::OptionCode/v6::OptionCode
  • v6::DhcpOptions methods *_all
  • v6::Duid & methods
  • v6::Message Display impl
  • v6::RelayMessage
  • v4::NISServerAddr added to options
  • v4::Message::clear_sname/clear_fname added
  • dhcpv4 opt client fqdn added. uses trust-dns-proto's Name type to decode the domain

Changed

  • internally, v6 DhcpOptions are now kept sorted by OptionCode (may become HashMap<_, Vec<_>> in future)
  • DhcpOptions::RelayMsg() type changed to RelayMessage
  • moved Duid to duid module
  • added oro_codes

Fixed

  • relay agent info will be added before END opt if present see here
  • fixed panic on .get for v6 options

0.8.0

06 Jul 20:39
fa42be2
Compare
Choose a tag to compare

Changed

  • dhcpv4 option variants added (breaking)
  • dhcpv4 message type variants added (breaking)
  • ClientNetworkInterface removed inner tuple
  • Change has_msg_type return type to just bool

Fixed

  • v6 set_xid_num was taking bytes from the wrong end
  • dhcpv6 DomainSearchList (opt 24)

Added

  • dhcpv4 opt 119 DomainSearch
  • dhcpv4 opt 114 CaptivePortal
  • dhcpv4 message variants 9-18 added, breaking change for MessageType
  • dhcpv4 added DhcpOption for 91/92/93/94/97
  • UnknownOption encode/decode
  • dhcpv4 options 151-157 from bulkleasequery RFC
  • add Display impl for v4::Message

0.6.0

20 Jan 15:52
00fdd8e
Compare
Choose a tag to compare

[0.6.0]

Added

  • methods for dhcpv6::UnknownOption & RelayMsg

Changed

  • exposed some dhcpv6 opt fields as pub
  • InterfaceId type changed from String to Vec<u8>
  • VendorClass/UserClass changed to Vec<Vec<u8>>

Removed

  • ElapsedTime and Preference

0.5.0

07 Dec 19:29
Compare
Choose a tag to compare

[0.5.0]

Added

  • added clear/is_empty/retain to v4 opts & relay agent sub-opts

Fixed

  • breaking: options enum for v4::DhcpOption was decoding into the wrong variants for a few types

0.4.1

12 Nov 19:34
d16d1b1
Compare
Choose a tag to compare
  • expose methods so one can actually create RelayInfo/RelayAgentInformation
  • methods to get the data out of various Unknown variants for opts/relay
  • added option 118 subnet selection
  • return impl Iterator for relay/opt iterator methods
  • more docs for opts/relay info

Several of these changes are breaking, including enum variant additions & changing return types of methods. The API may continue to break up until 1.0

0.3.0

15 Oct 18:41
Compare
Choose a tag to compare

#8 Improves performance of Decoder
#7 fixes the API of sname/fname to be more RFC compliant
added some much needed docs

0.2.1

14 Sep 16:10
c3b82ba
Compare
Choose a tag to compare

initial release:

  • encoder/decoder traits
  • dhcpv4/v6 message types & options