config files
Iain Hibbert
plunky at rya-online.net
Tue Mar 14 20:22:28 UTC 2006
On Tue, 14 Mar 2006, Maksim Yevmenkin wrote:
> well, not in freebsd. just like in sockaddr_in port/ip have to passed (to
> kernel) in network byte order, psm in sockaddr_l2cap has to be passed (to
> kernel) in le16 byte order.
Its a confusing issue I agree - my decision was that bdaddr is an opaque
type and I couldnt see any utility in swapping it around and getting
confused (I think Linux does this with baswap() macro), but that psm was a
value and should be represented as such.
in inet(3) I see the following comment
All Internet addresses are returned in network order (bytes ordered from
left to right). All network numbers and local address parts are returned
as machine format integer values.
which matches what I did, so I'm happy :)
iain
More information about the freebsd-bluetooth
mailing list