FreeBSD/usr.sbin/bluetooth/btpand/btpand.h
/*
 * Bluetooth addresses are stored the other way around than
 * Ethernet addresses even though they are of the same family
 */
Bluetooth addresses are stored the other way around than
Ethernet addresses even though they are of the same family
Bluetooth addresses are stored the other way around than Ethernet addresses even though they are of the same family
static inline void
b2eaddr(void *dst, bdaddr_t *src)
{
	uint8_t *d = dst;
	int i;
	for (i = 0; i < ETHER_ADDR_LEN; i++)
		d[i] = src->b[ETHER_ADDR_LEN - i - 1];
}
static inline void b2eaddr ( void * dst , bdaddr_t * src ) { uint8_t * d = dst ; int i ; for ( i = 0 ; i < ETHER_ADDR_LEN ; i ++ ) d [ i ] = src -> b [ ETHER_ADDR_LEN - i - 1 ] ; }
Bluetooth addresses are stored the other way around than
 Ethernet addresses even though they are of the same family
Bluetooth addresses are stored the other way around than Ethernet addresses even though they are of the same family