monitor: Export function for printing LE addresses

This commit is contained in:
Marcel Holtmann 2013-08-23 01:05:49 -07:00
parent d268a1f072
commit 3a5c84b3d0
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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,