--- libaitrpc/inc/aitrpc_pkt.h 2016/08/08 13:21:13 1.3 +++ libaitrpc/inc/aitrpc_pkt.h 2024/03/20 17:32:30 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc_pkt.h,v 1.3 2016/08/08 13:21:13 misho Exp $ +* $Id: aitrpc_pkt.h,v 1.4 2024/03/20 17:32:30 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2015 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -79,8 +79,9 @@ SUCH DAMAGE. /* RPC call I/O direction */ -#define RPC_REQ 0x0 -#define RPC_ACK 0x1 +#define RPC_REQ 0x1 +#define RPC_ACK 0x2 +#define RPC_IPC 0x4 /* RPC builtin registed calls */ @@ -138,7 +139,7 @@ struct tagRPCCall { uint16_t call_tag; uint8_t call_argc; ait_val_t call_argv[0]; -} __packed; /* size == 20 bytes */ +} __attribute__((packed)); /* size == 20 bytes */ #define RPC_CHK_NOREPLY(x) (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY) #define RPC_SET_ERRNO(x, _v) ((x)->call_rep.eno = (int32_t) htonl((_v))) #define RPC_SET_RETURN(x, _v) ((x)->call_rep.ret = (int32_t) htonl((_v)))