Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166721069
D45037.id137931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1016 B
Referenced Files
None
Subscribers
None
D45037.id137931.diff
View Options
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -834,6 +834,7 @@
bool multicast = false;
NET_EPOCH_ASSERT();
+ MPASS(ch->carp_version == CARP_VERSION_CARP);
ifa = carp_find_ifa(m, af, ch->carp_vhid);
if (ifa == NULL) {
@@ -845,8 +846,7 @@
CARP_LOCK(sc);
/* verify the CARP version. */
- if (ch->carp_version != CARP_VERSION_CARP ||
- sc->sc_version != CARP_VERSION_CARP) {
+ if (sc->sc_version != CARP_VERSION_CARP) {
CARP_UNLOCK(sc);
CARPSTATS_INC(carps_badver);
@@ -955,6 +955,7 @@
struct carp_softc *sc;
NET_EPOCH_ASSERT();
+ MPASS(vh->vrrp_version == CARP_VERSION_VRRPv3);
ifa = carp_find_ifa(m, af, vh->vrrp_vrtid);
if (ifa == NULL) {
@@ -968,7 +969,7 @@
ifa_free(ifa);
/* verify the CARP version. */
- if (vh->vrrp_version != CARP_VERSION_VRRPv3 || sc->sc_version != CARP_VERSION_VRRPv3) {
+ if (sc->sc_version != CARP_VERSION_VRRPv3) {
CARP_UNLOCK(sc);
CARPSTATS_INC(carps_badver);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 16, 9:00 PM (4 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36797160
Default Alt Text
D45037.id137931.diff (1016 B)
Attached To
Mode
D45037: carp: assert that we are calling correct input function. We are.
Attached
Detach File
Event Timeline
Log In to Comment