Diff for /libaitrpc/src/aitrpc.c between versions 1.21 and 1.22

version 1.21, 2016/08/08 13:21:13 version 1.22, 2024/03/20 17:32:30
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 - 2016Copyright 2004 - 2024
         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 138  rpc_Read(int sock, int type, int flags, sockaddr_t * _ Line 138  rpc_Read(int sock, int type, int flags, sockaddr_t * _
         sockaddr_t sa2;          sockaddr_t sa2;
         socklen_t salen;          socklen_t salen;
         int ret = 0, hlen, cx = 0;          int ret = 0, hlen, cx = 0;
         ether_addr_t bcst = {{ [0 ... sizeof bcst - 1] = 0xff }};  
         u_char *buf = AIT_GET_BUF(pkt);          u_char *buf = AIT_GET_BUF(pkt);
         size_t blen = AIT_LEN(pkt);          size_t blen = AIT_LEN(pkt);
         struct tagRPCCall *rpc = (struct tagRPCCall *) buf;          struct tagRPCCall *rpc = (struct tagRPCCall *) buf;
Line 156  try2read: Line 155  try2read:
         salen = E_SOCKADDR_MAX;          salen = E_SOCKADDR_MAX;
 #ifndef __linux__  #ifndef __linux__
         sa2.ss.ss_len = salen;          sa2.ss.ss_len = salen;
           ether_addr_t bcst = {{ [0 ... sizeof bcst - 1] = 0xff }};
 #endif  #endif
         if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 ||           if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 || 
                         pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {                          pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {

Removed from v.1.21  
changed lines
  Added in v.1.22


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