case SnmpAgentService.SNMPV1:
if (v1TrapPdu == null)
v1TrapPdu = this.trapFactory.generateV1Trap(n);
// fix the agent ip in the trap depending on which local address is bound
v1TrapPdu.setAgentAddress(new SnmpIPAddress(s.getLocalAddress()));
// Advance the trap counter
this.trapCount.advance();
// Send