mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 04:28:24 +00:00
This removes a giant `switch { }` block from lib/zclient.c and
harmonizes all zclient callback function types to be the same (some had
a subset of the args, some had a void return, now they all have
ZAPI_CALLBACK_ARGS and int return.)
Apart from getting rid of the giant switch, this is a minor security
benefit since the function pointers are now in a `const` array, so they
can't be overwritten by e.g. heap overflows for code execution anymore.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| sharp_globals.h | ||
| sharp_logpump.c | ||
| sharp_main.c | ||
| sharp_nht.c | ||
| sharp_nht.h | ||
| sharp_vty.c | ||
| sharp_vty.h | ||
| sharp_zebra.c | ||
| sharp_zebra.h | ||
| subdir.am | ||