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

Feature: support destination persistent connections attribute #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kwanhur
Copy link
Contributor

@kwanhur kwanhur commented Mar 18, 2020

Add PersistentConnections attribute in Destination struct

@kwanhur
Copy link
Contributor Author

kwanhur commented Mar 18, 2020

check failed details do not relate with the feature codes

Copy link
Collaborator

@andrewsykim andrewsykim left a comment

Choose a reason for hiding this comment

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

@kwanhur looks like github thinks the email you are using is invalid, would it be possible to use a valid email address?

@@ -449,6 +449,8 @@ func assembleDestination(attrs []syscall.NetlinkRouteAttr) (*Destination, error)
d.ActiveConnections = int(native.Uint16(attr.Value))
case ipvsDestAttrInactiveConnections:
d.InactiveConnections = int(native.Uint16(attr.Value))
case ipvsDestAttrPersistentConnections:
d.PersistentConnections = int(native.Uint16(attr.Value))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at the kernel implementation this should be uint32?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeap, the connection attributes ActiveConnections InactiveConnections PersistentConnections also should be uint32. Unified could be better.

@kwanhur
Copy link
Contributor Author

kwanhur commented May 1, 2020

@kwanhur looks like github thinks the email you are using is invalid, would it be possible to use a valid email address?

it has been valid :-)

@andrewsykim
Copy link
Collaborator

Seeing this on github actions:

### ERRORED 04:45:14Z

- Please verify your email address to run GitHub Actions workflows. https://github.com/settings/emails

Maybe it's been fixed now, can you rebase and fix conflicts?

@kwanhur
Copy link
Contributor Author

kwanhur commented Jun 25, 2020

Seeing this on github actions:

### ERRORED 04:45:14Z

- Please verify your email address to run GitHub Actions workflows. https://github.com/settings/emails

Maybe it's been fixed now, can you rebase and fix conflicts?

conflicts have been fixed :)

@kwanhur
Copy link
Contributor Author

kwanhur commented Aug 7, 2020

Ping @andrewsykim how about this PR?

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