summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.h
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-07 23:38:49 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-07 23:38:49 +0000
commitf79d6110d197c3e4858e283591f7031205d91a53 (patch)
tree85f6bed840cb244bff35c8fc6893a6b9efdcc4b5 /sys/netinet/ip_carp.h
parent19f70c3ee0dbb8ec50dfe43f7335ea2e1804f8a7 (diff)
Check to make sure that the packet was received on a carp-enabled interface.
Pointed out by Marco Pfatschbacher, ok mickey@
Diffstat (limited to 'sys/netinet/ip_carp.h')
-rw-r--r--sys/netinet/ip_carp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.h b/sys/netinet/ip_carp.h
index d37176cc860..0e2bc6a974c 100644
--- a/sys/netinet/ip_carp.h
+++ b/sys/netinet/ip_carp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.h,v 1.2 2003/10/31 09:00:32 mcbride Exp $ */
+/* $OpenBSD: ip_carp.h,v 1.3 2003/11/07 23:38:48 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -65,6 +65,7 @@ struct carp_header {
struct carpstats {
u_long carps_ipackets; /* total input packets, IPv4 */
u_long carps_ipackets6; /* total input packets, IPv6 */
+ u_long carps_badif; /* wrong interface */
u_long carps_badttl; /* TTL is not CARP_DFLTTL */
u_long carps_hdrops; /* packets shorter than header */
u_long carps_badsum; /* bad checksum */