socsvn commit: r272454 - soc2014/shonali/head/contrib/bsnmp/snmpd

shonali at FreeBSD.org shonali at FreeBSD.org
Fri Aug 15 06:02:36 UTC 2014


Author: shonali
Date: Fri Aug 15 06:02:34 2014
New Revision: 272454
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272454

Log:
  Adding case SNMP_SYNTAX_IP6ADDRESS and ip6_XX function calls
  

Modified:
  soc2014/shonali/head/contrib/bsnmp/snmpd/action.c

Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/action.c
==============================================================================
--- soc2014/shonali/head/contrib/bsnmp/snmpd/action.c	Fri Aug 15 04:35:34 2014	(r272453)
+++ soc2014/shonali/head/contrib/bsnmp/snmpd/action.c	Fri Aug 15 06:02:34 2014	(r272454)
@@ -658,6 +658,8 @@
 			break;
 		  case LEAF_begemotSnmpdTrap1Addr:
 			return (ip_get(value, snmpd.trap1addr));
+		  case LEAF_begemotSnmpdTrap1Addr6:
+			return (ip6_get(value, snmpd.trap1addr6));
 		  case LEAF_begemotSnmpdVersionEnable:
 			value->v.uint32 = snmpd.version_enable;
 			break;
@@ -699,6 +701,9 @@
 
 		  case LEAF_begemotSnmpdTrap1Addr:
 			return (ip_save(value, ctx, snmpd.trap1addr));
+		  
+		  case LEAF_begemotSnmpdTrap1Addr6:
+			return (ip6_save(value, ctx, snmpd.trap1addr6));
 
 		  case LEAF_begemotSnmpdVersionEnable:
 			if (community != COMM_INITIALIZE)
@@ -727,6 +732,9 @@
 		  case LEAF_begemotSnmpdTrap1Addr:
 			ip_rollback(ctx, snmpd.trap1addr);
 			return (SNMP_ERR_NOERROR);
+		  case LEAF_begemotSnmpdTrap1Addr6:
+			ip6_rollback(ctx, snmpd.trap1addr6);
+			return (SNMP_ERR_NOERROR);
 		  case LEAF_begemotSnmpdVersionEnable:
 			snmpd.version_enable = ctx->scratch->int1;
 			return (SNMP_ERR_NOERROR);
@@ -743,6 +751,9 @@
 		  case LEAF_begemotSnmpdTrap1Addr:
 			ip_commit(ctx);
 			return (SNMP_ERR_NOERROR);
+		  case LEAF_begemotSnmpdTrap1Addr6:
+			ip6_commit(ctx);
+			return (SNMP_ERR_NOERROR);
 		  case LEAF_begemotSnmpdVersionEnable:
 			return (SNMP_ERR_NOERROR);
 		}


More information about the svn-soc-all mailing list