snmp_atm.c (133488) | snmp_atm.c (146532) |
---|---|
1/* 2 * Copyright (c) 2001-2002 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * Copyright (c) 2003-2004 6 * Hartmut Brandt. 7 * All rights reserved. 8 * --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 2001-2002 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * Copyright (c) 2003-2004 6 * Hartmut Brandt. 7 * All rights reserved. 8 * --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $Begemot: libunimsg/snmp_atm/snmp_atm.c,v 1.2 2004/08/06 17:30:40 brandt Exp $ | 32 * $Begemot: libunimsg/snmp_atm/snmp_atm.c,v 1.3 2005/05/23 11:46:46 brandt_h Exp $ |
33 * 34 * SNMP module for ATM hardware interfaces. 35 */ 36 37#include "atm.h" 38#include "atm_tree.h" 39#include "atm_oid.h" 40 --- 12 unchanged lines hidden (view full) --- 53 54/* list of all (known) ATM interfaces */ 55struct atmif_list atmif_list = TAILQ_HEAD_INITIALIZER(atmif_list); 56 57/* whether we are started or not */ 58static int started; 59 60/* last time table was changed */ | 33 * 34 * SNMP module for ATM hardware interfaces. 35 */ 36 37#include "atm.h" 38#include "atm_tree.h" 39#include "atm_oid.h" 40 --- 12 unchanged lines hidden (view full) --- 53 54/* list of all (known) ATM interfaces */ 55struct atmif_list atmif_list = TAILQ_HEAD_INITIALIZER(atmif_list); 56 57/* whether we are started or not */ 58static int started; 59 60/* last time table was changed */ |
61static uint32_t last_change; | 61static uint64_t last_change; |
62 63/* for the registration */ 64static const struct asn_oid oid_begemotAtm = OIDX_begemotAtm; 65 66/* the registration */ 67static u_int reg_atm; 68 69/* --- 196 unchanged lines hidden (view full) --- 266 if ((aif = malloc(sizeof(*aif))) == NULL) { 267 syslog(LOG_ERR, "new atmif: %m"); 268 return; 269 } 270 memset(aif, 0, sizeof(*aif)); 271 272 aif->pub.ifp = ifp; 273 aif->index = ifp->index; | 62 63/* for the registration */ 64static const struct asn_oid oid_begemotAtm = OIDX_begemotAtm; 65 66/* the registration */ 67static u_int reg_atm; 68 69/* --- 196 unchanged lines hidden (view full) --- 266 if ((aif = malloc(sizeof(*aif))) == NULL) { 267 syslog(LOG_ERR, "new atmif: %m"); 268 return; 269 } 270 memset(aif, 0, sizeof(*aif)); 271 272 aif->pub.ifp = ifp; 273 aif->index = ifp->index; |
274 TAILQ_INIT(&aif->notify); |
|
274 275 if (atmif_sys_attach_if(aif)) { 276 free(aif); 277 return; 278 } 279 280 aif->ifpreg = mibif_notify(ifp, module, atmif_notify, aif); 281 --- 341 unchanged lines hidden --- | 275 276 if (atmif_sys_attach_if(aif)) { 277 free(aif); 278 return; 279 } 280 281 aif->ifpreg = mibif_notify(ifp, module, atmif_notify, aif); 282 --- 341 unchanged lines hidden --- |