diff options
author | harti <harti@FreeBSD.org> | 2003-07-24 14:37:01 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-24 14:37:01 +0000 |
commit | de6c6f2703549901121c8497439c951df5169ed2 (patch) | |
tree | 192a8ef0d49085e6f5fab8935c3c99648350f7ca /sys/netatm/spans/spans_proto.c | |
parent | ac6a8ca21c3affe33c3f671be2668cdf3c1ac025 (diff) | |
download | FreeBSD-src-de6c6f2703549901121c8497439c951df5169ed2.zip FreeBSD-src-de6c6f2703549901121c8497439c951df5169ed2.tar.gz |
Create a sysctl that allows to enable/disable printing of SPANS messages.
While here delete to sys/types.h includes when sys/param.h is also included.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
Diffstat (limited to 'sys/netatm/spans/spans_proto.c')
-rw-r--r-- | sys/netatm/spans/spans_proto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netatm/spans/spans_proto.c b/sys/netatm/spans/spans_proto.c index d1376c5..e46bde1 100644 --- a/sys/netatm/spans/spans_proto.c +++ b/sys/netatm/spans/spans_proto.c @@ -35,11 +35,12 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> -#include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/socketvar.h> #include <sys/syslog.h> +#include <sys/kernel.h> +#include <sys/sysctl.h> #include <net/if.h> #include <netinet/in.h> #include <netatm/port.h> @@ -183,6 +184,7 @@ struct t_atm_cause spans_cause = { { 0, 0, 0, 0 } /* diagnostics */ }; +SYSCTL_NODE(_net_harp, OID_AUTO, spans, CTLFLAG_RW, 0, "spans"); /* * Process a SPANS timeout |