You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2010/05/13 19:44:13 UTC
svn commit: r943951 [16/19] - in /trafficserver/traffic/tags/2.1.0: ./ ci/
example/add-header/ example/app-template/ example/append-transform/
example/basic-auth/ example/blacklist-0/ example/blacklist-1/
example/bnull-transform/ example/cache_scan/ ex...
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/WebMgmtUtils.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/WebMgmtUtils.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/WebMgmtUtils.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/WebMgmtUtils.h Thu May 13 17:43:56 2010
@@ -31,8 +31,8 @@
*
* WebMgmtUtils.h - Functions for interfacing to management records
*
- *
- *
+ *
+ *
****************************************************************************/
#include "ink_hash_table.h"
@@ -101,7 +101,7 @@ int substituteUnsafeChars(char *buffer);
char *substituteForHTMLChars(const char *buffer);
// Produce a hash table based on a HTML form submission
-//
+//
// CALLEE deallocates hashtable
InkHashTable *processFormSubmission(char *submission);
InkHashTable *processFormSubmission_noSubstitute(char *submission);
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.cc Thu May 13 17:43:56 2010
@@ -33,8 +33,8 @@
*
* XmlUtils.cc - Functions for interfacing to XML parser (expat)
*
- *
- *
+ *
+ *
*
* This code was taken from the xmlparse library developed
* by Xing Xiong for SynText.
@@ -232,7 +232,7 @@ XMLNode::AppendChild(XMLNode * p)
m_nChildCount++;
}
-/* <pName pAttr>pValue</pName>
+/* <pName pAttr>pValue</pName>
pValue may be NULL.
pAttr may be NULL, otherwise, there is already a " " at its beginning.
*/
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/utils/XmlUtils.h Thu May 13 17:43:56 2010
@@ -29,8 +29,8 @@
*
* XmlUtils.h - Functions for interfacing to XML parser (expat)
*
- *
- *
+ *
+ *
*
* This code was taken from the xmlparse library developed
* by Xing Xiong for SynText.
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.cc Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* IPAllow.cc - Implementation to IP Access Control systtem
*
- *
+ *
****************************************************************************/
#include "ink_config.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtAllow.h Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* MgmtAllow.h - Interface to Manager IP Access Control systtem
*
- *
+ *
****************************************************************************/
#ifndef _MGMT_ALLOW_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.cc Thu May 13 17:43:56 2010
@@ -27,7 +27,7 @@
Description:
-
+
****************************************************************************/
#include "rafencode.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/MgmtRaf.h Thu May 13 17:43:56 2010
@@ -27,7 +27,7 @@
Description:
-
+
****************************************************************************/
#ifndef _MGMT_RAF_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.cc Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
/****************************************************************************
*
* WebCompatibility.cc - cross platform issues dealt with here
- *
- *
+ *
+ *
****************************************************************************/
#include "ink_config.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebCompatibility.h Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
/****************************************************************************
*
* WebCompatibility.h - cross platform issues dealt with here
- *
- *
+ *
+ *
****************************************************************************/
#ifndef _WEB_COMPATIBILITY_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.cc Thu May 13 17:43:56 2010
@@ -49,13 +49,13 @@
//-------------------------------------------------------------------------
// convertRules
-//-------------------------------------------------------------------------
+//-------------------------------------------------------------------------
// "list" contains the indices of the invalid rules in the "rules" array
// Need to convert all the rules into displayable format and put it
-// into a buffer.
+// into a buffer.
// Return an allocated buffer containing the HTML of the invalid rules
-// that will appear in "Rule" format. Returns NULL if error.
-// Note, that it will dequeue the elements from errRules list, but will
+// that will appear in "Rule" format. Returns NULL if error.
+// Note, that it will dequeue the elements from errRules list, but will
// not free it (it is up to the caller to free the INKIntList)
//
char *
@@ -108,7 +108,7 @@ convertRules(INKFileNameT file, INKIntLi
case INK_FNAME_VADDRS:
rule = formatVaddrsRule(rules[*index]);
break;
- default: // UH-OH!!!
+ default: // UH-OH!!!
goto Lerror;
}
if (rule) {
@@ -819,14 +819,14 @@ updateCacheConfig(char *rules[], int num
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateCacheConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -880,7 +880,7 @@ updateCacheConfig(char *rules[], int num
// FIXME: lots of parsing and conversion to do - similar to CfgContextUtils.cc
// secondary specifiers
- // time
+ // time
if (strlen(tokens[3]) > 0) {
if (string_to_time_struct(tokens[3], &(pdss->sec_spec)) != INK_ERR_OKAY) {
ele->cfg_ele.error = INK_ERR_INVALID_CONFIG_RULE;
@@ -975,14 +975,14 @@ updateFilterConfig(char *rules[], int nu
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateFilterConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1033,7 +1033,7 @@ updateFilterConfig(char *rules[], int nu
// FIXME: lots of parsing and conversion to do - similar to CfgContextUtils.cc
// secondary specifiers
- // time
+ // time
if (strlen(tokens[3]) > 0) {
if (string_to_time_struct(tokens[3], &(pdss->sec_spec)) != INK_ERR_OKAY) {
ele->cfg_ele.error = INK_ERR_INVALID_CONFIG_RULE;
@@ -1136,9 +1136,9 @@ Lerror:
//-------------------------------------------------------------------------
// updateFilterConfigPassword
//-------------------------------------------------------------------------
-// Create new rule by reading the values from the form which are specified in
+// Create new rule by reading the values from the form which are specified in
// WebConfigRender::writeFilterConfigForm(). Be sure to encrypt the password
-// and create a bind_pwd_file.
+// and create a bind_pwd_file.
int
updateFilterConfigPassword(WebHttpContext * whc, char **errBuff)
{
@@ -1157,24 +1157,24 @@ updateFilterConfigPassword(WebHttpContex
memset(ruleStr, 0, MAX_RULE_LENGTH);
- // make sure all required fields are specified
+ // make sure all required fields are specified
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "rule_type", (void **) &rule_type);
if (!rule_type) {
- valid = false; // ERROR: this must be specified!
+ valid = false; // ERROR: this must be specified!
} else {
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "Rule Type=%s%s", rule_type, HTML_DELIM);
}
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "pd_type", (void **) &pd_type);
if (table_lookup_value && !pd_type) {
- valid = false; // ERROR: this must be specified!
+ valid = false; // ERROR: this must be specified!
} else {
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "%s=", pd_type);
}
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "pd_val", (void **) &pd_val);
if (table_lookup_value && !pd_val) {
- valid = false; // ERROR: this must be specified!
+ valid = false; // ERROR: this must be specified!
} else {
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "%s%s", pd_val, HTML_DELIM);
}
@@ -1222,7 +1222,7 @@ updateFilterConfigPassword(WebHttpContex
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "hdr_type", (void **) &hdr_type);
// coverity[DEADCODE]
if (table_lookup_value && hdr_type) {
- valid = false; // ERROR: this should not be specified!
+ valid = false; // ERROR: this should not be specified!
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "Header Type=%s%s", hdr_type,
HTML_DELIM);
}
@@ -1268,14 +1268,14 @@ updateFilterConfigPassword(WebHttpContex
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "bind_dn", (void **) &bind_dn);
if (table_lookup_value && !bind_dn) {
- valid = false; // ERROR: should have
+ valid = false; // ERROR: should have
} else {
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "Bind DN=%s%s", bind_dn, HTML_DELIM);
}
table_lookup_value = ink_hash_table_lookup(whc->post_data_ht, "bind_pwd", (void **) &bind_pwd);
if (table_lookup_value && !bind_pwd) {
- valid = false; // ERROR: should have
+ valid = false; // ERROR: should have
} else {
snprintf(ruleStr + strlen(ruleStr), MAX_RULE_LENGTH - strlen(ruleStr), "Bind Password=%s%s", bind_pwd,
HTML_DELIM);
@@ -1284,7 +1284,7 @@ updateFilterConfigPassword(WebHttpContex
if (!valid)
goto Lerror_commit;
- // add the rule to end of the file
+ // add the rule to end of the file
ctx = INKCfgContextCreate(INK_FNAME_FILTER);
if (!ctx) {
Debug("config", "[updateFilterConfigPassword] can't allocate ctx memory");
@@ -1343,7 +1343,7 @@ updateFilterConfigPassword(WebHttpContex
Debug("config", "[updateFilterConfigPassword] invalid rule - SKIP");
}
- // time
+ // time
if (time) {
if (string_to_time_struct(time, &(pdss->sec_spec)) != INK_ERR_OKAY) {
ele->cfg_ele.error = INK_ERR_INVALID_CONFIG_RULE;
@@ -1415,7 +1415,7 @@ updateFilterConfigPassword(WebHttpContex
if (bind_dn) {
ele->bind_dn = xstrdup(bind_dn);
}
- if (bind_pwd) { // encrypt the password
+ if (bind_pwd) { // encrypt the password
char *pwd_file = encryptToFileAuth_malloc(bind_pwd);
if (pwd_file) {
ele->bind_pwd_file = pwd_file;
@@ -1476,14 +1476,14 @@ updateHostingConfig(char *rules[], int n
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateHostingConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1515,7 +1515,7 @@ updateHostingConfig(char *rules[], int n
Debug("config", "[updateHostingConfig] invalid rule - SKIP");
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -1557,14 +1557,14 @@ updateIcpConfig(char *rules[], int numRu
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateIcpConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1644,7 +1644,7 @@ updateIcpConfig(char *rules[], int numRu
}
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -1687,14 +1687,14 @@ updateIpAllowConfig(char *rules[], int n
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateIpAllowConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1704,7 +1704,7 @@ updateIpAllowConfig(char *rules[], int n
if (strlen(tokens[0]) > 0) {
ele->src_ip_addr = string_to_ip_addr_ele(tokens[0]);
}
- // ip action
+ // ip action
if (strlen(tokens[1]) > 0) {
if (strcmp(tokens[1], "ip_allow") == 0) {
ele->action = INK_IP_ALLOW_ALLOW;
@@ -1716,7 +1716,7 @@ updateIpAllowConfig(char *rules[], int n
}
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -1759,14 +1759,14 @@ updateMgmtAllowConfig(char *rules[], int
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateMgmtAllowConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1776,7 +1776,7 @@ updateMgmtAllowConfig(char *rules[], int
if (strlen(tokens[0]) > 0) {
ele->src_ip_addr = string_to_ip_addr_ele(tokens[0]);
}
- // ip action
+ // ip action
if (strlen(tokens[1]) > 0) {
if (strcmp(tokens[1], "ip_allow") == 0) {
ele->action = INK_MGMT_ALLOW_ALLOW;
@@ -1788,7 +1788,7 @@ updateMgmtAllowConfig(char *rules[], int
}
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -1831,14 +1831,14 @@ updateParentConfig(char *rules[], int nu
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateParentConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -1872,7 +1872,7 @@ updateParentConfig(char *rules[], int nu
// FIXME: lots of parsing and conversion to do - similar to CfgContextUtils.cc
// secondary specifiers
- // time
+ // time
if (strlen(tokens[2]) > 0) {
if (string_to_time_struct(tokens[2], &(pdss->sec_spec)) != INK_ERR_OKAY) {
ele->cfg_ele.error = INK_ERR_INVALID_CONFIG_RULE;
@@ -1997,14 +1997,14 @@ updatePartitionConfig(char *rules[], int
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updatePartitionConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2046,7 +2046,7 @@ updatePartitionConfig(char *rules[], int
Debug("config", "[updatePartitionConfig] invalid size format - SKIP");
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -2088,14 +2088,14 @@ updateRemapConfig(char *rules[], int num
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateRemapConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2127,7 +2127,7 @@ updateRemapConfig(char *rules[], int num
Debug("config", "[updateRemapConfig] invalid scheme - SKIP");
}
- // from host
+ // from host
if (strlen(tokens[2]) > 0) {
ele->from_host = xstrdup(tokens[2]);
} else {
@@ -2160,7 +2160,7 @@ updateRemapConfig(char *rules[], int num
Debug("config", "[updateRemapConfig] invalid scheme - SKIP");
}
- // to host
+ // to host
if (strlen(tokens[6]) > 0) {
ele->to_host = xstrdup(tokens[6]);
} else {
@@ -2228,14 +2228,14 @@ updateSocksConfig(char *rules[], int num
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateSocksConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2337,14 +2337,14 @@ updateSplitDnsConfig(char *rules[], int
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateSplitDnsConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2393,7 +2393,7 @@ updateSplitDnsConfig(char *rules[], int
}
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -2435,14 +2435,14 @@ updateUpdateConfig(char *rules[], int nu
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateUpdateConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2486,7 +2486,7 @@ updateUpdateConfig(char *rules[], int nu
}
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
@@ -2529,14 +2529,14 @@ updateVaddrsConfig(char *rules[], int nu
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // since we want to preserve comments, we need to read in the
+ // since we want to preserve comments, we need to read in the
// file using INKCfgContextGet and remove all the rules; starting from scratch
if (INKCfgContextGet(ctx) != INK_ERR_OKAY || INKCfgContextRemoveAll(ctx) != INK_ERR_OKAY) {
Debug("config", "[updateVaddrsConfig] Failed to Get and Clear CfgContext");
err = WEB_HTTP_ERR_FAIL;
goto Lerror;
}
- // create Ele's by parsing the rules in the rules array
+ // create Ele's by parsing the rules in the rules array
// insert the Ele's into a Cfg Context; if get invalid formatted rule, just skip it
for (i = 0; i < numRules; i++) {
tokens.Initialize(rules[i], ALLOW_EMPTY_TOKS);
@@ -2566,7 +2566,7 @@ updateVaddrsConfig(char *rules[], int nu
Debug("config", "[updateVaddrsConfig] invalid sub-interface - SKIP");
}
- INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
+ INKCfgContextAppendEle(ctx, (INKCfgEle *) ele); // add new ele to end of list
}
// commit the CfgContext to write a new version of the file
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfig.h Thu May 13 17:43:56 2010
@@ -22,10 +22,10 @@
*/
/****************************************************************************
- * WebConfig.h - code to process config file editor requests, and
+ * WebConfig.h - code to process config file editor requests, and
* create responses
*
- *
+ *
****************************************************************************/
#ifndef _WEB_CONFIG_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.cc Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebConfigRender.cc - html rendering/assembly for Config File Editor
*
- *
+ *
****************************************************************************/
#include "ink_config.h"
@@ -135,7 +135,7 @@ writeCacheConfigTable(WebHttpContext * w
prefix, suffix, port, method, scheme,
time_period, mixt) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeCacheConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -164,7 +164,7 @@ writeCacheConfigTable(WebHttpContext * w
writeSecondarySpecsTableElem(output, time, src_ip, prefix, suffix, port, method, scheme, mixt);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -391,7 +391,7 @@ writeFilterConfigTable(WebHttpContext *
writeSecondarySpecsTableElem(output, time, src_ip, prefix, suffix, port, method, scheme, mixt);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -453,7 +453,7 @@ writeHostingConfigTable(WebHttpContext *
memset(partitions, 0, MAX_RULE_PART_SIZE);
if (convert_hosting_ele_to_html_format(ele, pdType, partitions) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeHostingConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -475,7 +475,7 @@ writeHostingConfigTable(WebHttpContext *
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -570,7 +570,7 @@ writeIcpConfigTable(WebHttpContext * whc
if (convert_icp_ele_to_html_format(ele, name, host_ip, peer_type, proxy_port, icp_port, mc_state, mc_ip, mc_ttl) !=
WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeIcpConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -618,7 +618,7 @@ writeIcpConfigTable(WebHttpContext * whc
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -679,7 +679,7 @@ writeIpAllowConfigTable(WebHttpContext *
if (convert_ip_allow_ele_to_html_format(ele, src_ip, action) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeIpAllowConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -695,7 +695,7 @@ writeIpAllowConfigTable(WebHttpContext *
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -757,7 +757,7 @@ writeMgmtAllowConfigTable(WebHttpContext
memset(action, 0, MAX_RULE_PART_SIZE);
if (convert_mgmt_allow_ele_to_html_format(ele, src_ip, action) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeMgmtAllowConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -773,7 +773,7 @@ writeMgmtAllowConfigTable(WebHttpContext
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -869,7 +869,7 @@ writeParentConfigTable(WebHttpContext *
(ele, pdType, time, src_ip, prefix, suffix, port, method, scheme, mixt, parents, round_robin,
direct) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeParentConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -903,7 +903,7 @@ writeParentConfigTable(WebHttpContext *
HtmlRndrTdClose(output);
writeSecondarySpecsTableElem(output, time, src_ip, prefix, suffix, port, method, scheme, mixt);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -970,7 +970,7 @@ writePartitionConfigTable(WebHttpContext
memset(size_fmt, 0, MAX_RULE_PART_SIZE);
if (convert_partition_ele_to_html_format(ele, part_num, scheme, size, size_fmt) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writePartitionConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1003,7 +1003,7 @@ writePartitionConfigTable(WebHttpContext
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1109,7 +1109,7 @@ writeRemapConfigTable(WebHttpContext * w
if (convert_remap_ele_to_html_format
(ele, rule_type, from_scheme, from_port, from_path, to_scheme, to_port, to_path, mixt) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeRemapConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1167,7 +1167,7 @@ writeRemapConfigTable(WebHttpContext * w
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1252,7 +1252,7 @@ writeSocksConfigTable(WebHttpContext * w
memset(rr, 0, MAX_RULE_PART_SIZE);
if (convert_socks_ele_to_html_format(ele, rule_type, dest_ip, user, passwd, servers, rr) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeSocksConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1293,7 +1293,7 @@ writeSocksConfigTable(WebHttpContext * w
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1370,7 +1370,7 @@ writeSplitDnsConfigTable(WebHttpContext
memset(search_list, 0, MAX_RULE_PART_SIZE);
if (convert_split_dns_ele_to_html_format(ele, pdType, dns_server, def_domain, search_list) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeSplitDnsConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1404,7 +1404,7 @@ writeSplitDnsConfigTable(WebHttpContext
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1481,7 +1481,7 @@ writeUpdateConfigTable(WebHttpContext *
memset(depth, 0, MAX_RULE_PART_SIZE);
if (convert_update_ele_to_html_format(ele, hdrs, offset, interval, depth) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeUpdateConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1514,7 +1514,7 @@ writeUpdateConfigTable(WebHttpContext *
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1579,7 +1579,7 @@ writeVaddrsConfigTable(WebHttpContext *
memset(sub_intr, 0, MAX_RULE_PART_SIZE);
if (convert_virt_ip_addr_ele_to_html_format(ele, ip, sub_intr) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeVaddrsConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
// write the rule info into the table row
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_CENTER);
@@ -1600,7 +1600,7 @@ writeVaddrsConfigTable(WebHttpContext *
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- } // end for loop
+ } // end for loop
// no rules
if (count == 0) {
@@ -1674,7 +1674,7 @@ writeCacheRuleList(textBuffer * output)
prefix, suffix, port, method, scheme,
time_period, mixt) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeCacheRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -1764,7 +1764,7 @@ writeFilterRuleList(textBuffer * output)
bind_dn, bind_pwd_file, mixt)
!= WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeFilterRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -1822,7 +1822,7 @@ writeHostingRuleList(textBuffer * output
if (convert_hosting_ele_to_html_format(ele, pdType, partitions) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeHostingRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -1882,7 +1882,7 @@ writeIcpRuleList(textBuffer * output)
if (convert_icp_ele_to_html_format(ele, name, host_ip, peer_type, proxy_port, icp_port, mc_state, mc_ip, mc_ttl) !=
WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeIcpRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -1931,7 +1931,7 @@ writeIpAllowRuleList(textBuffer * output
if (convert_ip_allow_ele_to_html_format(ele, src_ip, action) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeIpAllowRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -1978,7 +1978,7 @@ writeMgmtAllowRuleList(textBuffer * outp
if (convert_mgmt_allow_ele_to_html_format(ele, src_ip, action) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeMgmtAllowRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -2044,7 +2044,7 @@ writeParentRuleList(textBuffer * output)
(ele, pdType, time, src_ip, prefix, suffix, port, method, scheme, mixt, parents, round_robin,
direct) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeParentConfigTable] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -2155,7 +2155,7 @@ writeRemapRuleList(textBuffer * output)
if (convert_remap_ele_to_html_format
(ele, rule_type, from_scheme, from_port, from_path, to_scheme, to_port, to_path, mixt) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeRemapRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -2211,7 +2211,7 @@ writeSocksRuleList(textBuffer * output)
memset(rr, 0, MAX_RULE_PART_SIZE);
if (convert_socks_ele_to_html_format(ele, rule_type, dest_ip, user, passwd, servers, rr) != WEB_HTTP_ERR_OKAY) {
Debug("config", "[writeSocksRuleList] invalid Ele, can't format - SKIP");
- continue; // invalid ele, so skip to next one
+ continue; // invalid ele, so skip to next one
}
memset(rule, 0, MAX_RULE_SIZE);
@@ -2389,7 +2389,7 @@ writeArmSecurityConfigForm(WebHttpContex
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_ARM_SECURITY_CONFIG, NULL, NULL);
// rule type
@@ -2523,7 +2523,7 @@ writeBypassConfigForm(WebHttpContext * w
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_BYPASS_CONFIG, NULL, NULL);
// rule type
@@ -2584,10 +2584,10 @@ writeBypassConfigForm(WebHttpContext * w
//-------------------------------------------------------------------------
// writeCacheConfigForm
//-------------------------------------------------------------------------
-// Form contains:
+// Form contains:
// Rule Type rule_type
// Primary Dest Type pd_type
-// Primary Dest Value pd_value
+// Primary Dest Value pd_value
// Time time
// Source IP src_ip
// Prefix prefix
@@ -2689,7 +2689,7 @@ writeCacheConfigForm(WebHttpContext * wh
// Form contains:
// Rule Type rule_type (allow, deny, keep_hdr, strip_hdr, ldap)
// Primary Dest Type pd_type
-// Primary Dest Value pd_value
+// Primary Dest Value pd_value
// Time time
// Source IP src_ip
// Prefix prefix
@@ -2703,7 +2703,7 @@ writeCacheConfigForm(WebHttpContext * wh
// dn
// realm
// uid_filter
-// attr_name
+// attr_name
// attr_val
// Media-IXT tag mixt
int
@@ -3029,7 +3029,7 @@ writeIcpConfigForm(WebHttpContext * whc)
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_ICP_CONFIG, NULL, NULL);
// peer hostname
@@ -3168,14 +3168,14 @@ writeIcpConfigForm(WebHttpContext * whc)
//-------------------------------------------------------------------------
// Form contains:
// Source IP Address (single or range) src_ip
-// IP action type ip_action
-//
+// IP action type ip_action
+//
int
writeIpAllowConfigForm(WebHttpContext * whc)
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_IP_ALLOW_CONFIG, NULL, NULL);
// ip action
@@ -3225,13 +3225,13 @@ writeIpAllowConfigForm(WebHttpContext *
// FTP IP Address to_ip
// FTP Port to_port
// Connection TYpe conn_type
-// Protocol Type protocol
+// Protocol Type protocol
int
writeIpnatConfigForm(WebHttpContext * whc)
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_IPNAT_CONFIG, NULL, NULL);
// ethernet Interface
@@ -3372,14 +3372,14 @@ writeIpnatConfigForm(WebHttpContext * wh
//-------------------------------------------------------------------------
// Form contains:
// Source IP Address (single or range) src_ip
-// IP action type ip_action
-//
+// IP action type ip_action
+//
int
writeMgmtAllowConfigForm(WebHttpContext * whc)
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_MGMT_ALLOW_CONFIG, NULL, NULL);
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_NONE);
@@ -3422,7 +3422,7 @@ writeMgmtAllowConfigForm(WebHttpContext
//-------------------------------------------------------------------------
// Form contains:
// Primary Dest Type pd_type
-// Primary Dest Value pd_value
+// Primary Dest Value pd_value
// Time time
// Source IP src_ip
// Prefix prefix
@@ -3635,7 +3635,7 @@ writeRemapConfigForm(WebHttpContext * wh
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_REMAP_CONFIG, NULL, NULL);
// rule type
@@ -3806,7 +3806,7 @@ writeRemapConfigForm(WebHttpContext * wh
//-------------------------------------------------------------------------
// Form contains:
// Rule Type rule_type
-// (INK_SOCKS_BYPASS rule type)
+// (INK_SOCKS_BYPASS rule type)
// IP address list dest_ip
// (INK_SOCKS_AUTH rule type)
// Username user
@@ -3819,7 +3819,7 @@ writeSocksConfigForm(WebHttpContext * wh
{
textBuffer *output = whc->response_bdy;
- // write the hidden "filename" tag
+ // write the hidden "filename" tag
HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_SOCKS_CONFIG, NULL, NULL);
// rule type
@@ -3871,7 +3871,7 @@ writeSocksConfigForm(WebHttpContext * wh
HtmlRndrTdClose(output);
HtmlRndrTrClose(output);
- // Destination IP
+ // Destination IP
HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_NONE);
HtmlRndrTdOpen(output, HTML_CSS_BODY_TEXT, HTML_ALIGN_RIGHT, HTML_VALIGN_NONE, NULL, NULL, 0);
HtmlRndrText(output, whc->lang_dict_ht, HTML_ID_CFG_EDIT_DEST_IP);
@@ -3936,7 +3936,7 @@ writeSocksConfigForm(WebHttpContext * wh
// DNS server names (can have multiple values separated by spaces or ';')
// Domain Name (optional)
// Domain Search List (optional - separated by spaces or ';')
-//
+//
int
writeSplitDnsConfigForm(WebHttpContext * whc)
{
@@ -4142,7 +4142,7 @@ writeUpdateConfigForm(WebHttpContext * w
// writeVaddrsConfigForm
//-------------------------------------------------------------------------
// Form Contains following:
-// virtual IP ip
+// virtual IP ip
// Interface intr
// Sub-Interface sub_intr
int
@@ -4209,9 +4209,9 @@ writeVaddrsConfigForm(WebHttpContext * w
//-------------------------------------------------------------------------
// Helper function - writes the specific editable data fields for secondary
// specifiers. Assumes that the html for a table are already created. This
-// function will only write the a sec spec field per row, and the
+// function will only write the a sec spec field per row, and the
// header for Secondary Specifiers
-// INKFileNameT parameter is needed because there might be some special
+// INKFileNameT parameter is needed because there might be some special
// handling of sec. specs for different files
int
writeSecondarySpecsForm(WebHttpContext * whc, INKFileNameT file)
@@ -4577,7 +4577,7 @@ convert_filter_ele_to_html_format(INKFil
break;
}
- // server
+ // server
if (ele->server)
ink_strncpy(server, ele->server, MAX_RULE_PART_SIZE);
@@ -4676,7 +4676,7 @@ convert_icp_ele_to_html_format(INKIcpEle
if (ele->peer_hostname)
snprintf(name, MAX_RULE_PART_SIZE, "%s", ele->peer_hostname);
- // host_ip
+ // host_ip
if (ele->peer_host_ip_addr) {
tmpStr = ip_addr_to_string(ele->peer_host_ip_addr);
ink_strncpy(host_ip, tmpStr, MAX_RULE_PART_SIZE);
@@ -4748,7 +4748,7 @@ convert_ip_allow_ele_to_html_format(INKI
snprintf(src_ip, MAX_RULE_PART_SIZE, "%s", ip);
xfree(ip);
}
- // action
+ // action
switch (ele->action) {
case INK_IP_ALLOW_ALLOW:
snprintf(action, MAX_RULE_PART_SIZE, "ip_allow");
@@ -4781,7 +4781,7 @@ convert_mgmt_allow_ele_to_html_format(IN
snprintf(src_ip, MAX_RULE_PART_SIZE, "%s", ip);
xfree(ip);
}
- // action
+ // action
switch (ele->action) {
case INK_MGMT_ALLOW_ALLOW:
snprintf(action, MAX_RULE_PART_SIZE, "ip_allow");
@@ -4820,7 +4820,7 @@ convert_parent_ele_to_html_format(INKPar
WEB_HTTP_ERR_OKAY)
goto Lerror;
- // parents
+ // parents
if (ele->proxy_list) {
plist = domain_list_to_string((DomainList *) ele->proxy_list, ";");
snprintf(parents, MAX_RULE_PART_SIZE, "%s", plist);
@@ -4947,7 +4947,7 @@ convert_remap_ele_to_html_format(INKRema
if (!ele->from_host)
goto Lerror;
- // from port
+ // from port
if (ele->from_port > 0) {
snprintf(from_port, MAX_RULE_PART_SIZE, "%d", ele->from_port);
}
@@ -4976,7 +4976,7 @@ convert_remap_ele_to_html_format(INKRema
if (!ele->to_host)
goto Lerror;
- // to port
+ // to port
if (ele->to_port > 0) {
snprintf(to_port, MAX_RULE_PART_SIZE, "%d", ele->to_port);
}
@@ -5228,7 +5228,7 @@ Lerror:
// convert_pdss_to_html_format
//-------------------------------------------------------------------------
// Helper function that can be used by Ele's with embeded INKPdSsFormat
-// structures.
+// structures.
int
convert_pdss_to_html_format(INKPdSsFormat info,
char *pdType,
@@ -5514,7 +5514,7 @@ writePdTypeSelect_hosting(textBuffer * h
//-------------------------------------------------------------------------
// writeMethodSelect
//-------------------------------------------------------------------------
-// some files may/may not include the PUSH option in their list.
+// some files may/may not include the PUSH option in their list.
void
writeMethodSelect_push(textBuffer * html, const char *listName)
{
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebConfigRender.h Thu May 13 17:43:56 2010
@@ -26,7 +26,7 @@
* WebConfigRender.h - html rendering and assembly for the Configuration
* File Editor
*
- *
+ *
****************************************************************************/
#ifndef _WEB_CONFIG_RENDER_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebGlobals.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebGlobals.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebGlobals.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebGlobals.h Thu May 13 17:43:56 2010
@@ -39,8 +39,8 @@
*
* WebGlobals.h - Global Variables and types for the Web Interface
*
- *
- *
+ *
+ *
****************************************************************************/
#include "ink_mutex.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.cc Thu May 13 17:43:56 2010
@@ -386,7 +386,7 @@ spawn_cgi(WebHttpContext * whc, const ch
// it won't be inherited by the child process
DuplicateHandle(GetCurrentProcess(), hChildStdinW, GetCurrentProcess(), NULL, 0, FALSE, DUPLICATE_SAME_ACCESS);
- // STDOUT
+ // STDOUT
HANDLE hChildStdoutR = NULL;
HANDLE hChildStdoutW = NULL;
@@ -470,9 +470,9 @@ spawn_cgi(WebHttpContext * whc, const ch
// encryptToFileAuth_malloc
//
// Given the clear-case password, this function will encrypt the password
-// and print the key to a unique file (name assembled from timestamp and
+// and print the key to a unique file (name assembled from timestamp and
// stored in the path specified by an auth record)
-// Returns the filename of this file or NULL if the encryption failed.
+// Returns the filename of this file or NULL if the encryption failed.
// Used for bind_pwd_file in filter.config and for radius shared keys.
//-------------------------------------------------------------------------
char *
@@ -1402,7 +1402,7 @@ handle_submit_mgmt_auth(WebHttpContext *
aa_new_access = NULL;
// check if the user is trying to add a new additional-user
if (aa_new_user != NULL) {
- // kwt 12.March.2001 check for username length
+ // kwt 12.March.2001 check for username length
if (strlen(aa_new_user) > WEB_HTTP_AUTH_USER_MAX) {
ink_hash_table_insert(whc->submit_warn_ht, "additional_administrative_accounts", NULL);
ink_hash_table_insert(whc->submit_warn_ht, "add_new_administrative_user", NULL);
@@ -1559,9 +1559,9 @@ handle_submit_snapshot(WebHttpContext *
"[WebHttp::handle_submit_snapshot] Unable to find configuration directory from proxy.config.config_dir\n");
if ((err = stat(config_dir, &s)) < 0) {
- ink_strncpy(config_dir, system_config_directory,sizeof(config_dir));
+ ink_strncpy(config_dir, system_config_directory,sizeof(config_dir));
if ((err = stat(config_dir, &s)) < 0) {
- mgmt_elog("[WebHttp::handle_submit_snapshot] unable to stat() directory '%s': %d %d, %s\n",
+ mgmt_elog("[WebHttp::handle_submit_snapshot] unable to stat() directory '%s': %d %d, %s\n",
config_dir, err, errno, strerror(errno));
mgmt_fatal("[WebHttp::handle_submit_snapshot] please set config path via command line '-path <path>' or 'proxy.config.config_dir' \n");
}
@@ -1644,7 +1644,7 @@ handle_submit_snapshot(WebHttpContext *
// These weren't used, so moved. /leif
//int newLen;
//char* absoluteDir;
- //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
+ //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
//newLen = strlen(tok) + strlen(config_dir) + 2;
//absoluteDir = new char[newLen];
@@ -1663,17 +1663,17 @@ handle_submit_snapshot(WebHttpContext *
}
} //else {
//if(snap_directory[0] == '/') {
- //lmgmt->record_data ->setString("proxy.config.snapshot_dir", snap_directory);
+ //lmgmt->record_data ->setString("proxy.config.snapshot_dir", snap_directory);
//} else {
//int newLen;
//char* relativeDir;
- //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
+ //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
//newLen = strlen(snap_directory) + strlen(config_dir) + 2;
//relativeDir = new char[newLen];
//ink_assert(relativeDir != NULL);
//sprintf(relativeDir, "%s%s%s",config_dir, DIR_SEP, snap_directory);
- //lmgmt->record_data ->setString("proxy.config.snapshot_dir", relativeDir);
+ //lmgmt->record_data ->setString("proxy.config.snapshot_dir", relativeDir);
//}
//}
}
@@ -1775,7 +1775,7 @@ handle_submit_snapshot(WebHttpContext *
}
int newLen;
char *newStr;
- //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
+ //const char *config_dir = lmgmt->record_data ->readString("proxy.config.config_dir", &found);
newLen = strlen(snap_name) + strlen(ftp_remote_dir) + 2;
newStr = new char[newLen];
@@ -2692,7 +2692,7 @@ handle_submit_inspector(WebHttpContext *
// internationalize. we should put the button names into the
// dictionary.
- // handle URL Regex operation
+ // handle URL Regex operation
if (ink_hash_table_lookup(whc->post_data_ht, "regex_op", (void **) ®ex_action)) {
if (strcmp(regex_action, "Lookup") == 0) {
// handle regex lookup
@@ -2964,7 +2964,7 @@ handle_submit_update(WebHttpContext * wh
lmgmt->rollLogFiles();
goto Ldone;
}
- // check for apply
+ // check for apply
if (ink_hash_table_lookup(whc->post_data_ht, "apply", (void **) &apply)) {
ink_hash_table_delete(whc->post_data_ht, "apply");
xfree(apply);
@@ -3035,7 +3035,7 @@ handle_submit_update(WebHttpContext * wh
// delete the old password file and create a new one
RecGetRecordString_Xmalloc(record, &old_pwd_file);
- if (old_pwd_file) { // remove the old_pwd_file
+ if (old_pwd_file) { // remove the old_pwd_file
if (remove(old_pwd_file) != 0)
Debug("web2", "[handle_submit_update] Failed to remove password file %s", old_pwd_file);
xfree(old_pwd_file);
@@ -3088,19 +3088,19 @@ Ldone:
// handle_submit_update_config
//-------------------------------------------------------------------------
// This handler is called when submit a post form for Configuration File Editor.
-// Uses the hidden tag values to construct and write new config file.
+// Uses the hidden tag values to construct and write new config file.
// If the user presses Cancel, then it should also close
// the current window without committing any changes. If hit "Apply", then
-// commits the changes before closing editor window.
-// Since the Configuration File Editor opens in a separate window,
+// commits the changes before closing editor window.
+// Since the Configuration File Editor opens in a separate window,
// each time a user hits "Apply", we need to also update the table listing all
-// the config rules on the original tab page from which the File Editor window
+// the config rules on the original tab page from which the File Editor window
// was launched - the orignal page is refreshed regularly in order to keep the
-// the values in sync with the Configuration File Editor page (is there a
-// better way to do this??)
-// The file parameter is not used in this handler because a generic
-// c_config_display.ink is used for all files. We determine which file
-// is being revised by using the filename tag that's passed in with the
+// the values in sync with the Configuration File Editor page (is there a
+// better way to do this??)
+// The file parameter is not used in this handler because a generic
+// c_config_display.ink is used for all files. We determine which file
+// is being revised by using the filename tag that's passed in with the
// GET request.
static int
handle_submit_update_config(WebHttpContext * whc, const char *file)
@@ -3122,7 +3122,7 @@ handle_submit_update_config(WebHttpConte
//goto Ldone;
return WEB_HTTP_ERR_OKAY;
}
- // check for apply
+ // check for apply
if (ink_hash_table_lookup(whc->post_data_ht, "apply", (void **) &apply)) {
ink_hash_table_delete(whc->post_data_ht, "apply");
xfree(apply);
@@ -3131,10 +3131,10 @@ handle_submit_update_config(WebHttpConte
// the current ruleList information; commits this information as new config file
// get the filename to create the INKCfgContext; do NOT delete the
- // HTML_CONFIG_FILE_TAG entry because we need to use the filename
+ // HTML_CONFIG_FILE_TAG entry because we need to use the filename
// binding to refresh the page
if (!ink_hash_table_lookup(whc->post_data_ht, HTML_CONFIG_FILE_TAG, (void **) &filename)) {
- // ERROR: no config file specified!!
+ // ERROR: no config file specified!!
whc->response_hdr->setStatus(STATUS_NOT_FOUND);
WebHttpSetErrorResponse(whc, STATUS_NOT_FOUND);
goto Lerror;
@@ -3220,7 +3220,7 @@ handle_submit_update_config(WebHttpConte
}
// do not delete the strings in the array because
- // the binding still exists in the hashtable, so memory will
+ // the binding still exists in the hashtable, so memory will
// be freed when post_data_ht destroyed
if (rules)
delete[]rules;
@@ -3245,8 +3245,8 @@ handle_submit_update_config(WebHttpConte
HtmlRndrBr(whc->submit_warn);
whc->request_state |= WEB_HTTP_STATE_SUBMIT_WARN;
}
- // do not remove and free frecord from post_data_ht because
- // the renderer fn will use it to write the hidden tag
+ // do not remove and free frecord from post_data_ht because
+ // the renderer fn will use it to write the hidden tag
if (ink_hash_table_lookup(whc->post_data_ht, "frecord", (void **) &frecord)) {
if (recordRestartCheck(frecord)) {
ink_hash_table_insert(whc->submit_note_ht, frecord, NULL);
@@ -3270,8 +3270,8 @@ Lerror:
//-------------------------------------------------------------------------
// handle_submit_config_display
//-------------------------------------------------------------------------
-// This handler is called when user wants to open the Configuration Editor
-// window to edit a config file; so it main purpose is simply to
+// This handler is called when user wants to open the Configuration Editor
+// window to edit a config file; so it main purpose is simply to
// render the configurator.ink page
static int
handle_submit_config_display(WebHttpContext * whc, const char *file)
@@ -3556,7 +3556,7 @@ handle_submit_net_config(WebHttpContext
SetWarning(whc, key);
warning = true;
}
- //FIXNOW - Use SysAPI
+ //FIXNOW - Use SysAPI
if (!Config_GetNIC_Netmask(interface, old_value, sizeof(old_value))) {
if (nic[no][4] != NULL && strcmp(nic[no][4], old_value) != 0) {
nic_change[no] = 1;
@@ -3578,7 +3578,7 @@ handle_submit_net_config(WebHttpContext
}
} else if (strcmp(param, "GATEWAY") == 0) {
nic[no][5] = value;
- //FIXNOW - Use SysAPI
+ //FIXNOW - Use SysAPI
if (!Net_IsValid_IP(nic[no][5])) {
SetWarning(whc, key);
warning = true;
@@ -4216,7 +4216,7 @@ WebHttpInit()
ink_hash_table_insert(g_extn_bindings_ht, ".ink", (void *) handle_ink_extn);
// initialize the configurator editing bindings which binds
- // configurator display filename (eg. f_cache_config.ink) to
+ // configurator display filename (eg. f_cache_config.ink) to
// its mgmt API config file type (INKFileNameT)
g_display_config_ht = ink_hash_table_create(InkHashTableKeyType_String);
ink_hash_table_insert(g_display_config_ht, HTML_FILE_CACHE_CONFIG, (void *) INK_FNAME_CACHE_OBJ);
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttp.h Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebHttp.h - code to process requests, and create responses
*
- *
+ *
****************************************************************************/
#ifndef _WEB_HTTP_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.cc Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
/****************************************************************************
*
* WebHttpAuth.cc - code to handle administrative access to the web-ui
- *
- *
+ *
+ *
****************************************************************************/
#include "inktomi++.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpAuth.h Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
/****************************************************************************
*
* WebHttpAuth.h - code to handle administrative access to the web-ui
- *
- *
+ *
+ *
****************************************************************************/
#ifndef _WEB_HTTP_AUTH_H_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpContext.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpContext.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpContext.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpContext.h Thu May 13 17:43:56 2010
@@ -53,7 +53,7 @@ struct WebHttpContext
InkHashTable *query_data_ht; // client query name/value hash-table
InkHashTable *post_data_ht; // client POST name/value hash-table
InkHashTable *submit_warn_ht; // ht of warn submission records
- InkHashTable *submit_note_ht; // ht of info submission records
+ InkHashTable *submit_note_ht; // ht of info submission records
sockaddr_in *client_info; // client conection information
SocketInfo si; // socket information
ssl_ctx_st *ssl_ctx; // SSL information
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpLog.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpLog.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpLog.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpLog.cc Thu May 13 17:43:56 2010
@@ -54,22 +54,22 @@ WebHttpLogInit()
char log_file[PATH_NAME_MAX+1];
if ((err = stat(system_log_dir, &s)) < 0) {
- ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &log_dir)
+ ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &log_dir)
== REC_ERR_OKAY);
if ((err = stat(log_dir, &s)) < 0) {
// Try 'system_root_dir/var/log/trafficserver' directory
snprintf(system_log_dir, sizeof(system_log_dir), "%s%s%s%s%s%s%s",
system_root_dir, DIR_SEP,"var",DIR_SEP,"log",DIR_SEP,"trafficserver");
if ((err = stat(system_log_dir, &s)) < 0) {
- mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
+ mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
system_log_dir, err, errno, strerror(errno));
mgmt_elog("please set 'proxy.config.log2.logfile_dir'\n");
//_exit(1);
}
} else {
- ink_strncpy(system_log_dir,log_dir,sizeof(system_log_dir));
+ ink_strncpy(system_log_dir,log_dir,sizeof(system_log_dir));
}
- }
+ }
snprintf(log_file, sizeof(log_file), "%s%s%s", system_log_dir, DIR_SEP, "lm.log");
if (WebHttpLogHandle == WEB_HANDLE_INVALID) {
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.cc Thu May 13 17:43:56 2010
@@ -408,7 +408,7 @@ httpMessage::~httpMessage()
delete parser;
}
-/* 01/14/99 elam -
+/* 01/14/99 elam -
* Commented out because g++ is not happy with iostream.h
void httpMessage::Print() {
cout << "Method: " << method << endl;
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpMessage.h Thu May 13 17:43:56 2010
@@ -34,8 +34,8 @@
* WebHttpMessage.h - classes to store information about incoming requests
* and create hdrs for outgoing requests
*
- *
- *
+ *
+ *
****************************************************************************/
/* define method */
@@ -282,7 +282,7 @@ private:
char *locationURL;
time_t lastMod;
int cachable;
- char *dateResponse; // for logs
+ char *dateResponse; // for logs
};
#endif
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.cc Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebHttpRender.cc - html rendering/assembly
*
- *
+ *
****************************************************************************/
#include "ink_config.h"
@@ -150,9 +150,9 @@ handle_alarm_summary_object(WebHttpConte
//-------------------------------------------------------------------------
// Displays rules of config file in table format. The arg specifies
// the "/configure/f_xx_config.ink" of the config file; this arg is used
-// to determine which file table to render. Each of the
-// writeXXConfigTable function writes the html for displaying all the rules
-// by using an INKCfgContext to read all the rules and converting
+// to determine which file table to render. Each of the
+// writeXXConfigTable function writes the html for displaying all the rules
+// by using an INKCfgContext to read all the rules and converting
// each rule into a row of the table.
static int
handle_config_table_object(WebHttpContext * whc, char *tag, char *arg)
@@ -282,13 +282,13 @@ handle_help_config_link(WebHttpContext *
//-------------------------------------------------------------------------
// handle_dynamic_javascript
//-------------------------------------------------------------------------
-// This creates the Javascript Rule object and its properties;
-// Must open the config file and see how many rules; create a javascript Rule
-// object so that it can be inserted into the ruleList object; writes the
+// This creates the Javascript Rule object and its properties;
+// Must open the config file and see how many rules; create a javascript Rule
+// object so that it can be inserted into the ruleList object; writes the
// functions which must interact between the config data form. All
// the config file specific javascript goes here. This javascript is actually
-// stored in the "/configure/f_XXX_config.ink" file.
-//
+// stored in the "/configure/f_XXX_config.ink" file.
+//
static int
handle_dynamic_javascript(WebHttpContext * whc, char *tag, char *arg)
{
@@ -299,10 +299,10 @@ handle_dynamic_javascript(WebHttpContext
char *file_buf = NULL;
int file_size;
- // the configurator page can be invoked from two places so it
+ // the configurator page can be invoked from two places so it
// can retreive the "filename" information from 2 possible places:
- // 1) as a GET request (HTML_SUBMIT_CONFIG_DISPLAY) when click on "Edit file" button
- // 2) refreshing page after clicking "Apply" button (HTML_SUBMIT_UPDATE_CONFIG)
+ // 1) as a GET request (HTML_SUBMIT_CONFIG_DISPLAY) when click on "Edit file" button
+ // 2) refreshing page after clicking "Apply" button (HTML_SUBMIT_UPDATE_CONFIG)
if (ink_hash_table_lookup(whc->query_data_ht, HTML_CONFIG_FILE_TAG, (void **) &ink_file) ||
ink_hash_table_lookup(whc->post_data_ht, HTML_CONFIG_FILE_TAG, (void **) &ink_file)) {
@@ -384,11 +384,11 @@ Ldone:
//-------------------------------------------------------------------------
// handle_config_input_form
//-------------------------------------------------------------------------
-// Writes the html for the section of the Config File Editor that requires
+// Writes the html for the section of the Config File Editor that requires
// user input/modifications (eg. has the INSERT, MODIFY.... buttons).
-// Corresponds to the "writeConfigForm" tag.
-// Each config file has different fields so each form will have different
-// fields on the form (refer to data in corresponding Ele structs).
+// Corresponds to the "writeConfigForm" tag.
+// Each config file has different fields so each form will have different
+// fields on the form (refer to data in corresponding Ele structs).
static int
handle_config_input_form(WebHttpContext * whc, char *tag, char *arg)
{
@@ -471,8 +471,8 @@ handle_config_input_form(WebHttpContext
//-------------------------------------------------------------------------
// HtmlRndrSelectList
//-------------------------------------------------------------------------
-// Creates a select list where the options are the strings passed in
-// the options array. Assuming the value and text of the option are the same.
+// Creates a select list where the options are the strings passed in
+// the options array. Assuming the value and text of the option are the same.
int
HtmlRndrSelectList(textBuffer * html, const char *listName, const char *options[], int numOpts)
{
@@ -1494,7 +1494,7 @@ handle_select_system_logs(WebHttpContext
MgmtInt fsize;;
// define the name of syslog in different OS
-#if (HOST_OS == linux)
+#if (HOST_OS == linux)
syslog = "messages";
#endif
@@ -1553,22 +1553,22 @@ handle_select_access_logs(WebHttpContext
== REC_ERR_OKAY);
if ((err = stat(system_log_dir, &s)) < 0) {
- ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &logdir)
+ ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &logdir)
== REC_ERR_OKAY);
if ((err = stat(logdir, &s)) < 0) {
// Try 'system_root_dir/var/log/trafficserver' directory
snprintf(system_log_dir, sizeof(system_log_dir), "%s%s%s%s%s%s%s",
system_root_dir, DIR_SEP,"var",DIR_SEP,"log",DIR_SEP,"trafficserver");
if ((err = stat(system_log_dir, &s)) < 0) {
- mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
+ mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
system_log_dir, err, errno, strerror(errno));
mgmt_elog("please set 'proxy.config.log2.logfile_dir'\n");
//_exit(1);
}
} else {
- ink_strncpy(system_log_dir,logdir,sizeof(system_log_dir));
+ ink_strncpy(system_log_dir,logdir,sizeof(system_log_dir));
}
- }
+ }
if ((dirp = opendir(system_log_dir))) {
while ((dent = readdir(dirp)) != NULL) {
@@ -1633,22 +1633,22 @@ handle_select_debug_logs(WebHttpContext
== REC_ERR_OKAY);
if ((err = stat(system_log_dir, &s)) < 0) {
- ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &logdir)
+ ink_assert(RecGetRecordString_Xmalloc("proxy.config.log2.logfile_dir", &logdir)
== REC_ERR_OKAY);
if ((err = stat(logdir, &s)) < 0) {
// Try 'system_root_dir/var/log/trafficserver' directory
snprintf(system_log_dir, sizeof(system_log_dir), "%s%s%s%s%s%s%s",
system_root_dir, DIR_SEP,"var",DIR_SEP,"log",DIR_SEP,"trafficserver");
if ((err = stat(system_log_dir, &s)) < 0) {
- mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
+ mgmt_elog("unable to stat() log dir'%s': %d %d, %s\n",
system_log_dir, err, errno, strerror(errno));
mgmt_elog("please set 'proxy.config.log2.logfile_dir'\n");
//_exit(1);
}
} else {
- ink_strncpy(system_log_dir,logdir,sizeof(system_log_dir));
+ ink_strncpy(system_log_dir,logdir,sizeof(system_log_dir));
}
- }
+ }
// traffic.out*
if ((dirp = opendir(system_log_dir))) {
@@ -2795,7 +2795,7 @@ WebHttpRender(WebHttpContext * whc, cons
char *doc_root_file;
ink_debug_assert(file != NULL);
#if (HOST_OS == linux) || (HOST_OS == solaris)
-//Bug 49922, for those .ink files which may meet the root-only system files,
+//Bug 49922, for those .ink files which may meet the root-only system files,
//upgrade the uid to root.
int old_euid;
bool change_uid = false;
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpRender.h Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebHttpRener.h - html rendering and assembly
*
- *
+ *
****************************************************************************/
#ifndef _WEB_HTTP_RENDER_H_
@@ -255,7 +255,7 @@
#define HTML_ID_CFG_EDIT_SOURCE_CIDR "s_text_731"
#define HTML_ID_CFG_EDIT_SOURCE_CIDR_HELP "s_text_732"
-// arm_security.config
+// arm_security.config
#define HTML_ID_CFG_EDIT_RULE_TYPE_HELP_3 "s_text_735"
#define HTML_ID_CFG_EDIT_CONN_TYPE "s_text_736"
#define HTML_ID_CFG_EDIT_CONN_TYPE_HELP "s_text_737"
@@ -362,7 +362,7 @@
#define HTML_ID_CFG_EDIT_SUB_INTERFACE "s_text_903"
#define HTML_ID_CFG_EDIT_SUB_INTERFACE_HELP "s_text_904"
-// Config File Editor error messages
+// Config File Editor error messages
#define HTML_ID_CFG_COMMIT_ERROR "s_text_905"
#define HTML_ID_CFG_INVALID_RULE "s_text_906"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.cc Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebHttpSession.cc - Manage session data
*
- *
+ *
****************************************************************************/
#include "ink_config.h"
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpSession.h Thu May 13 17:43:56 2010
@@ -25,7 +25,7 @@
*
* WebHttpSession.h - Manage session data
*
- *
+ *
****************************************************************************/
#ifndef _WEB_HTTP_SESSION_
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.cc (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.cc Thu May 13 17:43:56 2010
@@ -26,7 +26,7 @@
* WebHttpTree.cc - dynamic, javascript web-ui tree hierarchy and
* web-ui link index
*
- *
+ *
****************************************************************************/
#include "ink_config.h"
@@ -71,7 +71,7 @@ struct tree_node
};
// link_node - The link_node describes a page in the web-ui. The
-// structure contains the following:
+// structure contains the following:
// the disk file for the page; where the page should appear in
// the web-ui (mode, menu, item, tab); and lastly, any additional
// query items required to make this page render correctly.
@@ -128,7 +128,7 @@ static int g_item_id = 0;
static int g_link_id = 0;
//-------------------------------------------------------------------------
-// XML Element Handlers
+// XML Element Handlers
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
@@ -585,7 +585,7 @@ WebHttpRenderTabs(textBuffer * output, i
if (mode->node.name) {
HtmlRndrTdOpen(output, HTML_CSS_NONE, HTML_ALIGN_NONE, HTML_VALIGN_NONE, NULL, NULL, 0);
if (mode_index == active_mode) {
- // if current mode is active, we need on-off separator
+ // if current mode is active, we need on-off separator
HtmlRndrImg(output, "/images/menu_separator_on_off.gif", NULL, NULL, NULL, NULL);
} else if (mode_index + 1 == active_mode) {
// if next mode is active, we need off-on separator
@@ -788,7 +788,7 @@ WebHttpGetLinkQuery_Xmalloc(char *file_l
}
//------------------------------------------------------------------------
-// WebHttpTreeReturnRefresh
+// WebHttpTreeReturnRefresh
//------------------------------------------------------------------------
bool
Modified: trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.h?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.h (original)
+++ trafficserver/traffic/tags/2.1.0/proxy/mgmt2/web2/WebHttpTree.h Thu May 13 17:43:56 2010
@@ -26,7 +26,7 @@
* WebHttpTree.h - dynamic, javascript web-ui tree hierarchy and
* web-ui link index
*
- *
+ *
****************************************************************************/
#ifndef _WEB_HTTP_TREE_H_