From 64b44915925af89eecaea1001fd7340a598c0a4d Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 23 Jan 2019 22:31:25 +0000 Subject: [PATCH] vrrpd: remove bad priority check Signed-off-by: Quentin Young --- vrrpd/vrrp_packet.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vrrpd/vrrp_packet.c b/vrrpd/vrrp_packet.c index 8147da68e0..bf1197422e 100644 --- a/vrrpd/vrrp_packet.c +++ b/vrrpd/vrrp_packet.c @@ -211,10 +211,6 @@ ssize_t vrrp_parse_datagram(int family, struct msghdr *m, size_t read, /* Type check */ VRRP_PKT_VCHECK(((*pkt)->hdr.vertype & 0x0F) == 1, "Bad type %u", (*pkt)->hdr.vertype & 0x0f); - /* Priority check */ - VRRP_PKT_VCHECK((*pkt)->hdr.priority == 255 - || (*pkt)->hdr.priority == 0, - "Bad priority %u", (*pkt)->hdr.priority); /* # addresses check */ size_t ves = VRRP_PKT_SIZE(family, (*pkt)->hdr.naddr); VRRP_PKT_VCHECK(pktsize == ves, "Packet has incorrect # addresses"); -- 2.39.5