]> git.ipfire.org Git - thirdparty/bird.git/commit
Babel: Implement IPv6 prefix compression on outgoing updates
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 9 Jun 2017 11:00:20 +0000 (13:00 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 9 Jun 2017 11:00:20 +0000 (13:00 +0200)
commitb3c6273efaa15976cc1290f00d5abde4991e184e
treedffce8bd491c0a535801077a854e6573d14f9d06
parent300bd0eb85d14523ea7f0a7a3a4d92184f3c4fb3
Babel: Implement IPv6 prefix compression on outgoing updates

Previously, the Babel protocol would never use prefix compression on outgoing
updates (but would parse it on incoming ones). This adds compression of IPv6
addresses of outgoing updates.

The compression only works to the extent that the FIB is walked in lexicographic
order; i.e. a prefix is only compressed if it shares bytes with the previous
prefix in the same packet.

Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for the patch.
proto/babel/packets.c