Deleted Added
full compact
1a2,4
> .\" Copyright (c) 2004-2005
> .\" Hartmut Brandt.
> .\" All rights reserved.
29c32
< .\" $Begemot: bsnmp/lib/asn1.3,v 1.6 2005/02/25 11:55:57 brandt_h Exp $
---
> .\" $Begemot: bsnmp/lib/asn1.3,v 1.9 2005/10/04 08:46:49 brandt_h Exp $
31c34
< .Dd August 15, 2002
---
> .Dd October 4, 2005
145,146c148,149
< It supports only the restricted form of ASN.1 as required by SNMP. There
< are two basic structures used throughout the library:
---
> It supports only the restricted form of ASN.1 as required by SNMP.
> There are two basic structures used throughout the library:
179c182,183
< This structure is used to encode and decode ASN.1. It describes the output
---
> This structure is used to encode and decode ASN.1.
> It describes the output
183,184c187,188
< holds the number of remaining free octets in the buffer. The first free byte
< is pointed to by
---
> holds the number of remaining free octets in the buffer.
> The first free byte is pointed to by
188,189c192,193
< holds the number of remaining bytes to decode. The next byte to decode is pointed
< to by
---
> holds the number of remaining bytes to decode.
> The next byte to decode is pointed to by
219,220c223,224
< reads the next header from the input octet stream. It returns the tag
< in the variable pointed to by
---
> reads the next header from the input octet stream.
> It returns the tag in the variable pointed to by
225,226c229,230
< (this is restricted to a unsigned 32-bit value). All errors in this function
< are fatal and stop processing.
---
> (this is restricted to a unsigned 32-bit value).
> All errors in this function are fatal and stop processing.
232c236
< is the tag to write and is restricted to one byte tags (i.e. tags
---
> is the tag to write and is restricted to one byte tags (i.e., tags
249c253,254
< to the begin of this length field. This pointer must then be fed into
---
> to the begin of this length field.
> This pointer must then be fed into
251c256,257
< directly after writing the value to the buffer. The function will compute the
---
> directly after writing the value to the buffer.
> The function will compute the
257c263,264
< is used to decode a signed integer value (32-bit). It assumes, that the
---
> is used to decode a signed integer value (32-bit).
> It assumes, that the
266,267c273,274
< decodes a complete 32-bit signed integer including the header. If the
< tag is wrong
---
> decodes a complete 32-bit signed integer including the header.
> If the tag is wrong
276,277c283,284
< decodes the value field of an ASN.1 octet string. The length obtained from the
< header must be fed into the
---
> decodes the value field of an ASN.1 octet string.
> The length obtained from the header must be fed into the
281c288,289
< must point to a buffer to receive the octet string. On entry to the function
---
> must point to a buffer to receive the octet string.
> On entry to the function
283c291,292
< must point to the size of the buffer. On exit
---
> must point to the size of the buffer.
> On exit
294c303,304
< must point to the size of the buffer. On exit of the function
---
> must point to the size of the buffer.
> On exit of the function
319c329,330
< is used to encode an SNMPv2 exception. The exception type is
---
> is used to encode an SNMPv2 exception.
> The exception type is
372,373c383,384
< must be the value length from the header. The resulting value is
< stored into the variable pointed to by
---
> must be the value length from the header.
> The resulting value is stored into the variable pointed to by
395,396c406,407
< splits a part out from an OID. It takes all the subids from the OID
< pointed to by
---
> splits a part out from an OID.
> It takes all the subids from the OID pointed to by
400c411
< (the first subid beeing subid 0) up to, but not including, subid
---
> (the first subid being subid 0) up to, but not including, subid
416,417c427,428
< given that the resulting OID is not too long. If the maximum length is exceeded
< the result is undefined.
---
> given that the resulting OID is not too long.
> If the maximum length is exceeded the result is undefined.
445c456,457
< must be large enough to hold the result. The constant
---
> must be large enough to hold the result.
> The constant
455c467
< When an error occures in any of the function the function pointed to
---
> When an error occurs in any of the function the function pointed to
472c484
< .Xr snmpd 1 ,
---
> .Xr bsnmpd 1 ,