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

Use unix.RT_TABLE_MAIN for main routing table number #269

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Use unix.RT_TABLE_MAIN for main routing table number #269

merged 1 commit into from
Dec 19, 2018

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Dec 15, 2018

Description of changes:

This patch changes to use unix.RT_TABLE_MAIN from fixed value 254.
Since Go's library prepares the variable for each architecture, it
should be used for the portability. (All architectures uses
0xfe(=254), though.)

Also, this patch contains unit test for UpdateRuleListBySrc().

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This patch changes to use `unix.RT_TABLE_MAIN` from fixed value `254`.
Since Go's library prepares the variable for each architecture, it
should be used for the portability. (All architectures uses
`0xfe(=254)`, though.)

Also, this patch contains unit test for `UpdateRuleListBySrc()`.
Copy link
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this and adding a test!

@mogren mogren merged commit b8c5f79 into aws:master Dec 19, 2018
@nak3 nak3 deleted the updaterulelistbysrc branch December 19, 2018 23:47
@mogren mogren added this to the v1.4 milestone Mar 5, 2019
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