From a31f413eebd9d6d351b5fe4407c1c053bfb60522 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 29 Sep 2022 17:08:50 -0400 Subject: [PATCH] Store integer range as full 64 bits --- network-hypervisor/src/vl2/rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network-hypervisor/src/vl2/rule.rs b/network-hypervisor/src/vl2/rule.rs index 3524fe204..06917fcd4 100644 --- a/network-hypervisor/src/vl2/rule.rs +++ b/network-hypervisor/src/vl2/rule.rs @@ -358,7 +358,7 @@ impl Rule { not, or, self.v.int_range.start, - self.v.int_range.start.wrapping_add(self.v.int_range.end as u64), + self.v.int_range.end, self.v.int_range.idx, self.v.int_range.format, ), @@ -458,7 +458,7 @@ impl Marshalable for Rule { match_cond::INTEGER_RANGE => { buf.append_u8(19)?; buf.append_u64(self.v.int_range.start)?; - buf.append_u64(self.v.int_range.start.wrapping_add(self.v.int_range.end as u64))?; + buf.append_u64(self.v.int_range.end)?; buf.append_u16(self.v.int_range.idx)?; buf.append_u8(self.v.int_range.format)?; }