Return-Path: Subject: Re: [Bluez-devel] pan on zaurus From: Marcel Holtmann To: Kutschenreuter Matthias Cc: "'Philip Blundell'" , "'Bluez-devel@lists.sourceforge.net'" In-Reply-To: References: Content-Type: text/plain Message-Id: <1079625649.3301.50.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu, 18 Mar 2004 17:00:49 +0100 Hi Matthias, > pand initialises the l2a-struct with "0"s, before binding. > static bdaddr_t src_addr = *BDADDR_ANY; // where BDADDR_ANY is > {0,0,0,0,0,0} > l2a.l2_bdaddr = src_addr; > if (bind(sk, (struct sockaddr *) &l2a, sizeof(l2a))) I think it is better if you use bacpy(&l2a.l2_bdaddr, BDADDR_ANY); Regards Marcel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel