mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-28 22:54:14 +08:00
monitor: Export function for printing LE addresses
This commit is contained in:
parent
d268a1f072
commit
3a5c84b3d0
@ -2155,6 +2155,11 @@ static void print_eir(const uint8_t *eir, uint8_t eir_len, bool le)
|
||||
packet_hexdump(eir, eir_len - len);
|
||||
}
|
||||
|
||||
void packet_print_addr(const void *data, bool random)
|
||||
{
|
||||
print_addr("Address", data, random ? 0x01 : 0x00);
|
||||
}
|
||||
|
||||
void packet_print_ad(const void *data, uint8_t size)
|
||||
{
|
||||
print_eir(data, size, true);
|
||||
|
@ -40,6 +40,7 @@ void packet_del_filter(unsigned long filter);
|
||||
void packet_select_index(uint16_t index);
|
||||
|
||||
void packet_hexdump(const unsigned char *buf, uint16_t len);
|
||||
void packet_print_addr(const void *data, bool random);
|
||||
void packet_print_ad(const void *data, uint8_t size);
|
||||
|
||||
void packet_control(struct timeval *tv, uint16_t index, uint16_t opcode,
|
||||
|
Loading…
Reference in New Issue
Block a user