public void sendTrap(PDU pdu, String ip) {

		PDUv1 trap = null;
		String generic = null;
		long minutes;

		if (pdu.getType() == PDU.V1TRAP) {
			trap = new PDUv1((PDUv1) pdu);
			minutes = trap.getTimestamp() /1000 / 60;

			switch (trap.getGenericTrap()) {
			case 0:
				generic = "COLDSTART";
				break;
			case 1:
				generic = "WARMSTART";
				break;
			case 2:
				generic = "LINKDOWN";
				break;
			case 3:
				generic = "COLDSTART";
				break;
			case 4:
				generic = "AUTHENTICATIONFAILURE";
				break;
			case 6:
				generic = "ENTERPRISE_SPECIFIC";
				break;
			default:
				break;
			}

			String title = "Trap recibida de: " + alias;

			String body = new StringBuilder()
					.append("Dirección IP: " + ip + "\n")
					.append("Uptime: " + minutes + " minutos\n")
					.append("OID de Empresa: " + trap.getEnterprise() + "\n")
					.append("Tipo genérico: " + generic + "\n")
					.append("Tipo específico: " + trap.getSpecificTrap() + "\n")
					.toString();

			Iterator<Connection> it = connections.iterator();

			while (it.hasNext()) {
				it.next().forward(title, body);
			}
		}
	}