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

Re-arrange net_* files efficiently #38

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Re-arrange net_* files efficiently #38

merged 1 commit into from
Feb 16, 2024

Conversation

anjalidk
Copy link
Collaborator

@anjalidk anjalidk commented Feb 6, 2024

Moved common functionality between net_*.c files into net.c.

Added connect_netlink() & get_net_len() common from all net_*.c files into net.c

@anjalidk
Copy link
Collaborator Author

Hi @hallyn did you get a chance to review the code?

Moved common functionality between net_*.c files into net.c.
Moved the handle_*_resp() calls for route, arp & if into handle_net_resp()
Added new tests/IF directory for interface statistics.
Removed the path outside while loop as it will never be run.
Added err1 and err2 paths for error handling in net.c
Fixed issues in net_if.c - missing bzero for ifs, and writing the
interface name when TESTING is not enabled.
Also added some extra prints and a free in tests/IF/if_test.c

Signed-off-by: Anjali Kulkarni <[email protected]>
Copy link
Member

@hallyn hallyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - thanks.

@hallyn hallyn merged commit 4b99efb into main Feb 16, 2024
18 checks passed
@anjalidk anjalidk deleted the net2 branch March 13, 2024 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants