*
* DEBUG: section 44 message INFO SRC
*
- * -------------------------------------------------------------------
- * ORTE
- * Open Real-Time Ethernet
- *
- * Copyright (C) 2001-2006
- * Department of Control Engineering FEE CTU Prague, Czech Republic
- * http://dce.felk.cvut.cz
- * http://www.ocera.org
- *
- * Author: Petr Smolik petr@smoliku.cz
- * Advisor: Pavel Pisa
- * Project Responsible: Zdenek Hanzalek
+ * -------------------------------------------------------------------
+ * ORTE
+ * Open Real-Time Ethernet
+ *
+ * Copyright (C) 2001-2006
+ * Department of Control Engineering FEE CTU Prague, Czech Republic
+ * http://dce.felk.cvut.cz
+ * http://www.ocera.org
+ *
+ * Author: Petr Smolik petr@smoliku.cz
+ * Advisor: Pavel Pisa
+ * Project Responsible: Zdenek Hanzalek
* --------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- */
+ *
+ */
#include "orte_all.h"
/**********************************************************************************/
-void RTPSInfoSRC(CDR_Codec *cdrCodec,MessageInterpret *mi) {
+void
+RTPSInfoSRC(CDR_Codec *cdrCodec, MessageInterpret *mi)
+{
IPAddress ipa;
ProtocolVersion protocol;
VendorId vid;
/* appIPAddress */
CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&ipa);
-
+
/* ProtocolVersion */
CDR_get_octet(cdrCodec, (CORBA_octet *)&protocol.major);
CDR_get_octet(cdrCodec, (CORBA_octet *)&protocol.minor);
CDR_get_octet(cdrCodec, (CORBA_octet *)&vid.minor);
/* next data are sent in big endianing */
- data_endian=cdrCodec->data_endian;
- cdrCodec->data_endian=FLAG_BIG_ENDIAN;
+ data_endian = cdrCodec->data_endian;
+ cdrCodec->data_endian = FLAG_BIG_ENDIAN;
/* HostId */
CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&hid);
/* AppId */
CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&aid);
- cdrCodec->data_endian=data_endian;
+ cdrCodec->data_endian = data_endian;
- debug(44,3) (" RTPSInfoSRC: \n");
- debug(44,4) (" appIPAddress:%s\n",IPAddressToString(ipa,sIPAddress));
- debug(44,4) (" pv:%lu,%lu vid:%lu,%lu hid:0x%x aid:0x%x\n",
- protocol.major,protocol.minor,vid.major,vid.minor,hid,aid);
+ debug(44, 3) (" RTPSInfoSRC: \n");
+ debug(44, 4) (" appIPAddress:%s\n", IPAddressToString(ipa, sIPAddress));
+ debug(44, 4) (" pv:%lu,%lu vid:%lu,%lu hid:0x%x aid:0x%x\n",
+ protocol.major, protocol.minor, vid.major, vid.minor, hid, aid);
- mi->sourceHostId=hid;
- mi->sourceAppId=aid;
- mi->sourceVersion=protocol;
- mi->sourceVendorId=vid;
- mi->unicastReplyIPAddress=ipa;
- mi->unicastReplyPort=PORT_INVALID;
- mi->multicastReplyIPAddress=IPADDRESS_INVALID;
- mi->multicastReplyPort=PORT_INVALID;
- mi->haveTimestamp=ORTE_FALSE;
+ mi->sourceHostId = hid;
+ mi->sourceAppId = aid;
+ mi->sourceVersion = protocol;
+ mi->sourceVendorId = vid;
+ mi->unicastReplyIPAddress = ipa;
+ mi->unicastReplyPort = PORT_INVALID;
+ mi->multicastReplyIPAddress = IPADDRESS_INVALID;
+ mi->multicastReplyPort = PORT_INVALID;
+ mi->haveTimestamp = ORTE_FALSE;
}