0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00
bird/proto/rpki
Jan Maria Matejka 54ac17dc13 Nest: Removed rte_get_temp(), rte_update() now does its own copy.
This changes behaviour of rte_update() and rte_update2().

Formerly, the caller of rte_update2() took care of caching rta and
allocating rte; then rte_update2() freed the structures if it didn't use them.

Now rte_update2() does the permanent/global copies of rte+rta itself.
Allocation of rte+rta passed to rte_update2() is considered temporary
and the caller is also responsible to free these structures properly.
This is true for any kind of allocation: rte_update2() will always
allocate its own copy of the data passed (either really or just by
raising usecount in rta cache).

It is now possible (and in many protocols now used) to allocate rte+rta
on stack and pass them to rte_update(). It will deal with them correctly.
2018-09-26 16:23:28 +02:00
..
config.Y Config: Dropping CF_ADDTO. 2018-06-26 14:29:03 +02:00
Doc RPKI protocol with one cache server per protocol 2016-12-07 09:35:24 +01:00
Makefile Minor cleanups 2016-12-13 20:18:11 +01:00
packets.c RPKI: Update to new timers 2017-12-07 13:52:21 +01:00
packets.h RPKI: fixed some of the extended warnings 2016-12-07 15:35:35 +01:00
rpki.c Nest: Removed rte_get_temp(), rte_update() now does its own copy. 2018-09-26 16:23:28 +02:00
rpki.h RPKI: Update to new timers 2017-12-07 13:52:21 +01:00
ssh_transport.c Use non-fatal asserts even for regular build 2018-01-10 16:17:37 +01:00
tcp_transport.c Use non-fatal asserts even for regular build 2018-01-10 16:17:37 +01:00
transport.c RPKI protocol with one cache server per protocol 2016-12-07 09:35:24 +01:00
transport.h RPKI protocol with one cache server per protocol 2016-12-07 09:35:24 +01:00