Diff for /libaitrpc/src/cli.c between versions 1.22.6.3 and 1.23.2.1

version 1.22.6.3, 2014/12/10 23:44:33 version 1.23.2.1, 2015/01/15 20:39:11
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2014Copyright 2004 - 2015
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 350  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 350  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
         do {          do {
                 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 if (type == SOCK_BPF) {
                         ret = rpc_Read(sock, type, 0, sa, AIT_GET_BUF(pkt), AIT_LEN(pkt));
                         if (ret > 0)
                                 estlen = ret;
                  } else
                         ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, sa, buf, blen);                          ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, sa, buf, blen);
                 if (ret < 1)                  if (ret < 1)
                         return ret;                          return ret;
Line 656  rpc_cli_openClient2(u_char InstID, int netBuf, const c Line 660  rpc_cli_openClient2(u_char InstID, int netBuf, const c
                         return NULL;                          return NULL;
         } else          } else
                 strlcpy(szIface, csIface, sizeof szIface);                  strlcpy(szIface, csIface, sizeof szIface);
        if (e_getifacebyname(szIface, &sal))        if (!e_getifacebyname(szIface, &sal))
                 return NULL;                  return NULL;
   
         cli = e_malloc(sizeof(rpc_cli_t));          cli = e_malloc(sizeof(rpc_cli_t));

Removed from v.1.22.6.3  
changed lines
  Added in v.1.23.2.1


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