add comments with usual namespace

see a4b97cf105
This commit is contained in:
Thomas Bernard 2015-09-21 17:10:15 +02:00
parent 146164a5ca
commit 861c5f5796
1 changed files with 5 additions and 4 deletions

View File

@ -106,7 +106,7 @@ GetTotalBytesSent(struct upnphttp * h, const char * action, const char * ns)
r = getifstats(ext_if_name, &data);
bodylen = snprintf(body, sizeof(body), resp,
action, ns,
action, ns, /* was "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
r<0?0:data.obytes, action);
BuildSendAndCloseSoapResp(h, body, bodylen);
}
@ -128,7 +128,7 @@ GetTotalBytesReceived(struct upnphttp * h, const char * action, const char * ns)
r = getifstats(ext_if_name, &data);
bodylen = snprintf(body, sizeof(body), resp,
action, ns,
action, ns, /* was "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
r<0?0:data.ibytes, action);
BuildSendAndCloseSoapResp(h, body, bodylen);
}
@ -172,7 +172,7 @@ GetTotalPacketsReceived(struct upnphttp * h, const char * action, const char * n
r = getifstats(ext_if_name, &data);
bodylen = snprintf(body, sizeof(body), resp,
action, ns,
action, ns, /* was "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
r<0?0:data.ipackets, action);
BuildSendAndCloseSoapResp(h, body, bodylen);
}
@ -211,7 +211,7 @@ GetCommonLinkProperties(struct upnphttp * h, const char * action, const char * n
status = "Down";
}
bodylen = snprintf(body, sizeof(body), resp,
action, ns,
action, ns, /* was "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
wan_access_type,
upstream_bitrate, downstream_bitrate,
status, action);
@ -1196,6 +1196,7 @@ GetDefaultConnectionService(struct upnphttp * h, const char * action, const char
char body[1024];
int bodylen;
/* namespace : urn:schemas-upnp-org:service:Layer3Forwarding:1 */
bodylen = snprintf(body, sizeof(body), resp,
action, ns, uuidvalue_wcd, action);
BuildSendAndCloseSoapResp(h, body, bodylen);