diff options
author | harti <harti@FreeBSD.org> | 2003-07-25 06:39:46 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-25 06:39:46 +0000 |
commit | 820cd379cebe8246b5360b81e1e1442f4422bca7 (patch) | |
tree | d157554a928b4d6772cdbeda44b3bf5fece42000 /sys/netatm/uni/uniarp.c | |
parent | efb0411b26a07d0aa9382a43000505ce6cfabb78 (diff) | |
download | FreeBSD-src-820cd379cebe8246b5360b81e1e1442f4422bca7.zip FreeBSD-src-820cd379cebe8246b5360b81e1e1442f4422bca7.tar.gz |
Make the debugging variable that controls printing of UNI messages
accessible as a sysctl and move the debugging stuff out of DIAGNOSTICS.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
Diffstat (limited to 'sys/netatm/uni/uniarp.c')
-rw-r--r-- | sys/netatm/uni/uniarp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netatm/uni/uniarp.c b/sys/netatm/uni/uniarp.c index 843bc4a..721e4a9 100644 --- a/sys/netatm/uni/uniarp.c +++ b/sys/netatm/uni/uniarp.c @@ -35,13 +35,14 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> -#include <sys/types.h> #include <sys/errno.h> #include <sys/malloc.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 <netinet/in_var.h> @@ -74,7 +75,13 @@ struct uniarp *uniarp_nomaptab = NULL; struct uniarp *uniarp_pvctab = NULL; struct atm_time uniarp_timer = {0, 0}; /* Aging timer */ struct uniarp_stat uniarp_stat = {0}; + +/* + * net.harp.uni.uniarp_print + */ int uniarp_print = 0; +SYSCTL_INT(_net_harp_uni, OID_AUTO, uniarp_print, CTLFLAG_RW, + &uniarp_print, 0, "dump UNI/ARP messages"); Atm_endpoint uniarp_endpt = { NULL, |