0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-11 03:21:53 +00:00
bird/proto/ospf
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
dbdes.c No more warnings ... 2018-09-18 14:21:11 +02:00
hello.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
iface.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
lsack.c Fininshing integrated OSPF. 2014-11-03 10:42:55 +01:00
lsalib.c OSPF: Support of address families in OSPFv3 2017-10-10 16:10:02 +02:00
lsalib.h OSPF: Update to new timers 2017-12-07 13:53:42 +01:00
lsreq.c Fininshing integrated OSPF. 2014-11-03 10:42:55 +01:00
lsupd.c Timers: Revert temporary names and remove old timer.h 2017-12-07 13:54:59 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
neighbor.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
ospf.c No more warnings ... 2018-09-18 14:21:11 +02:00
ospf.h Protocol: Introducing an enum protocol_class 2018-05-29 12:35:06 +02:00
packet.c No more warnings ... 2018-09-18 14:21:11 +02:00
progdoc Doc: renamed progdoc files Doc -> progdoc to fix collision with doc/ folder on case-insensitive filesystems 2018-06-26 17:09:12 +02:00
rt.c Nest: Removed rte_get_temp(), rte_update() now does its own copy. 2018-09-26 16:23:28 +02:00
rt.h Merge branch 'int-new' into nexthop-merged 2017-02-22 11:58:04 +01:00
topology.c OSPF: Fix crash during route removal 2018-07-19 20:48:13 +02:00
topology.h Nest: Removing separate tmpa from route propagation 2018-05-30 17:08:49 +02:00