public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Byte order for baddr-to-string
@ 2007-08-30 15:11 Mats Erik Andersson
  2007-08-30 15:17 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Mats Erik Andersson @ 2007-08-30 15:11 UTC (permalink / raw)
  To: List Bluez users

Hello all,

I observe that the bluez-libs functions 

  int ba2str(const bdaddr_t *, char *);

  char * batostr(const bdaddr_t *);

deliver strings with different byte order. Is it just
me making a slip of mind regarding netorder or endianness,
or is there a deeper reason that I fail to comprehend?
I observe the same thing on i386 architecture as well
as on cris architecture.


Thanks for any pointers or corrections.

Best regards

M E Andersson

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-users] Byte order for baddr-to-string
  2007-08-30 15:11 [Bluez-users] Byte order for baddr-to-string Mats Erik Andersson
@ 2007-08-30 15:17 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-08-30 15:17 UTC (permalink / raw)
  To: mats.andersson, BlueZ users

Hi Mats,

> I observe that the bluez-libs functions 
> 
>   int ba2str(const bdaddr_t *, char *);
> 
>   char * batostr(const bdaddr_t *);
> 
> deliver strings with different byte order. Is it just
> me making a slip of mind regarding netorder or endianness,
> or is there a deeper reason that I fail to comprehend?
> I observe the same thing on i386 architecture as well
> as on cris architecture.

it is part of the specification. The user visible presentation is
different from the wire one.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-30 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 15:11 [Bluez-users] Byte order for baddr-to-string Mats Erik Andersson
2007-08-30 15:17 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox