summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJolan Luff <jolan@cvs.openbsd.org>2004-05-25 02:32:08 +0000
committerJolan Luff <jolan@cvs.openbsd.org>2004-05-25 02:32:08 +0000
commit9784f6d4cb3fdf98f87e1b3b0ff352da6c6c13e4 (patch)
tree31f21a65f8602be79a3338134ea10f718f18c78b /sys
parenta8b871474c824788ea46f33b59d3041d0fb64f1b (diff)
let sc_counter wrap automatically, ok mcbride@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index e9c643e6f85..2ba69e75051 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.53 2004/05/24 18:54:47 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.54 2004/05/25 02:32:07 jolan Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -720,8 +720,6 @@ carp_prepare_ad(struct mbuf *m, struct carp_softc *sc, struct carp_header *ch)
sc->sc_counter = arc4random();
sc->sc_counter = sc->sc_counter << 32;
sc->sc_counter += arc4random();
- } else if (sc->sc_counter == 0xffffffffffffffffULL) {
- sc->sc_counter = 0;
} else
sc->sc_counter++;