Repository : ssh://git@open-mesh.org/batctl
On branch : master
---------------------------------------------------------------
commit 511de65d7bcd41cfbdb60b518155589a820bd230
Author: Sven Eckelmann <sven.eckelmann(a)open-mesh.com>
Date: Tue Apr 12 10:51:27 2016 +0200
batctl: tcpdump - Add support for bla loopdetect
Complex bridge loop detection was added to batman-adv. It uses so called
BLA LOOPDETECT ARP packets to find out if there is a loop. The bla2 claim
function of tcpdump extracts the same information which also
batadv_bla_send_claim uses for its debug output.
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner(a)neomailbox.ch>
---------------------------------------------------------------
511de65d7bcd41cfbdb60b518155589a820bd230
tcpdump.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tcpdump.c b/tcpdump.c
index a30e34b..e969d7d 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -366,6 +366,12 @@ static int dump_bla2_claim(struct ether_header *eth_hdr,
printf("dst backbone %s\n",
get_name_by_macaddr((struct ether_addr *)eth_hdr->ether_dhost, read_opt));
break;
+ case BATADV_CLAIM_TYPE_LOOPDETECT:
+ printf("BLA LOOPDETECT, src backbone %s, ",
+ get_name_by_macaddr((struct ether_addr *)eth_hdr->ether_shost, read_opt));
+ printf("dst backbone %s\n",
+ get_name_by_macaddr((struct ether_addr *)eth_hdr->ether_dhost, read_opt));
+ break;
default:
printf("BLA UNKNOWN, type %hhu\n", bla_dst->type);
break;