Created by: Clint Cronwright on 18-07-2013 10:34:07 AM We discovered that the enw_read_tcp_message function (in TransportPdu.c) is calling the recvfrom() function passing it the wrong parameter, three times.
yet, the function calls it as follows: bytesRecv = recvfrom (fd, &buf[bytes_read], sizeof (_powernet_secure_nw_t) - j, MYFLAG, (SOCKADDR *) &from_addr, &from_addr_len);
with from_addr already defined as a pointer in the function parameter list.
int enw_read_tcp_message(int fd, char *buf, unsigned int max_len, struct sockaddr_in *from_addr)
This results in it passing a pointer-to-a-pointer instead of the pointer as it should do. The fix of course is to remove the & in front of from_addr in those three places. This is with Cisco-EnergyWise-Toolkit-1.2.0-RELEASE-src. A couple of questions;
Are we ok to remove the 3 & symbols or would this cause other issues? Has this been fixed already (a newer version perhaps)? If there is a newer version should we be using the source for that instead?
Hi, I want to run a jsonrpc command to get the live-status of device hostname. I'm trying the below command but couldn't get succeed. Can any one help me to fix this ? Assume i got logged in and get_trans method ran successfully before exec...
Hi all i am using JNC to manage device . Trying to delete specific node on basis of node value which is key to list .
I am trying to use markdelete(Str Path) to delete my node but node able to get correct path for my node with node-name value as getting p...
we have a we-c3560x-24p switch with version 12.2 (55) SE5 that was off our network for a few years and we connected it back up to the network but it shows that there are a few devices connected to it but there is only 1 SFP connected in the G1/1. An...
Hi Experts, We are making a rest call to NSO, as part of the reply, NSO will return a response similar to the below with a Etag value: HTTP/1.1 100 ContinueServer:Allow: GET, POST, OPTIONS, HEADContent-Length: 0HTTP/1.1 201 CreatedServer:Locatio...
Hi,I am unable to divert a call to some destination.I am giving this XML response to the CUCM <Response><Result><Decision>Permit</Decision><Obligations><Obligation FulfillOn="Permit" ObligationId="divert.simple">&l...