openthread / wpantund

Wireless Network Interface Daemon for Low-Power Wireless SoCs
Apache License 2.0
174 stars 111 forks source link

removing devices from a thread network. #493

Closed hansdeweerd closed 3 years ago

hansdeweerd commented 3 years ago

how can I remove a device from a thread network, and is this also possible to do this from the border router?

abtink commented 3 years ago

In wpantund the wpanctl command leave (and its realted DBUS API) will cause device to leave its current network.

hansdeweerd commented 3 years ago

yes, I understand. but I mean that you can remove a sleepy node from the network by giving the border router a command to remove it, is that possible?

abtink commented 3 years ago

I don't think it is possible within Thread spec.

If the "Mac Filter (allow-list/deny-list)" is supported on BR device, the AllowList/DenyList can be used to disallow BR to talk to a particular device (which causes it to get detached). But please note that the "Mac Filter" feature is added mainly for testing purposes and not intended for production.

hansdeweerd commented 3 years ago

yes, I have Mac filter enabled, but I can't find the commands to add/remove devices from it, Or is this only possible through the command line interface?

abtink commented 3 years ago

wpantund provides a bunch of properties that can be used to control Mac::Filter. https://github.com/openthread/wpantund/blob/820468161c87816a3e94366ebbe2a932650416e3/src/wpantund/wpan-properties.h#L202-L208