]> git.puffer.fish Git - matthieu/frr.git/commit
lib: make IPv6 prefix parser slightly more strict
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 19 Jul 2012 14:11:50 +0000 (16:11 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 19 Jul 2012 14:15:50 +0000 (16:15 +0200)
commitaa5cf24b9de96245f2166ef1c4e9612890ced1b3
treefc8a8895286c635764e2d409b7ab6567a5b9ee6f
parentee1ac2d52a6656e589ca2fb4feb3ec5fd366ecb7
lib: make IPv6 prefix parser slightly more strict

This makes it possible to have both "show babel route A.B.C.D/M"
and "show babel route X:X::X:X/M" commands at the same time without
the parser complaining about ambiguity.

* lib/command.c: only accept STATE_DOT after : was seen.

Reported-by: Juliusz Chroboczek <jch@pps.jussieu.fr>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command.c