-
Notifications
You must be signed in to change notification settings - Fork 262
UPnP IGD: Daemon fixes and improvements #458
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
base: master
Are you sure you want to change the base?
UPnP IGD: Daemon fixes and improvements #458
Conversation
5e5dfae
to
f075dc0
Compare
@BrainSlayer Some perhaps useful PR reference links: UPnP IGD WANCommonInterfaceConfig:1 service: UDA 1.1: |
is this tested? |
especially "Server: %s/%s UPnP/1.0 upnpd/0.9.0\r\n" |
i'm merging it now partitially. but the part which changes the http header is clearly wrong %s/%s can never be a valid Server: description. this is specified as ip or hostname but never contains slashes. in that case its just a placeholder, but it still has to be in valid format. using the osname and os version as server is wrong |
and parts of your patch is broken and does not compile. soap.c: In function 'soap_send_error': |
i'm currently fixing it. i also found more compile errors in other sources based on that patch. |
the rename of arg_out_GetMaximumActiveConnections to arg_out_GetMaximumActiveConnection is also wrong. see spec |
i commited 2 patches on top. now it does compile again |
Thanks for the compilation fix. Unfortunately, I have not yet been able to set up a build environment for dd-wrt.
Could you perhaps take another look at it? From the UDA 1.1 specification: So a server of |
looks right. os/version etc. is correct. so if practical tests works. all is okay |
As it is currently: |
not sure about the daemon version since we have done alot of changes over the years. also not sure if its relevant at all |
Thank you, but I suggested that this would comply with the UDA specs:
|
makes technically no different. better now? |
Perfectly, thank you very much. |
Let's keep this PR open in case I think of any further improvements. |
its not closed. intentionally |
GetActiveConnections
->GetActiveConnection
action and add missingallowedValueRange
toMaximumActiveConnections
state variable to match UPnP IGD specificationFixed in 7567a2b d2d021c df0d9ca
Fixed in c552aac ee0254a
The Port Control Protocol (PCP) is the successor to NAT-PMP, has similar protocol concepts and packet formats, but adds support for IPv6 port maps and options/extensions. For more information, see:
Port Mapping Protocols Overview and Comparison 2025: About UPnP IGD & PCP/NAT-PMP
https://github.com/Self-Hosting-Group/wiki/wiki/Port-Mapping-Protocols-Overview