radvd-project / radvd

radvd | Official repository: https://github.com/radvd-project/radvd
https://radvd.litech.org/
Other
203 stars 107 forks source link

add IPV6_DROP_MEMBERSHIP #178

Closed gaoxingwang closed 2 years ago

gaoxingwang commented 2 years ago

Add IPV6_DROP_MEMBERSHIP to clean up resources when reloading or restarting radvd. Fixes slow kernel memory leak on reload/restart.

Fixes: https://github.com/radvd-project/radvd/issues/177

gaoxingwang commented 2 years ago

@stappersg PTAL

gaoxingwang commented 2 years ago

To Be Reviewed.

robbat2 commented 2 years ago

@gaoxingwang there's a bug that causes compile failure on BSD:

CCLD     radvd
ld: error: undefined symbol: cleanup_allrouters_membership
>>> referenced by interface.c:117
>>>               interface.o:(cleanup_iface)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Please add cleanup_allrouters_membership to device-bsd44.c