From 7774c24daa99c45b749c156870d1a18b46cc219b Mon Sep 17 00:00:00 2001 From: Daniel Becker Date: Fri, 11 Dec 2015 22:56:20 -0800 Subject: [PATCH] add missing parameters for DeviceProtection service actions --- miniupnpd/upnpdescgen.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/miniupnpd/upnpdescgen.c b/miniupnpd/upnpdescgen.c index 05b748c..09458d3 100644 --- a/miniupnpd/upnpdescgen.c +++ b/miniupnpd/upnpdescgen.c @@ -743,11 +743,32 @@ static const struct serviceDesc scpd6FC = #ifdef ENABLE_DP_SERVICE /* UPnP-gw-DeviceProtection-v1-Service.pdf */ + +static const struct argument SendSetupMessageArgs[] = +{ + {1|0x80, 6}, /* ProtocolType */ + {1|0x80, 5}, /* InMessage */ + {2|0x80, 5}, /* OutMessage */ + {0, 0} +}; + +static const struct argument GetSupportedProtocolsArgs[] = +{ + {2, 1}, /* ProtocolList */ + {0, 0} +}; + +static const struct argument GetAssignedRolesArgs[] = +{ + {2, 6}, /* RoleList */ + {0, 0} +}; + static const struct action DPActions[] = { - {"SendSetupMessage", 0}, - {"GetSupportedProtocols", 0}, - {"GetAssignedRoles", 0}, + {"SendSetupMessage", SendSetupMessageArgs}, + {"GetSupportedProtocols", GetSupportedProtocolsArgs}, + {"GetAssignedRoles", GetAssignedRolesArgs}, {0, 0} };