0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00
bird/proto
Toke Høiland-Jørgensen db2d29073a lib/slab: introduce sl_allocz() function and use it in Babel
The babel protocol code was initialising objects returned from the slab
allocator by assigning to each of the struct members individually, but
wasn't touching the NODE member while doing so. This leads to warnings on
debug builds since commit:

baac700906 ("List expensive check.")

To fix this, introduce an sl_allocz() variant of the slab allocator which
will zero out the memory before returning it, and switch all the babel call
sites to use this version. The overhead for doing this should be negligible
for small objects, and in the case of babel, the largest object being
allocated was being zeroed anyway, so we can drop the memset in
babel_read_tlv().
2020-11-24 02:36:31 +01:00
..
babel lib/slab: introduce sl_allocz() function and use it in Babel 2020-11-24 02:36:31 +01:00
bfd BFD: Fix superfluous reconfiguration of sessions 2020-11-12 02:48:35 +01:00
bgp BFD: Better handling of BFD options in BGP configs 2020-11-12 04:02:38 +01:00
mrt Configuration strings are constant. 2020-04-09 15:37:14 +02:00
ospf OSPFv3: Fix intra-area-prefix-LSA origination on DR 2020-11-18 17:37:29 +01:00
perf Perf: changed route update pattern to be more like common protocols 2020-03-12 09:26:05 +01:00
pipe Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
radv Nest: Added const to ea_show just to declare that this shouldn't really change anything 2020-05-01 15:19:12 +02:00
rip BFD: Allow per-request session options 2020-11-08 15:33:22 +01:00
rpki RPKI: Add 'ignore max length' option 2020-10-11 01:00:54 +02:00
static Static: Support for multiple routes with the same network 2020-11-19 16:38:39 +01:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00