Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API break] neighbour_table: Reorganize the code base #67

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

cathay4t
Copy link
Member

  • This patch is first preparation on stable release 1.0 for submodule
    neighbour_table. The detailed checklist for developer is stated in
    README.md file.
  • Stored constants into where it been used. Will remove constants.rs
    once all components finished.
  • Replace pub use self::* to explicit expose.
  • Renamed neighbour_table::Nla to NeighbourTableAttribute and all its
    entry changed to detailed data structure instead of Vec<u8>
  • Unit test case included. There is no ip command for
    neighbour_table. Hence this patch introduce example
    dump_neighbour_tables.rs, and use it to generate netlink query to
    kernel. The integers are verified by sysctl -a|grep neigh.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (c26a504) 62.52% compared to head (bbd915c) 66.01%.

Files Patch % Lines
src/neighbour_table/param.rs 94.26% 7 Missing ⚠️
src/neighbour_table/attribute.rs 89.83% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   62.52%   66.01%   +3.49%     
==========================================
  Files          98       99       +1     
  Lines        7108     7400     +292     
==========================================
+ Hits         4444     4885     +441     
+ Misses       2664     2515     -149     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

 * This patch is first preparation on stable release 1.0 for submodule
   neighbour_table. The detailed checklist for developer is stated in
   README.md file.
 * Stored constants into where it been used. Will remove `constants.rs`
   once all components finished.
 * Replace `pub use self::*` to explicit expose.
 * Renamed `neighbour_table::Nla` to `NeighbourTableAttribute` and all its entry
   changed to detailed data structure instead of `Vec<u8>`
 * Unit test case included. There is no `ip` command for
   `neighbour_table`. Hence this patch introduce example
   `dump_neighbour_tables.rs`, and use it to generate netlink query to
   kernel. The integers are verified by `sysctl -a|grep neigh`.

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit c490423 into rust-netlink:main Dec 1, 2023
10 checks passed
@cathay4t cathay4t deleted the v1_prep_neighbour_table branch December 1, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant