-.\" $OpenBSD: sysctl.3,v 1.263 2016/06/18 22:19:13 jmc Exp $
+.\" $OpenBSD: sysctl.3,v 1.264 2016/06/28 17:18:24 chris Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 18 2016 $
+.Dd $Mdocdate: June 28 2016 $
.Dt SYSCTL 3
.Os
.Sh NAME
.It icmp Ta redirtimeout Ta integer Ta yes
.It icmp Ta stats Ta structure Ta no
.It icmp Ta tstamprepl Ta integer Ta yes
+.It ip Ta arpdown Ta integer Ta yes
+.It ip Ta arptimeout Ta integer Ta yes
.It ip Ta directed-broadcast Ta integer Ta yes
.It ip Ta encdebug Ta integer Ta yes
.It ip Ta forwarding Ta integer Ta yes
.It Li icmp.tstamprepl
If set to 1, reply to ICMP timestamp requests.
If set to 0, ignore timestamp requests.
+.It Li ip.arpdown
+Lifetime of unresolved ARP entries, in seconds.
+.It Li ip.arptimeout
+Lifetime of resolved ARP entries, in seconds.
.It Li ip.directed-broadcast
Returns 1 if directed broadcast behavior is enabled for the host.
.It Li ip.encdebug
-/* $OpenBSD: if_ether.c,v 1.215 2016/06/14 09:44:41 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.216 2016/06/28 17:18:24 chris Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
#define LA_HOLD_TOTAL 100
/* timer values */
-int arpt_prune = (5*60*1); /* walk list every 5 minutes */
-int arpt_keep = (20*60); /* once resolved, good for 20 more minutes */
+int arpt_prune = (5 * 60); /* walk list every 5 minutes */
+int arpt_keep = (20 * 60); /* once resolved, cache for 20 minutes */
int arpt_down = 20; /* once declared down, don't send for 20 secs */
void arptfree(struct rtentry *);
-/* $OpenBSD: if_ether.h,v 1.71 2016/05/18 20:15:14 mpi Exp $ */
+/* $OpenBSD: if_ether.h,v 1.72 2016/06/28 17:18:24 chris Exp $ */
/* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */
/*
};
+extern int arpt_keep; /* arp resolved cache expire */
+extern int arpt_down; /* arp down cache expire */
+
extern u_int8_t etherbroadcastaddr[ETHER_ADDR_LEN];
extern u_int8_t etheranyaddr[ETHER_ADDR_LEN];
extern u_int8_t ether_ipmulticast_min[ETHER_ADDR_LEN];
-/* $OpenBSD: in.h,v 1.116 2016/06/15 19:39:34 gerhard Exp $ */
+/* $OpenBSD: in.h,v 1.117 2016/06/28 17:18:24 chris Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
#define IPCTL_ARPQUEUED 36
#define IPCTL_MRTMFC 37
#define IPCTL_MRTVIF 38
-#define IPCTL_MAXID 39
+#define IPCTL_ARPTIMEOUT 39
+#define IPCTL_ARPDOWN 40
+#define IPCTL_MAXID 41
#define IPCTL_NAMES { \
{ 0, 0 }, \
{ "arpqueued", CTLTYPE_INT }, \
{ "mrtmfc", CTLTYPE_STRUCT }, \
{ "mrtvif", CTLTYPE_STRUCT }, \
+ { "arptimeout", CTLTYPE_INT }, \
+ { "arpdown", CTLTYPE_INT }, \
}
#define IPCTL_VARS { \
NULL, \
&la_hold_total, \
NULL, \
NULL, \
+ &arpt_keep, \
+ &arpt_down, \
}
#endif /* __BSD_VISIBLE */