snmpagent.c (133211) | snmpagent.c (142810) |
---|---|
1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $Begemot: bsnmp/lib/snmpagent.c,v 1.18 2004/08/06 08:46:55 brandt Exp $ | 29 * $Begemot: bsnmp/lib/snmpagent.c,v 1.19 2004/08/19 17:09:09 brandt Exp $ |
30 * 31 * SNMP Agent functions 32 */ 33#include <sys/types.h> 34#include <sys/queue.h> 35#include <stdio.h> 36#include <stdlib.h> 37#include <stddef.h> --- 296 unchanged lines hidden (view full) --- 334 snmp_debug("getnext: %s returns %u", 335 asn_oid2str(&outb->var), ret); 336 break; 337 } 338 339 /* object has no data - try next */ 340 if (++tp == tree + tree_size) 341 break; | 30 * 31 * SNMP Agent functions 32 */ 33#include <sys/types.h> 34#include <sys/queue.h> 35#include <stdio.h> 36#include <stdlib.h> 37#include <stddef.h> --- 296 unchanged lines hidden (view full) --- 334 snmp_debug("getnext: %s returns %u", 335 asn_oid2str(&outb->var), ret); 336 break; 337 } 338 339 /* object has no data - try next */ 340 if (++tp == tree + tree_size) 341 break; |
342 343 if (TR(GETNEXT)) 344 snmp_debug("getnext: no data - avancing to %s", 345 asn_oid2str(&tp->oid)); 346 |
|
342 outb->var = tp->oid; 343 } 344 345 if (ret == SNMP_ERR_NOSUCHNAME) { 346 eofMib: 347 outb->var = inb->var; 348 if (pdu->version == SNMP_V1) { 349 pdu->error_status = SNMP_ERR_NOSUCHNAME; --- 649 unchanged lines hidden --- | 347 outb->var = tp->oid; 348 } 349 350 if (ret == SNMP_ERR_NOSUCHNAME) { 351 eofMib: 352 outb->var = inb->var; 353 if (pdu->version == SNMP_V1) { 354 pdu->error_status = SNMP_ERR_NOSUCHNAME; --- 649 unchanged lines hidden --- |