From f79d6110d197c3e4858e283591f7031205d91a53 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Fri, 7 Nov 2003 23:38:49 +0000 Subject: Check to make sure that the packet was received on a carp-enabled interface. Pointed out by Marco Pfatschbacher, ok mickey@ --- sys/netinet/ip_carp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netinet/ip_carp.h') 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 */ -- cgit v1.2.3