/** * Sets the IP address of the originator system of this SNMPv1 trap. * The default value is 0.0.0.0, which should be only overriden in special * cases, for example when forwarding SNMPv1 traps through a SNMP proxy. * @param agentAddress * a <code>IpAddress</code> instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setAgentAddress(org.snmp4j.smi.IpAddress agentAddress) { checkV1TRAP(); checkNull(agentAddress); this.agentAddress = agentAddress; }
/** * Sets the IP address of the originator system of this SNMPv1 trap. * The default value is 0.0.0.0, which should be only overriden in special * cases, for example when forwarding SNMPv1 traps through a SNMP proxy. * @param agentAddress * a {@code IpAddress} instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setAgentAddress(org.snmp4j.smi.IpAddress agentAddress) { checkV1TRAP(); checkNull(agentAddress); this.agentAddress = agentAddress; }
/** * Sets the IP address of the originator system of this SNMPv1 trap. * The default value is 0.0.0.0, which should be only overriden in special * cases, for example when forwarding SNMPv1 traps through a SNMP proxy. * @param agentAddress * a {@code IpAddress} instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setAgentAddress(org.snmp4j.smi.IpAddress agentAddress) { checkV1TRAP(); checkNull(agentAddress); this.agentAddress = agentAddress; }
/** * Sets the "enterprise" OID of the SNMPv1 trap. The enterprise OID could be * any OID although the name could lead to the assumption that the * enterprise OID has to be an OID under the * iso(1).org(3).dod(6).internet(1).private(4).enterprises(1) node, but that's * not true. * * @param enterprise * an OID instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setEnterprise(org.snmp4j.smi.OID enterprise) { checkV1TRAP(); checkNull(enterprise); this.enterprise = (OID) enterprise.clone(); }
/** * Sets the "enterprise" OID of the SNMPv1 trap. The enterprise OID could be * any OID although the name could lead to the assumption that the * enterprise OID has to be an OID under the * iso(1).org(3).dod(6).internet(1).private(4).enterprises(1) node, but that's * not true. * * @param enterprise * an OID instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setEnterprise(org.snmp4j.smi.OID enterprise) { checkV1TRAP(); checkNull(enterprise); this.enterprise = (OID) enterprise.clone(); }
/** * Sets the "enterprise" OID of the SNMPv1 trap. The enterprise OID could be * any OID although the name could lead to the assumption that the * enterprise OID has to be an OID under the * iso(1).org(3).dod(6).internet(1).private(4).enterprises(1) node, but that's * not true. * * @param enterprise * an OID instance. * @throws UnsupportedOperationException if the type of this PDU is not * {@link PDU#V1TRAP}. */ public void setEnterprise(org.snmp4j.smi.OID enterprise) { checkV1TRAP(); checkNull(enterprise); this.enterprise = (OID) enterprise.clone(); }