From 5b0ec66d129a52b7a9e38bf18ec5eff7effc9742 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 9 Feb 2015 12:04:28 +0000 Subject: provide a net.inet6.ip6.ifq sysctl so people can see and fiddle with the ip6intrq. ok claudio@ --- sbin/sysctl/sysctl.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sbin/sysctl/sysctl.c') diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index df77bca0aea..cdc1fa596cf 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.208 2015/01/16 06:40:01 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.209 2015/02/09 12:04:27 dlg Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -2129,6 +2129,20 @@ sysctl_inet6(char *string, char **bufpp, int mib[], int flags, int *typep) return (-1); mib[3] = indx; *typep = lp->list[indx].ctl_type; + if (*typep == CTLTYPE_NODE) { + int tindx; + + if (*bufpp == NULL) { + listall(string, &ifqlist); + return(-1); + } + lp = &ifqlist; + if ((tindx = findname(string, "fifth", bufpp, lp)) == -1) + return (-1); + mib[4] = tindx; + *typep = lp->list[tindx].ctl_type; + return(5); + } return (4); } #endif -- cgit v1.2.3