SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] sctplib-1.0.8 on QNX Neutrino RTOS 6.4.1: fix to adaptation


Chronological Thread 
  • From: Michael Tüxen <Michael.Tuexen AT micmac.franken.de>
  • To: amedeo bonfiglio <amedeo.bonfiglio AT rcm.inet.it>
  • Cc: "sctp-discussion AT sctp.de" <sctp-discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] sctplib-1.0.8 on QNX Neutrino RTOS 6.4.1: fix to adaptation
  • Date: Tue, 29 Dec 2009 16:45:02 +0100
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hi Amedeo,

thanks for the fix. It has been integrated in the latest release
by Thomas.

Best regards
Michael

On Dec 6, 2009, at 10:53 PM, amedeo bonfiglio wrote:

> Hi all,
> please find attached the output of 'diff adaptation.c adaptation.c-nto'
> where adaptation.c-nto is the version modified for Neutrino RTOS.
>
> Hope this can be useful to someone.
>
> Regards,
> Amedeo
>
>
> Michael Tüxen wrote:
>> Hi Amedeo,
>>
>> would it be possible for you to provide a patch with uses #ifdef with some
>> Neutrino RTOS specific
>> constants such that we can include your code into the next release?
>>
>> Please send the diff as an attachment.
>>
>> Best regards
>> Michael
>>
>> On Nov 14, 2009, at 11:21 AM, amedeo bonfiglio wrote:
>>
>> > Hi all,
>> > I am using sctplib-1.0.8 on QNX Neutrino RTOS 6.4.1.
>> > I want to let you know of a little fix I had to make to the function
>> > adl_gatherLocalAddresses() within the file adaptation.c (the original
>> > version did not work).
>> > I had modified the part which gathers the master address information
>> > following the hints as suggested in
>> > http://www.qnx.com/developers/docs/6.4.0/io-pkt_en/user_guide/migrating.html#Coexistence.
>> >
>> > I attach my version of the file adaptation.c.
>> > May be it it useful to some one else.
>> >
>> > Below are the differences form the original file.
>> >
>> > Regards,
>> > Amedeo Bonfiglio
>>
>>
>
> 2168a2169,2176
>> *
>> * Changed by Amedeo Bonfiglio
>> <amedeo.bonfiglio AT rcm.inet.it>,
>> Dec 07 th, 2009.
>> * When porting to Neutrino RTOS 6.4.1, ioctl(sctp_fd, SIOCGIFCONF) has
>> been adapted
>> * as shown in
>> *
>> http://www.qnx.com/developers/docs/6.4.0/io-pkt_en/user_guide/migrating.html#Coexistence
>> * The modifications are controlled by #ifdef NEUTRINO_RTOS, but the
>> modified code is applicable
>> * to any OS.
>> *
> 2324a2333,2339
>> #ifdef NEUTRINO_RTOS
>> if (ifrequest->ifr_addr.sa_len + IFNAMSIZ > sizeof(struct ifreq)) {
>> pos += ifrequest->ifr_addr.sa_len + IFNAMSIZ;
>> } else {
>> pos += sizeof(struct ifreq);
>> }
>> #else
> 2332a2348
>> #endif // NEUTRINO_RTOS
> 2424a2441,2447
>> #ifdef NEUTRINO_RTOS
>> if (ifrequest->ifr_addr.sa_len + IFNAMSIZ > sizeof(struct ifreq)) {
>> pos += ifrequest->ifr_addr.sa_len + IFNAMSIZ;
>> } else {
>> pos += sizeof(struct ifreq);
>> }
>> #else
> 2432a2456
>> #endif // NEUTRINO_RTOS





Archive powered by MHonArc 2.6.19+.

Top of page