summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorchris <chris@openbsd.org>2016-06-28 17:18:24 +0000
committerchris <chris@openbsd.org>2016-06-28 17:18:24 +0000
commit4faff50f44a51e665f7e708eff244f1d4aad4a6d (patch)
tree6727561d16673ef49fd846ce3d7faef8d7d857ff /sys/netinet/in.h
parentDo not return an error in fts_open(3) if one of the paths in argv (diff)
downloadwireguard-openbsd-4faff50f44a51e665f7e708eff244f1d4aad4a6d.tar.xz
wireguard-openbsd-4faff50f44a51e665f7e708eff244f1d4aad4a6d.zip
Add sysctl for arp timers: net.inet.ip.arptimeout (expire timer for resolved
entries) and net.inet.ip.arpdown (expire timer for unresolved entries) ok mpi@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 7859ca27614..31b2a26b453 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -682,7 +682,9 @@ struct ip_mreq {
#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 }, \
@@ -724,6 +726,8 @@ struct ip_mreq {
{ "arpqueued", CTLTYPE_INT }, \
{ "mrtmfc", CTLTYPE_STRUCT }, \
{ "mrtvif", CTLTYPE_STRUCT }, \
+ { "arptimeout", CTLTYPE_INT }, \
+ { "arpdown", CTLTYPE_INT }, \
}
#define IPCTL_VARS { \
NULL, \
@@ -765,6 +769,8 @@ struct ip_mreq {
&la_hold_total, \
NULL, \
NULL, \
+ &arpt_keep, \
+ &arpt_down, \
}
#endif /* __BSD_VISIBLE */