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

✨ Add Custom Net Device #12

Merged
merged 9 commits into from
Mar 16, 2024
Merged

✨ Add Custom Net Device #12

merged 9 commits into from
Mar 16, 2024

Conversation

YousefEZ
Copy link
Owner

@YousefEZ YousefEZ commented Mar 14, 2024

This PR is aimed to address the issue with packets dropping when attempting to reroute. Also its marks the separation of the FRR Policy utilization by the Queue and instead it moves it up to the net device.

@YousefEZ YousefEZ requested a review from charliebarber March 14, 2024 02:46
if (explicitFilename) {
filename = prefix;
} else {
filename = pcapHelper.GetFilenameFromDevice(prefix, device);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean we can mess with the file names a bit? Might help to clear up the different suffixes to know which gateway we are looking at.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This one is a little bit beyond me but I assume a lot is taken from NS3 source.

Copy link
Owner Author

Choose a reason for hiding this comment

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

most of it yeah, just modifying to create PointToPointFRRNetDevices instead

{
NS_LOG_FUNCTION_NOARGS();
switch (proto) {
case 0x0800: return 0x0021; // IPv4
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seeing the protocol numbers that clearly in front of me is slightly infuriating.....

Copy link
Owner Author

Choose a reason for hiding this comment

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

yeah I was wondering where I got the number from 😂😂

Copy link
Collaborator

@charliebarber charliebarber left a comment

Choose a reason for hiding this comment

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

LGTM. Somewhat confused by the p2p code but I guess I do not need to understand all of it. Well done as always.

@YousefEZ YousefEZ merged commit f1cb3e1 into main Mar 16, 2024
5 checks passed
@YousefEZ YousefEZ deleted the addCustomNetDevice branch March 16, 2024 16:29
@YousefEZ YousefEZ mentioned this pull request Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants