]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Change the mechanism for comparing route ID's.
authorKen Williams <kenneth.j.williams@intel.com>
Tue, 15 Apr 2014 02:23:11 +0000 (02:23 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 22 Apr 2014 19:17:26 +0000 (21:17 +0200)
commit24c84dbe806084552d7bb14b9f1d00514a048b9d
treecb53212866638b8aa559e573aa320f027d7ed8b7
parent4becea724ccd87e88f8454622ae227308b5fa3ce
zebra: Change the mechanism for comparing route ID's.

The current format uses subtraction of two ints. Unfortunately, the
subtraction method does not work for all combinations of numbers.
For example, the with numbers represented by 10.x.x.x and 192.x.x.x,
10.x.x.x - 192.x.x.x will yield a very large positive number indicating
that 10.x.x.x is larger.

Signed-off-by: Ken Williams <kenneth.j.williams@intel.com>
Acked-by: Feng Lu <lu.feng@6wind.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/router-id.c