version 1.20.4.3, 2013/12/15 22:02:24
|
version 1.22.6.1, 2014/11/12 21:37:51
|
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 | Copyright 2004 - 2014 |
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 454 rpc_pkt_Request(ait_val_t * __restrict pkt, rpc_sess_t
|
Line 454 rpc_pkt_Request(ait_val_t * __restrict pkt, rpc_sess_t
|
* rpc_pkt_Replay() - Decode RPC Replay packet |
* rpc_pkt_Replay() - Decode RPC Replay packet |
* |
* |
* @pkt = Packet buffer |
* @pkt = Packet buffer |
* @sess = RPC session info | * @sess = RPC session info, if =NULL don't check session |
* @tag = Function tag |
* @tag = Function tag |
* @vars = Function argument array of values, may be NULL |
* @vars = Function argument array of values, may be NULL |
* @nocrc = Without CRC calculation |
* @nocrc = Without CRC calculation |
Line 469 rpc_pkt_Replay(ait_val_t * __restrict pkt, rpc_sess_t
|
Line 469 rpc_pkt_Replay(ait_val_t * __restrict pkt, rpc_sess_t
|
u_char *buf; |
u_char *buf; |
uint16_t crc; |
uint16_t crc; |
|
|
if (!pkt || !sess) { | if (!pkt) { |
rpc_SetErr(EINVAL, "Invalid argument(s)!"); |
rpc_SetErr(EINVAL, "Invalid argument(s)!"); |
return -1; |
return -1; |
} else |
} else |
Line 487 rpc_pkt_Replay(ait_val_t * __restrict pkt, rpc_sess_t
|
Line 487 rpc_pkt_Replay(ait_val_t * __restrict pkt, rpc_sess_t
|
} |
} |
|
|
/* check RPC packet session info */ |
/* check RPC packet session info */ |
if (rpc_chkPktSession(&rpc->call_session, sess)) { | if (sess && rpc_chkPktSession(&rpc->call_session, sess)) { |
rpc_SetErr(ERPCMISMATCH, "Get invalid RPC session"); |
rpc_SetErr(ERPCMISMATCH, "Get invalid RPC session"); |
return -1; |
return -1; |
} |
} |