[PATCH 02/12] Check T_CLIST, T_ECLIST and T_PATH in val_compare()

Ondrej Zajicek santiago at crfreenet.org
Thu Oct 3 13:10:26 CEST 2013


On Mon, Sep 30, 2013 at 09:24:18PM +0300, Sergey Popovich wrote:
>   * Intdodoce list_compare() to compare clist and eclist as arrays of u32.
>     eclist stored as u64 with MSB first, so we could compare it also as u32.
> 
>   * Introduce path_compare() to compare bgppath type. Compares path length,
>     and element by element, considering AS_PATH_SET more longer.

I replaced this with simple memcmp() (in adata_same()) for val_same().
Ordering is IMHO useless for clists and paths.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20131003/a15b22fb/attachment.asc>


More information about the Bird-users mailing list