Move NEXT_HOP attribute so that we can exclude it.
authorBenjamin Cama <benoar@dolka.fr>
Tue, 19 Jul 2011 22:49:28 +0000 (00:49 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Thu, 28 Jul 2011 12:59:52 +0000 (14:59 +0200)
commit02611e54fc55643ec109b255707ce9832e005ddf
tree20eda669637fb13d8c2776d3e53b55fad6fcbfa8
parentf2e59e98817d4959af549abccf4e798e6184f6d4
Move NEXT_HOP attribute so that we can exclude it.

We will need to do that when we will send IPv6 routes (RFC4760 says we SHOULD
NOT carry this attribute when we will send UPDATE without NLRI). So, we save
the length of all the attributes except NEXT_HOP for later memcpy().

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
bgp.c
bgp.h