summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-11-15 15:26:35 +0000
committerharti <harti@FreeBSD.org>2003-11-15 15:26:35 +0000
commit91fb8e3f9c1a952bb775f1bb31ea6559b00513de (patch)
tree201c2a255c93bc25015b4e71f409755772c4c70e /usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
parent893ed3a2447f87376575889b23f244a2d8f65be6 (diff)
downloadFreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.zip
FreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.tar.gz
Replace all uses of the old netgraph constants NG_*LEN by the new
constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy.
Diffstat (limited to 'usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.314
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3 b/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
index fdd55fa..af9b6c8 100644
--- a/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
+++ b/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 7, 2003
+.Dd November 14, 2003
.Dt snmp_netgraph 3
.Os
.Sh NAME
@@ -289,8 +289,8 @@ retrieves the name of the node with id
and writes it to the buffer pointed to by
.Fa name .
This buffer should be at least
-.Li NG_NODELEN
-+ 1 long. The function returns the node id or 0 if the
+.Li NG_NODESIZ
+bytes long. The function returns the node id or 0 if the
node is not found
.Pp
The function
@@ -300,8 +300,8 @@ retrieves the name of the node with id
and writes it to the buffer pointed to by
.Fa type .
This buffer should be at least
-.Li NG_TYPELEN
-+ 1 long. The function returns the node id or 0 if the
+.Li NG_TYPESIZ
+bytes long. The function returns the node id or 0 if the
node is not found.
.Pp
The function
@@ -313,8 +313,8 @@ on the node with
to the buffer pointed to by
.Fa peer_hook .
The buffer should be at least
-.Li NG_HOOKLEN
-+ 1 long. The function returns 0 if the node and the hook is found, -1
+.Li NG_HOOKSIZ
+bytes long. The function returns 0 if the node and the hook is found, -1
otherwise. The function skips intermediate tee nodes (see
.Xr ng_tee 4 ).
.Pp
OpenPOWER on IntegriCloud