mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Added pid in cwmp id as a identifier
This commit is contained in:
parent
09b7cd7a6b
commit
26a56bc6f8
1 changed files with 2 additions and 1 deletions
|
|
@ -1489,9 +1489,10 @@ int xml_set_cwmp_id()
|
||||||
{
|
{
|
||||||
char c[32];
|
char c[32];
|
||||||
mxml_node_t *b;
|
mxml_node_t *b;
|
||||||
|
int pid_t = getpid();
|
||||||
|
|
||||||
/* define cwmp id */
|
/* define cwmp id */
|
||||||
if (snprintf(c, sizeof(c), "%u", ++(cwmp_main->cwmp_id)) == -1)
|
if (snprintf(c, sizeof(c), "%d.%u", pid_t, ++(cwmp_main->cwmp_id)) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
b = mxmlFindElement(cwmp_main->session->tree_out, cwmp_main->session->tree_out, "cwmp:ID", NULL, NULL, MXML_DESCEND);
|
b = mxmlFindElement(cwmp_main->session->tree_out, cwmp_main->session->tree_out, "cwmp:ID", NULL, NULL, MXML_DESCEND);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue