-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
[Questions] Regarding ghost ports feature #134
Comments
You are the second one to get this error at build. Did you use What is implemented in trunk is that there is a default port that is cloned when new ports are created. Therefore, when configuring something on all ports, it gets configured on the default port as well and new ports will inherit it. Moreover, ports are not removed when they get down, so the configuration stays. What is not done is configuring a port that doesn't exist yet. The error you got is not related to libnl. I am not relying on |
And as for libnl-tiny, if there is enough in it, I'd be willing to make it work with it too (it should be OK as long as libnl-route is here). |
libnl-tiny is a bit OpenWRT specific ; I'll try to run autogen.sh ; though I might just do a diff + patch between 0.7.17 and 0.8.0 and apply that in our tree and run it like that. |
The build system in 0.7.17 is the same as in 0.8.0 (I did the same update). It would help me if it worked. ;-) |
For libnl-tiny, it seems that there is no code for libnl-route, so it won't work (libnl-route also gives link and addresses, despite its name). |
For the build issue, have a look at #133 and the fix proposed. I hope you did hit the same case. |
Thanks for the notification. |
This also fixed it for me :) As for the libnl-tiny part ; I've tried to port bits to it from libnl. This seems to work fairly well ; there are 2 cases I am seeing:
Regarding the first point, I will check and see the code, and try to understand why the netlink event does not affect uplink ports. Thanks :) |
For the second point, I think this is expected: we have to receive LLDP frames to be able to assert any information. We cannot reuse the old information (which has been discarded) because we may have been plugged to a different port. |
Ah, on 1st point we seem to have found an issue with link-state events not occurring. |
Good news. Always better when the problems are not on my side. ;-) |
For the second point. I think for now we could live with 10-20 seconds, especially since that info is guaranteed to be solid. Regarding libnl-tiny vs libnl Thanks :) |
For the second point, we have to wait for the remote device to send LLDP frames. It seems that the device on your upstream link is sending LLDP frames when link comes up but this is not the case on the other ports. I don't see what can be done about this. lldpd publish the information about new peer as soon as it receives them. Check with tcpdump that no incoming frames are available when you plug the cord. |
hmmm, ok :) will keep looking here later; it may be that some of our kernel stuff may need tweaking thanks again |
Hello,
I am curious about the status on the ghost ports ?
Looks like it's not in version 0.7.17, and in trunk there is only a mention of it for version 0.8.0 in the NEWS.
But I can't make out from the sources if it's in (even partially).
I'd be fine with using trunk, since our current hack (for keeping info on custom TLVs) is showing some minor failures under some stress-tests.
Seems that trunk does not build too well ; or maybe better said, I may need some hints on building trunk.
I get either:
either
Anyway, moving forward, if possible, I'd like to help out with this feature, since it's one of current burning issues, and we've managed to get up to now without it (and hacking stuff up), but our current direction is to get this properly in.
As a note, on OpenWRT, there are 2 libnl libs (libnl + libnl-tiny (a stripdown of libl)) , so if something should have worked [or should work] for me [ and did not ], it could be because I tried with libnl-tiny right now.
I am not yet sure of the feature conpleteness of libnl-tiny.
Thanks :)
Alex
The text was updated successfully, but these errors were encountered: