Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
#else
vr = FuzzingVr;
#endif
-
+
+#define FUZZING_ZAPI 1
+
+#ifndef FUZZING_ZAPI
/* set input size */
vr->v4->fuzzing_input_size = size;
/* some info to fake msghdr with */
t.arg = vr->v4;
vrrp_read(&t);
+#else
+ zclient_read_fuzz(zclient, data, size);
+#endif
return 0;
}
#define VRRP_LOGPFX "[ZEBRA] "
+#ifndef FUZZING
static struct zclient *zclient;
+#else
+struct zclient *zclient;
+#endif
static void vrrp_zebra_debug_if_state(struct interface *ifp, vrf_id_t vrf_id,
const char *func)
#include "lib/if.h"
+#ifdef FUZZING
+#include "lib/zclient.h"
+extern struct zclient *zclient;
+#endif
+
extern void vrrp_zebra_init(void);
extern void vrrp_zebra_radv_set(struct vrrp_router *r, bool enable);
extern void vrrp_zclient_send_interface_protodown(struct interface *ifp,