Update of /cvsroot/netadm/gwc/gwclib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6021/gwclib
Modified Files:
conftab.c confutil.c syscrypto.c
Log Message:
DEL: gwclib/syscrypto.c: remove LP5 for more good hash value.
MOD: Makefile.tmpl: make disable -g flag and disable DEBUG, enable syslog as default.
ADD: Makefile: add gwcsh and pf as subdirectories of recursive make.
MOD: scripts/gwc: remove gwcguid
MOD: scripts/install.sh: add gwcsh install routine and some modifying
Index: syscrypto.c
===================================================================
RCS file: /cvsroot/netadm/gwc/gwclib/syscrypto.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** syscrypto.c 23 Apr 2006 07:57:46 -0000 1.2
--- syscrypto.c 30 Apr 2006 18:47:25 -0000 1.3
***************
*** 85,98 ****
ROUND(H, b, c, d, a, in[9] + K3, 15);
- /* Round 5 --LP */
- ROUND(H, a, b, c, d, in[13] + K3, 3);
- ROUND(H, d, a, b, c, in[19] + K3, 9);
- ROUND(H, c, d, a, b, in[26] + K3, 11);
- ROUND(H, b, c, d, a, in[19] + K3, 15);
- ROUND(H, a, b, c, d, in[21] + K3, 3);
- ROUND(H, d, a, b, c, in[24] + K3, 9);
- ROUND(H, c, d, a, b, in[31] + K3, 11);
- ROUND(H, b, c, d, a, in[7] + K3, 15);
-
buf[0] += a;
buf[1] += b;
--- 85,88 ----
Index: conftab.c
===================================================================
RCS file: /cvsroot/netadm/gwc/gwclib/conftab.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** conftab.c 6 Apr 2006 15:12:05 -0000 1.10
--- conftab.c 30 Apr 2006 18:47:25 -0000 1.11
***************
*** 49,54 ****
--- 49,57 ----
{CMD_LIST_APINFO, "list_apinfo", PR(list_apinfo), INFO_CLI_LISTAPINFO},
{CMD_ADD_APINFO, "add_apinfo", PR(add_apinfo), INFO_CLI_ADDAPINFO},
+
{CMD_LIST_SNMPCOMM, "list_snmpcomm", PR(list_snmpcomm), INFO_CLI_LISTSNMPCOMM},
{CMD_ADD_SNMPCOMM, "add_snmpcomm", PR(add_snmpcomm), INFO_CLI_ADDSNMPCOMM},
+
+ {CMD_LIST_IF, "list_if", PR(list_if), INFO_CLI_LIST_IF},
{CMD_LIST_PHYMACSPEC, "list_phymacspec", PR(list_phymacspec), INFO_CLI_LISTPHYMACSPEC},
{CMD_LIST_SYSINFO, "list_sysinfo", PR(list_sysinfo), INFO_CLI_LISTSYSINFO},
***************
*** 57,65 ****
{CMD_LIST_TCPINFO, "list_tcpinfo", PR(list_tcpinfo), INFO_CLI_LISTTCPINFO},
{CMD_LIST_UDPINFO, "list_udpinfo", PR(list_udpinfo), INFO_CLI_LISTUDPINFO},
{CMD_LIST_CCKTPW, "list_ccktpower", PR(list_ccktpower), INFO_CLI_LISTCCKTPOWER},
{CMD_LIST_OFDMTPW, "list_ofdmtpower", PR(list_ofdmtpower), INFO_CLI_LISTOFDMTPOWER},
{CMD_LIST_CLIENTPW, "list_clientpower", PR(list_clientpower), INFO_CLI_LISTCLIENTPOWER},
{CMD_SET_TXPW, "set_txpower", PR(set_txpower), INFO_CLI_SETTXPOWER},
- {CMD_LIST_IF, "list_if", PR(list_if), INFO_CLI_LIST_IF},
{CMD_LIST_QOS_MAXBW, "list_qos_maxbw", PR(list_qos_maxbw), INFO_CLI_LIST_QOS_MAXBW},
--- 60,68 ----
{CMD_LIST_TCPINFO, "list_tcpinfo", PR(list_tcpinfo), INFO_CLI_LISTTCPINFO},
{CMD_LIST_UDPINFO, "list_udpinfo", PR(list_udpinfo), INFO_CLI_LISTUDPINFO},
+
{CMD_LIST_CCKTPW, "list_ccktpower", PR(list_ccktpower), INFO_CLI_LISTCCKTPOWER},
{CMD_LIST_OFDMTPW, "list_ofdmtpower", PR(list_ofdmtpower), INFO_CLI_LISTOFDMTPOWER},
{CMD_LIST_CLIENTPW, "list_clientpower", PR(list_clientpower), INFO_CLI_LISTCLIENTPOWER},
{CMD_SET_TXPW, "set_txpower", PR(set_txpower), INFO_CLI_SETTXPOWER},
{CMD_LIST_QOS_MAXBW, "list_qos_maxbw", PR(list_qos_maxbw), INFO_CLI_LIST_QOS_MAXBW},
Index: confutil.c
===================================================================
RCS file: /cvsroot/netadm/gwc/gwclib/confutil.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** confutil.c 6 Apr 2006 15:12:05 -0000 1.12
--- confutil.c 30 Apr 2006 18:47:25 -0000 1.13
***************
*** 532,570 ****
}
#endif
- #if 0
- char *
- loadfile(char *fn)
- {
- struct stat st;
- char fname[256];
- char *cp;
- int ret;
- int fd;
-
- sprintf(fname, "%s", fn);
-
- if ((fd = open(fname, O_RDONLY)) == -1) {
- return NULL;
- }
- if (fstat(fd, &st) == -1) {
- close(fd);
- return NULL;
- }
- if (st.st_size <= 0)
- return NULL;
-
- if ((cp = (char *) malloc(st.st_size + 1)) == NULL) {
- close(fd);
- return NULL;
- }
- ret = read(fd, cp, st.st_size);
- cp[st.st_size] = '\0';
- close(fd);
- if (ret == -1)
- return NULL;
- else
- return cp;
- }
- #endif
void
--- 532,535 ----
|