diff options
author | David Lamparter <equinox@diac24.net> | 2019-06-21 08:33:17 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-06-21 08:54:25 +0200 |
commit | 7c136b081ed1ac70e1e04c26f36b977f01c55934 (patch) | |
tree | 87abaabe432f2d89eba0e27823b623010c211a63 /vrrpd/vrrp.c | |
parent | lib: use MTYPE_STATIC (diff) | |
download | frr-7c136b081ed1ac70e1e04c26f36b977f01c55934.tar.xz frr-7c136b081ed1ac70e1e04c26f36b977f01c55934.zip |
vrrpd: use MTYPE_STATIC
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'vrrpd/vrrp.c')
-rw-r--r-- | vrrpd/vrrp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index 3d535cbfb..5213b27d3 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -34,13 +34,15 @@ #include "vrrp.h" #include "vrrp_arp.h" #include "vrrp_debug.h" -#include "vrrp_memory.h" #include "vrrp_ndisc.h" #include "vrrp_packet.h" #include "vrrp_zebra.h" #define VRRP_LOGPFX "[CORE] " +DEFINE_MTYPE_STATIC(VRRPD, VRRP_IP, "VRRP IP address") +DEFINE_MTYPE_STATIC(VRRPD, VRRP_RTR, "VRRP Router") + /* statics */ struct hash *vrrp_vrouters_hash; bool vrrp_autoconfig_is_on; @@ -768,7 +770,7 @@ static void vrrp_send_advertisement(struct vrrp_router *r) ssize_t sent = sendto(r->sock_tx, pkt, (size_t)pktsz, 0, &dest.sa, sockunion_sizeof(&dest)); - XFREE(MTYPE_VRRP_PKT, pkt); + vrrp_pkt_free(pkt); if (sent < 0) { zlog_warn(VRRP_LOGPFX VRRP_LOGPFX_VRID VRRP_LOGPFX_FAM |