From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amir Vadai Subject: Re: sdp and port 0 Date: Tue, 25 May 2010 13:08:46 +0300 Message-ID: <4BFBA1AE.8090909@mellanox.co.il> References: <1274178031.6513.22.camel@spike.ugent.be> <4BFB8B8A.6080205@mellanox.co.il> <1274780656.3097.16.camel@spike.ugent.be> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1274780656.3097.16.camel-qUgQvq5LSkOu2fxVTW3+XQ@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Stijn De Weirdt Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org Stijn, If I am not mistaken It should work on 1.5.1. I tested it here on latest 1.5.2 and it works. - Amir On 05/25/2010 12:44 PM, Stijn De Weirdt wrote: > hello amir, > > >> Listening to port 0 is supported and should work. >> Which OFED version do you use (issue ofed_info to know)? >> >> > OFED 1.5.1 on rhel5.3 clone. (so libsdp 1.1.100-0.1.g920ea31). i tried > to compile the ost recent version of libsdp, but i couldn't build it > separately, and i haen't tried any 1.5.2 prereleases > > >> Does it work for you on a simple test application that only listen on a socket? >> >> > i'll try that asap > > > thanks a lot, > > stijn > > >> - Amir >> >> >> On 05/18/2010 01:20 PM, Stijn De Weirdt wrote: >> >>> hi all, >>> >>> (i'm not on the list, please keep me in cc) >>> >>> i am trying SDP with some executable (i don't have the source), but i'm >>> getting errors with the bind step (output from strace): >>> >>> bind(20, {sa_family=AF_INET, sin_port=htons(0), >>> sin_addr=inet_addr("1.2.3.4")}, 16) = -1 EADDRINUSE (Address already in >>> use) >>> >>> is it possible that a bind to port 0 (ie ask system for free port) is >>> not supported with libsdp? >>> >>> using 'both' as addressfamily in the configfile instead of 'sdp' works >>> but the tcp is used. >>> i also tried to add a portrange to avoid port 0 with sdp (ie tcp for >>> port 0, sdp for the rest), but this doesn't work either (which is not >>> that surprising). >>> >>> >>> thanks a lot, >>> >>> stijn >>> >>> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html