Al Smith has this very complete code for relaying SSDP and MDNS across networks.
You’ll need to install Python Lite and follow the readme file for OpenWRT.