diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-01-23 22:31:25 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 00:27:08 +0000 |
| commit | 64b44915925af89eecaea1001fd7340a598c0a4d (patch) | |
| tree | b89eae99fc9bb3b237120b5d3d00853b1b33806f | |
| parent | b79640e4b06b7c4e3e8a45d4029113fb8ba91a28 (diff) | |
vrrpd: remove bad priority check
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | vrrpd/vrrp_packet.c | 4 |
1 files changed, 0 insertions, 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"); |
