hostres_snmp.c (302408) | hostres_snmp.c (310899) |
---|---|
1/*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 23 unchanged lines hidden (view full) --- 32 * FreeBSD: src/sbin/mdconfig/mdconfig.c,v 1.33.2.1 2004/09/14 03:32:21 jmg Exp 33 * ---------------------------------------------------------------------------- 34 * "THE BEER-WARE LICENSE" (Revision 42): 35 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 36 * can do whatever you want with this stuff. If we meet some day, and you think 37 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 38 * ---------------------------------------------------------------------------- 39 * | 1/*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 23 unchanged lines hidden (view full) --- 32 * FreeBSD: src/sbin/mdconfig/mdconfig.c,v 1.33.2.1 2004/09/14 03:32:21 jmg Exp 33 * ---------------------------------------------------------------------------- 34 * "THE BEER-WARE LICENSE" (Revision 42): 35 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 36 * can do whatever you want with this stuff. If we meet some day, and you think 37 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 38 * ---------------------------------------------------------------------------- 39 * |
40 * $FreeBSD: stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c 274900 2014-11-22 23:50:18Z dim $ | 40 * $FreeBSD: stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c 310899 2016-12-31 10:28:59Z ngie $ |
41 */ 42 43/* 44 * Host Resources MIB implementation for bsnmpd. 45 */ 46 47#include <paths.h> 48#include <stdlib.h> --- 109 unchanged lines hidden (view full) --- 158 host_registration_id = or_register(&oid_host, 159 "The MIB module for Host Resource MIB (RFC 2790).", 160 hostres_module); 161 162 start_device_tbl(hostres_module); 163 start_processor_tbl(hostres_module); 164 start_network_tbl(); 165 | 41 */ 42 43/* 44 * Host Resources MIB implementation for bsnmpd. 45 */ 46 47#include <paths.h> 48#include <stdlib.h> --- 109 unchanged lines hidden (view full) --- 158 host_registration_id = or_register(&oid_host, 159 "The MIB module for Host Resource MIB (RFC 2790).", 160 hostres_module); 161 162 start_device_tbl(hostres_module); 163 start_processor_tbl(hostres_module); 164 start_network_tbl(); 165 |
166 HRDBG("done."); | 166 HRDBG("done."); |
167} 168 169/* this identifies the HOST RESOURCES mib module */ 170const struct snmp_module config = { 171 "This module implements the host resource mib (rfc 2790)", 172 hostres_init, 173 hostres_fini, 174 NULL, /* idle function, do not use it */ 175 NULL, 176 NULL, 177 hostres_start, | 167} 168 169/* this identifies the HOST RESOURCES mib module */ 170const struct snmp_module config = { 171 "This module implements the host resource mib (rfc 2790)", 172 hostres_init, 173 hostres_fini, 174 NULL, /* idle function, do not use it */ 175 NULL, 176 NULL, 177 hostres_start, |
178 NULL, /* proxy a PDU */ 179 hostres_ctree, /* see the generated hostres_tree.h */ | 178 NULL, /* proxy a PDU */ 179 hostres_ctree, /* see the generated hostres_tree.h */ |
180 hostres_CTREE_SIZE, /* see the generated hostres_tree.h */ 181 NULL 182}; 183 184/** 185 * Make an SNMP DateAndTime from a struct tm. This should be in the library. 186 */ 187int --- 21 unchanged lines hidden --- | 180 hostres_CTREE_SIZE, /* see the generated hostres_tree.h */ 181 NULL 182}; 183 184/** 185 * Make an SNMP DateAndTime from a struct tm. This should be in the library. 186 */ 187int --- 21 unchanged lines hidden --- |