Complete the swap of carp(4) log levels and document the change.
MFC after: 3 days
This commit is contained in:
parent
bcd694ce76
commit
acc0fee071
@ -25,7 +25,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd June 6, 2006
|
||||
.Dd January 5, 2010
|
||||
.Dt CARP 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -118,12 +118,12 @@ See also the first example.
|
||||
Disabled by default.
|
||||
.It Va net.inet.carp.log
|
||||
Value of 0 disables any logging.
|
||||
Value of 1 enables logging of bad
|
||||
.Nm
|
||||
packets.
|
||||
Values above 1 enable logging state changes of
|
||||
Value of 1 enables logging state changes of
|
||||
.Nm
|
||||
interfaces.
|
||||
Values above 1 enable logging of bad
|
||||
.Nm
|
||||
packets.
|
||||
Default value is 1.
|
||||
.It Va net.inet.carp.arpbalance
|
||||
Balance local traffic using ARP (see below).
|
||||
|
@ -560,7 +560,7 @@ carp_input(struct mbuf *m, int hlen)
|
||||
/* verify that the IP TTL is 255. */
|
||||
if (ip->ip_ttl != CARP_DFLTTL) {
|
||||
CARPSTATS_INC(carps_badttl);
|
||||
CARP_LOG("carp_input: received ttl %d != 255i on %s\n",
|
||||
CARP_DEBUG("carp_input: received ttl %d != 255 on %s\n",
|
||||
ip->ip_ttl,
|
||||
m->m_pkthdr.rcvif->if_xname);
|
||||
m_freem(m);
|
||||
@ -739,7 +739,7 @@ carp_input_c(struct mbuf *m, struct carp_header *ch, sa_family_t af)
|
||||
CARPSTATS_INC(carps_badauth);
|
||||
SC2IFP(sc)->if_ierrors++;
|
||||
CARP_UNLOCK(ifp->if_carp);
|
||||
CARP_LOG("%s: incorrect hash\n", SC2IFP(sc)->if_xname);
|
||||
CARP_DEBUG("%s: incorrect hash\n", SC2IFP(sc)->if_xname);
|
||||
m_freem(m);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user