More Cisco stuff added

FossilOrigin-Name: e68d9b046b5b19112b8c37d63642202ba74c57d927cb4519d0da57e0b0e11698
This commit is contained in:
7u83@mail.ru
2018-04-22 07:00:55 +00:00
parent d316d956f8
commit d1363a2e14
14 changed files with 245 additions and 45 deletions

View File

@ -15,7 +15,8 @@ int cw_ktv_write_struct(mavl_t ktv, const cw_KTVStruct_t * stru, const char *pke
if (stru[i].position!=-1){
pos=stru[i].position;
}
memset(dst+pos,0,stru[i].len);
if (stru[i].len!=-1)
memset(dst+pos,0,stru[i].len);
sprintf(key,"%s/%s",pkey,stru[i].key);
result = cw_ktv_get(ktv,key,stru[i].type);
@ -27,8 +28,10 @@ int cw_ktv_write_struct(mavl_t ktv, const cw_KTVStruct_t * stru, const char *pke
else{
result->type->put(result,dst+pos);
}
pos+=stru[i].len;
if (stru[i].len!=-1)
pos+=stru[i].len;
else
pos+=result->type->len(result);
}