commit | 65367dafc03c84a54bf8f9aac11a419d3b3682eb | [log] [tgz] |
---|---|---|
author | Nick Brown <nickbrow@google.com> | Mon Apr 12 23:10:03 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Mon Apr 12 23:10:03 2021 +0000 |
tree | 54387f866572254e95d8e7a29aff4f7d1d264b98 | |
parent | f62499f0b5891dfadfff2c6ef634129f6ec2282d [diff] |
[netstack] Simplify DHCP address pool structs This CL makes the following changes to the AddressPool and ManagedAddresses structs: 1) Remove the `broadcast` and `network_id` members, which were unused in the DHCP server. 2) Replace the subnet mask Ipv4Address with the equivalent u8 `prefix_len` in the AddressPool struct. The ManagedAddresses struct uses a SubnetMask type so we can avoid adding the error handling logic for converting from a u8 => SubnetMask at the point of use. Instead, we handle that error when converting from AddressPool => ManagedAddresses. Fixed: 73076 Change-Id: I7a9b979efb9bef25b86dd100fe7e47ccb62a8b17 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/510758 Commit-Queue: Nick Brown <nickbrow@google.com> API-Review: Marie Janssen 💖 <jamuraa@google.com> Reviewed-by: Tamir Duberstein <tamird@google.com> Reviewed-by: Amanda Tait <atait@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.