diff --git a/monitor/bnep.c b/monitor/bnep.c
index 1735a7a..5904367 100644
--- a/monitor/bnep.c
+++ b/monitor/bnep.c
return true;
}
+static bool bnep_src_only(struct bnep_frame *bnep_frame,
+ uint8_t indent, int hdr_len)
+{
+
+ struct l2cap_frame *frame;
+ char src_addr[20];
+
+ if (!get_macaddr(bnep_frame, src_addr))
+ return false;
+
+ frame = &bnep_frame->l2cap_frame;
+
+ if (!l2cap_frame_get_be16(frame, &proto))
+ return false;
+
+ print_field("%*csrc %s [proto 0x%04x] ", indent,
+ ' ', src_addr, proto);
+
+ return true;
+}
+
struct bnep_data {
uint8_t type;
const char *str;
{ 0x00, "General Ethernet", bnep_general },
{ 0x01, "Control", bnep_control },
{ 0x02, "Compressed Ethernet", bnep_compressed },
- { 0x03, "Compressed Ethernet SrcOnly", },
+ { 0x03, "Compressed Ethernet SrcOnly", bnep_src_only },
{ 0x04, "Compressed Ethernet DestOnly", },
{ }
};