Ondrej Zajicek <santiago@crfreenet.org> writes:
On Sun, May 01, 2016 at 03:32:58PM +0200, Toke Høiland-Jørgensen wrote:
Ondrej Zajicek <santiago@crfreenet.org> writes:
- in some cases (e.g. babel_handle_route_request()), check for plen == 0 or check if prefix is IPA_NONE is used where check for AE 0 should be used instead. Note that these are two different cases - there is the default route ::/0 (with AE 2), which is a regular route, and there is 'wildcard' AE 0, which represent all routes.
This was actually deliberate on my part: I have considered the different AEs as solely a matter of encoding on the wire, and not carrying any significance as to the semantics of the prefix. I.e. and update with AE 0 and no prefix and one with AE 2 encoding ::/0 are identical in my reading.
There is an implied semantics of address family:
The address family of an address is either IPv4 or IPv6; it is undefined for AE 0, IPv4 for AE 1, and IPv6 for AE 2 and 3.
Obviously, there is a difference between AE 1 encoding 0.0.0.0/0 and AE 2 encoding ::/0, therefore AE 0 cannot be identical to both of them.
Now that you mention it, I do remember wondering about that... Makes sense :) -Toke