318 lines
7.2 KiB
HTML
318 lines
7.2 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<!--Do not change the name of the title, it is referenced programmatically in other files -->
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<TITLE>rzalladvqosapp</TITLE>
|
||
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
|
||
|
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
|
||
|
<script language="Javascript" type="text/javascript">
|
||
|
|
||
|
|
||
|
/* ******* DEVELOPER NOTES ******* */
|
||
|
/* */
|
||
|
/* ARRAY KEY */
|
||
|
/* */
|
||
|
/* clientInfo[x][0] == The client or uri name */
|
||
|
/* clientInfo{x][1] == The client's IP address */
|
||
|
/* clientInfo[x][2] == URI information */
|
||
|
/* clientInfo{x][3] == Custom apps start position */
|
||
|
/* clientInfo[x][4] == Connection rate */
|
||
|
/* clientInfo{x][5] == has diff apps */
|
||
|
/* clientInfo[x][6] == Burst limit */
|
||
|
/* clientInfo[x][7] == The client's intTrafficMarking */
|
||
|
/* clientInfo[x][8] == Average rate limit */
|
||
|
/* clientInfo[x][9] == diffServ marking */
|
||
|
/* clientInfo{x][10] == The clients network traffic environment */
|
||
|
/* clientInfo{x][11] == inbound or outbound */
|
||
|
/* clientInfo[x][12] == uri or ip address */
|
||
|
/* clientInfo[x][13] == custom end */
|
||
|
/* clientInfo[x][14] == diff, int */
|
||
|
/* clientInfo[x][15] == interface IP address */
|
||
|
/* clientInfo[x][16] == uri identifying name */
|
||
|
/*************************************************/
|
||
|
/* inboundClientInfo[x][0] == custom inbound apps start position */
|
||
|
/* inboundClientInfo[x][1] == custom inbound end */
|
||
|
|
||
|
/*************************************************/
|
||
|
/* customapps[x][0] == new app name */
|
||
|
/* customapps[x][1] == port */
|
||
|
/* customapps[x][2] == * */
|
||
|
/*************************************************/
|
||
|
/* clientapps{x][0] == application name and port */
|
||
|
/* clientapps{x][1] == application port */
|
||
|
/* clientapps{x][2] == rsvp ready */
|
||
|
/* clientapps{x][3] == tolerance (T oR NT) */
|
||
|
/* clientapps{x][4] == */
|
||
|
/* clientapps{x][5] == */
|
||
|
/*************************************************/
|
||
|
/* inboundapps{x][0] == application name and port */
|
||
|
/* inboundapps{x][1] == application port */
|
||
|
/* inboundapps{x][2] == custom apps start */
|
||
|
/* inboundapps{x][3] == custom apps end */
|
||
|
/* inboundapps{x][4] == */
|
||
|
/* inboundapps{x][5] == */
|
||
|
/*************************************************/
|
||
|
/* custominboundapps[x][0] == new app name */
|
||
|
/* custominboundapps[x][1] == port */
|
||
|
/* custominboundapps[x][2] == * */
|
||
|
/*************************************************/
|
||
|
|
||
|
/* ******** END DEVELOPER NOTES ******* */
|
||
|
|
||
|
|
||
|
var dump = false;
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
|
||
|
var clientNumber=0;
|
||
|
var noNonRSVP = true;
|
||
|
|
||
|
|
||
|
var intservapps = new Array();
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
intservapps[i] = new Array;
|
||
|
for (var j=0; j < 50; j++) {
|
||
|
intservapps[i][j] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
intservapps[i][j][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
function retClientNumber(){ //function returns the current client number
|
||
|
return clientNumber;
|
||
|
}
|
||
|
|
||
|
function retClientLength(){ //function returns the length of the client array
|
||
|
return clientInfo.length;
|
||
|
}
|
||
|
|
||
|
var clientInfo = new Array();
|
||
|
|
||
|
createClientInfo();
|
||
|
|
||
|
function createClientInfo() {
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
clientInfo[i] = new Array;
|
||
|
for ( var j=0; j<17; j++ ) {
|
||
|
clientInfo[i][j] = "";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
var inboundClientInfo = new Array();
|
||
|
|
||
|
createInboundClientInfo();
|
||
|
|
||
|
function createInboundClientInfo() {
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
inboundClientInfo[i] = new Array;
|
||
|
for ( var j=0; j<15; j++ ) {
|
||
|
inboundClientInfo[i][j] = "";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
var clientapps = new Array();
|
||
|
|
||
|
createClientApps();
|
||
|
|
||
|
function createClientApps() {
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
clientapps[i] = new Array;
|
||
|
for (var j=0; j < 50; j++) {
|
||
|
clientapps[i][j] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
clientapps[i][j][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
var inboundapps = new Array();
|
||
|
|
||
|
createInboundApps();
|
||
|
|
||
|
function createInboundApps() {
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
inboundapps[i] = new Array;
|
||
|
for (var j=0; j < 50; j++) {
|
||
|
inboundapps[i][j] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
inboundapps[i][j][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
var hasInboundCustom = false;
|
||
|
|
||
|
function hasInbound() {
|
||
|
return hasInboundCustom;
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
var hasOutboundDiffCustom = false;
|
||
|
|
||
|
function hasOutbound() {
|
||
|
return hasOutboundDiffCustom;
|
||
|
}
|
||
|
|
||
|
|
||
|
var customapps = new Array();
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
customapps[i] = new Array;
|
||
|
for (var j=0; j < 50; j++) {
|
||
|
customapps[i][j] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
customapps[i][j][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var custominboundapps = new Array();
|
||
|
|
||
|
for (var i=0; i < 10; i++) {
|
||
|
custominboundapps[i] = new Array;
|
||
|
for (var j=0; j < 50; j++) {
|
||
|
custominboundapps[i][j] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
custominboundapps[i][j][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function clearApps(clientNum) {
|
||
|
|
||
|
for ( var i=0; i<clientapps[clientNum].length; i++ ) {
|
||
|
clientapps[clientNum][i] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
clientapps[clientNum][i][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
function inClearApps(clientNum) {
|
||
|
|
||
|
for ( var i=0; i<inboundapps[clientNum].length; i++ ) {
|
||
|
inboundapps[clientNum][i] = new Array;
|
||
|
for ( var k=0; k<5; k++ ) {
|
||
|
inboundapps[clientNum][i][k] = "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function retAppLength(clientnum){
|
||
|
return clientapps[clientnum].length;
|
||
|
}
|
||
|
function retInAppLength(clientnum){
|
||
|
return inboundapps[clientnum].length;
|
||
|
}
|
||
|
|
||
|
function endApp(clientNum) {
|
||
|
|
||
|
var pos;
|
||
|
|
||
|
for ( var i=0; i<clientapps[clientNum].length; i++ ) {
|
||
|
|
||
|
if ( clientapps[clientNum][i][0] == '') {
|
||
|
|
||
|
|
||
|
pos = i;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
return pos;
|
||
|
}
|
||
|
function inEndApp(clientNum) {
|
||
|
|
||
|
var pos;
|
||
|
|
||
|
for ( var i=0; i<inboundapps[clientNum].length; i++ ) {
|
||
|
|
||
|
if ( inboundapps[clientNum][i][0] == '') {
|
||
|
|
||
|
|
||
|
pos = i;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
return pos;
|
||
|
}
|
||
|
|
||
|
function retCustomAppLength(clientnum){
|
||
|
return customapps[clientnum].length;
|
||
|
}
|
||
|
function retCustomInAppLength(clientnum){
|
||
|
return custominboundapps[clientnum].length;
|
||
|
}
|
||
|
|
||
|
function retintservappsLength(clientnum){
|
||
|
return intservapps[clientnum].length;
|
||
|
}
|
||
|
|
||
|
|
||
|
/*
|
||
|
----------------------------------------------------------------------------
|
||
|
isPosInteger takes input and determines if it's a positive integer between
|
||
|
1 and 65535. Returns true or false;
|
||
|
----------------------------------------------------------------------------
|
||
|
*/
|
||
|
function isPosInteger(myInteger) { //checking for positive integer //added by ljs in response to review comment on 1/30
|
||
|
myString = myInteger.toString();
|
||
|
|
||
|
for ( var i=0; i<myString.length; i++ ) {
|
||
|
var onechar = myString.charAt(i)
|
||
|
if ( onechar < "0" || onechar > "9" ) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ( myInteger <1 || myInteger > 65535) { return false;}
|
||
|
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
//END NON-TRANSLATABLE
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|