Diff for /libaitrpc/src/cli.c between versions 1.18 and 1.19.6.1

version 1.18, 2013/08/23 13:53:15 version 1.19.6.1, 2013/11/14 22:53:12
Line 303  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 303  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
                 if (type == SOCK_STREAM)                  if (type == SOCK_STREAM)
                         ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen);                          ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen);
                 else                  else
                        ret = rpc_Read(sock, type, 0, sa, buf, AIT_LEN(pkt));                        ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, sa, buf, blen);
                 if (ret < 1) {                  if (ret < 1) {
                         LOGERR;                          LOGERR;
                         return -1;                          return -1;
                 }                  }
   
                 /* check for response from known address */                  /* check for response from known address */
                if (type == SOCK_STREAM && !estlen) {                if (!estlen) {
                         /* 1st read for RPC header */                          /* 1st read for RPC header */
                         if (ret < sizeof(struct tagRPCCall)) {                          if (ret < sizeof(struct tagRPCCall)) {
                                 rpc_SetErr(ERPCMISMATCH, "Short RPC packet %d bytes", ret);                                  rpc_SetErr(ERPCMISMATCH, "Short RPC packet %d bytes", ret);
Line 380  rpc_pkt_Request(ait_val_t * __restrict pkt, rpc_sess_t Line 380  rpc_pkt_Request(ait_val_t * __restrict pkt, rpc_sess_t
                 rpc->call_argc = htons(array_Size(vars));                  rpc->call_argc = htons(array_Size(vars));
   
         /* set reply */          /* set reply */
        rpc->call_req.flags = noreply ? RPC_NOREPLY : RPC_REPLY;        rpc->call_req.flags = (uint64_t) htonl(noreply ? RPC_NOREPLY : RPC_REPLY);
   
         if (array_Size(vars)) {          if (array_Size(vars)) {
                 /* marshaling variables */                  /* marshaling variables */

Removed from v.1.18  
changed lines
  Added in v.1.19.6.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>