From owner-svn-soc-all@FreeBSD.ORG Tue Aug 5 18:51:37 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B32A60D for ; Tue, 5 Aug 2014 18:51:37 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 489392703 for ; Tue, 5 Aug 2014 18:51:37 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id s75IpbfU030139 for ; Tue, 5 Aug 2014 18:51:37 GMT (envelope-from shonali@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id s75Ipalo029909 for svn-soc-all@FreeBSD.org; Tue, 5 Aug 2014 18:51:36 GMT (envelope-from shonali@FreeBSD.org) Date: Tue, 5 Aug 2014 18:51:36 GMT Message-Id: <201408051851.s75Ipalo029909@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to shonali@FreeBSD.org using -f From: shonali@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r271946 - soc2014/shonali/head/contrib/bsnmp/snmpd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2014 18:51:37 -0000 Author: shonali Date: Tue Aug 5 18:51:36 2014 New Revision: 271946 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271946 Log: Fix for a compile error in tree.def and added PortStatus entries in snmpd.config Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/snmpd.config soc2014/shonali/head/contrib/bsnmp/snmpd/tree.def Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/snmpd.config ============================================================================== --- soc2014/shonali/head/contrib/bsnmp/snmpd/snmpd.config Tue Aug 5 18:34:47 2014 (r271945) +++ soc2014/shonali/head/contrib/bsnmp/snmpd/snmpd.config Tue Aug 5 18:51:36 2014 (r271946) @@ -71,6 +71,8 @@ begemotSnmpdCommunityDisable = 1 # open standard SNMP ports +begemotSnmpdPortStatus.[$(host)].161.1 = 1 +begemotSnmpdPortStatus.127.0.0.1.161.1 = 1 begemotSnmpdPortStatus.0:0:0:0:0:0:0:0.161.2 = 1 begemotSnmpdPortStatus.0:0:0:0:0:0:0:1.161.2 = 1 Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/tree.def ============================================================================== --- soc2014/shonali/head/contrib/bsnmp/snmpd/tree.def Tue Aug 5 18:34:47 2014 (r271945) +++ soc2014/shonali/head/contrib/bsnmp/snmpd/tree.def Tue Aug 5 18:51:36 2014 (r271946) @@ -32,12 +32,9 @@ # #include "tc.def" -typedef InetAddressType ENUM ( - 0 unknown - 1 ipv4 - 2 ipv6 - 16 dnsi - ) + +typedef InetAddress { type binary { length "0..255"; } } +typedef InetAddressType { type enumeration { enum unknown { value 0; } enum ipv4 { value 1; } enum ipv6 { value 2; } enum ipv4z { value 3; } enum ipv6z { value 4; } enum dns { value 16; } } } typedef RowStatus ENUM ( 1 active 2 notInService