-
Notifications
You must be signed in to change notification settings - Fork 73
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 respondd-module-lldp #189
base: main
Are you sure you want to change the base?
Conversation
Hi @genofire, is there some additional information somewhere how this package is improving things? Also, there seem to be descriptions missing in the Makefile and some documentation for readthedocs seems missing, too. |
It is just old code, which somebody maybe want. It is possible to run a lldpd on the switch. Another solution is to create for every interface a vlan and let batman-adv and babel detect neighbours with there routing protocol - which use always there CPU. |
kannst du das noch mal auf deutsch erklären bitte? Und was ist ein lldpd? wofür ist der gut? |
Es ist alter code von uns, der vielleicht auch nicht gewollt ist. (Wollte es eher als Anregung zur Verfügung stellen.) Es ist möglich den lldp-daemon für die integrierten Switches zu verwenden. Eine Alternative Variante um reale Nachbarn zu sehen ist, das jedes Interface vom Switch als eigenes VLAN konfiguriert wird. Wodurch die Meshprotokoll die Nachbarn richtig erkennt. Doch dadurch durchläuft alles die CPU, was das Netz tendenziell wieder langsam macht. |
|
||
json_object_object_add(neighbors_obj, neighmac, json_object_new_object()); | ||
} | ||
json_object_object_add(ret_lldp, portmac, neighbors_obj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Memory leaks: conn must be released using lldpctl_release(), ifaces, port and neighbors using lldpctl_atom_dec_ref() (and possibly I'm overlooking further issues).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ifaces and port are still leaking.
4a8512d
to
4c68d35
Compare
@genofire what's the progress here, any updates on the remaining comments? |
sry, i have no time to test it -> thats the reason, why i have not fixed it. |
4c68d35
to
c14a457
Compare
c14a457
to
d59e65f
Compare
@genofire have you fixed all the issues? they are marked as outdated, so maybe you have? |
i though so - will test it end of next week again ... |
d59e65f
to
e0db1e8
Compare
I just tried this package on one of my nodes connected to a 2960G that emits both LLDP and CDP, which I both see arrive on
|
@mweinelt thank you for testing - do you have added the interface/switch to lldp? I have also found a pvid snippet in my history (for TP-Link TL-WDR3600 v1 and TP-Link Archer C7 v2): -- Set PVID for ports
uci:delete_all('network', 'switch_port')
for i=0, 6, 1 do
uci:section('network', 'switch_port', 'port_' .. i, {
pvid = 1,
port = i,
})
end |
Yep, that looks great now. To make this useful we'd need a Unfortunately as soon as LLDP neighbors are present respondd crashes for me regularly when
Not too much info, but here it goes:
Crahses roughly on the third neighbors query, all responses are empty. |
No idea, how to write/fix it for all the router models ... But let us take one step at once, and bring this respondd package upstream ;) (do you need both? lldpd and network.switch_port) |
Agreed. |
I try it again - sadly, it crashes:
and
i will try to debug it next days -> or somebody has an idea for me, "yet". |
e0db1e8
to
53cc1f5
Compare
@T-X found maybe a bugfix, so i have commit it. We should test/review this PR again ;) |
Could be usefull on wired networks (with a lot of switches) - to find the right neigbours.