]> git.puffer.fish Git - mirror/frr.git/commit
lib: use "union prefixconstptr" in table code
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 6 Jul 2017 12:58:49 +0000 (14:58 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Jul 2017 11:47:27 +0000 (13:47 +0200)
commit9dc716d64c1e2aa7dbd894f0eaa4c3363391941f
treef3388f18dbf1a627d8ee166a05766e66c0dbfb5f
parent1c95bad18a0256bc7f85db773a39bbc7484078de
lib: use "union prefixconstptr" in table code

This allows passing struct prefix_{ipv4,ipv6,evpn} * in addition to
struct prefix * without an extra cast (since the union uses the gcc
transparent-union extension present in all compilers that we support.)

Also applies some "const" while we're at it.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/table.c
lib/table.h