Re: [B.A.T.M.A.N.] Changing vis output ready for mainline...

Andrew Lunn
2009-10-13T07:54:31Z

> "fe:fe:00:00:04:01" -> "fe:fe:00:00:05:01" [label="1.0"]
> "fe:fe:00:00:04:01" -> "fe:fe:00:00:03:01" [label="1.0"]
> "fe:fe:00:00:04:01" -> "00:ff:7c:3c:ec:e0" [label="HNA"]
> subgraph "cluster_fe:fe:00:00:04:01" {
> "fe:fe:00:00:04:01" [peripheries=2]
> "fe:fe:00:00:04:02"
> }
>
> I suggest something like:
>
> fe:fe:00:00:04:01 fe:fe:00:00:05:01 255 fe:fe:00:00:03:01 255 00:ff:7c:3c:ec:e0 HNA fe:fe:00:00:04:02 S
>
> In BNF something like
>
> <Primary MAC> <Doublets>
> <Doublets> ::= {<Doublet> }
> <Doublet> ::= <MAC> <Flag/Value>
> <Flag/Value> ::= <TQ_Value>|<HNA>|<Secondary>
> <TQ_Value> ::= uint8_t
> <HNA> ::= "HNA"
> <Secondary> ::= "S"

A small refinement:
<Doublets> ::= {<Doublet> ","}

Adding the comma makes the format more future proof. If in the future
we need to add more doublets, triplets, etc we can do it without
breaking backwards compatibility. If batctl finds something it does
not understand, it skips to the next , separator and keeps going.

Andrew