[roll] Roll fuchsia [netlink] Introduce IndexedRules data structure

Introduces an IndexedRules data structure that stores a set of rules
that all have the same priority. Internally, this is a
BTreeMap<u16, RuleMessage>, where the u16 is the rule's index among the
set of rules with the same priority.

This replaces what was previously a Vec<RuleMessage>, which will be
unsuitable once we start installing rules via the relevant FIDL
protocols, which expect the "index" of a given rule to remain the same
as long as the rule is installed.

Now, when a rule is removed, all the rules after it don't have their
indices changed.

Test: netlink-lib-test
Original-Bug: 358649849
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1148072
Original-Revision: 24adf4cbe856c5bedc39acfe80513f11c79666cc
GitOrigin-RevId: d3ecc073a8cb719b5206f26f713c7f8619c21489
Change-Id: I3cd2fc28e2e40da00da1e8ba36e326c2b164c59d
1 file changed
tree: 48dd2622705071e18715df98ceada0973571579b
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.