linux-decnet-commit Mailing List for DECnet for Linux (Page 11)
Brought to you by:
chrissie_c,
ph3-der-loewe
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(20) |
Feb
(27) |
Mar
(25) |
Apr
(12) |
May
(2) |
Jun
(6) |
Jul
(36) |
Aug
(12) |
Sep
(12) |
Oct
(16) |
Nov
(5) |
Dec
(5) |
2003 |
Jan
(8) |
Feb
(9) |
Mar
(25) |
Apr
(18) |
May
(29) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(10) |
Oct
(5) |
Nov
(3) |
Dec
(9) |
2004 |
Jan
(17) |
Feb
|
Mar
(9) |
Apr
|
May
(4) |
Jun
(1) |
Jul
(2) |
Aug
(21) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2005 |
Jan
(5) |
Feb
|
Mar
(13) |
Apr
|
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
(13) |
Oct
(83) |
Nov
(2) |
Dec
|
2006 |
Jan
(21) |
Feb
(1) |
Mar
(32) |
Apr
(31) |
May
(3) |
Jun
(1) |
Jul
|
Aug
(7) |
Sep
|
Oct
(1) |
Nov
(3) |
Dec
(13) |
2007 |
Jan
(1) |
Feb
(7) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
(7) |
2008 |
Jan
(4) |
Feb
(13) |
Mar
(24) |
Apr
(18) |
May
(10) |
Jun
|
Jul
|
Aug
(40) |
Sep
(72) |
Oct
(61) |
Nov
(9) |
Dec
(2) |
2009 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(41) |
Aug
(28) |
Sep
(2) |
Oct
(5) |
Nov
(4) |
Dec
|
2011 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Christine C. <chr...@us...> - 2008-09-03 15:43:36
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32540 Modified Files: copynodes.8 Log Message: Another silly typo Index: copynodes.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/copynodes.8,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** copynodes.8 3 Sep 2008 15:36:16 -0000 1.2 --- copynodes.8 3 Sep 2008 15:43:32 -0000 1.3 *************** *** 23,27 **** that you review it before replacing an existing /etc/decnet.conf file. .br ! The node name can also be a node address if yuu don't have any nodes defined in your existing decnet.conf. .SH EXAMPLE --- 23,27 ---- that you review it before replacing an existing /etc/decnet.conf file. .br ! The node name can also be a node address if you don't have any nodes defined in your existing decnet.conf. .SH EXAMPLE |
From: Christine C. <chr...@us...> - 2008-09-03 15:36:24
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29597 Modified Files: copynodes.8 Log Message: fix typos Index: copynodes.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/copynodes.8,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** copynodes.8 3 Sep 2008 15:14:43 -0000 1.1 --- copynodes.8 3 Sep 2008 15:36:16 -0000 1.2 *************** *** 11,19 **** .br This program will generate a decnet.conf file by contacting a remote ! DECnet host (running VMS or RSX-11) and doing the equivalent of "NCP COPY KNOWN NODES". The resulting file can be copied over the existing decnet.conf file if you like. .br ! You do need a fully-functioning DECnet system befor using this command but you don't need any nodes other than the executor defined in decnet.conf. copynodes will copy the executor information already there --- 11,19 ---- .br This program will generate a decnet.conf file by contacting a remote ! DECnet host (running VMS or RSX-11 probably) and doing the equivalent of "NCP COPY KNOWN NODES". The resulting file can be copied over the existing decnet.conf file if you like. .br ! You do need a fully-functioning DECnet system before using this command but you don't need any nodes other than the executor defined in decnet.conf. copynodes will copy the executor information already there *************** *** 23,27 **** that you review it before replacing an existing /etc/decnet.conf file. .br ! The node name can also be a node address if yu don't have any nodes defined in your existing decnet.conf. .SH EXAMPLE --- 23,27 ---- that you review it before replacing an existing /etc/decnet.conf file. .br ! The node name can also be a node address if yuu don't have any nodes defined in your existing decnet.conf. .SH EXAMPLE |
From: Christine C. <chr...@us...> - 2008-09-03 15:24:54
|
Update of /cvsroot/linux-decnet/dnprogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24696 Modified Files: Makefile.common rpm.spec Log Message: Add copynodes to packaging systems Index: Makefile.common =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile.common,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -r1.47 -r1.48 *** Makefile.common 24 Aug 2008 12:50:56 -0000 1.47 --- Makefile.common 3 Sep 2008 15:24:50 -0000 1.48 *************** *** 59,63 **** #Package version MAJOR_VERSION=2 ! MINOR_VERSION=45 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) --- 59,63 ---- #Package version MAJOR_VERSION=2 ! MINOR_VERSION=46 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) Index: rpm.spec =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/rpm.spec,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** rpm.spec 20 Aug 2008 12:43:58 -0000 1.16 --- rpm.spec 3 Sep 2008 15:24:50 -0000 1.17 *************** *** 50,53 **** --- 50,54 ---- %%PREFIX%%/sbin/vmsmaild %%PREFIX%%/sbin/multinet + %%PREFIX%%/sbin/copynodes %%CONFPREFIX%%/sbin/mount.dapfs %%PREFIX%%/share/man/man1/dncopy.1.gz *************** *** 78,93 **** %%PREFIX%%/share/man/man8/decnetconf.8.gz %%PREFIX%%/share/man/man8/multinet.8.gz %%PREFIX%%/share/man/man8/mount.dapfs.8.gz /etc/rc.d/init.d/decnet /etc/decnet.proxy ! %%LIBPREFIX%%/lib/libdnet.so.1 ! %%LIBPREFIX%%/lib/libdnet.so.%%MAJOR_VERSION%% ! %%LIBPREFIX%%/lib/libdnet.so.%%VERSION%% ! %%LIBPREFIX%%/lib/libdnet_daemon.so.%%MAJOR_VERSION%% ! %%LIBPREFIX%%/lib/libdnet_daemon.so.%%VERSION%% ! %%LIBPREFIX%%/lib/libdap.so.%%MAJOR_VERSION%% ! %%LIBPREFIX%%/lib/libdap.so.%%VERSION%% ! %%LIBPREFIX%%/lib/librms.so.%%MAJOR_VERSION%% ! %%LIBPREFIX%%/lib/librms.so.%%VERSION%% %config --- 79,90 ---- %%PREFIX%%/share/man/man8/decnetconf.8.gz %%PREFIX%%/share/man/man8/multinet.8.gz + %%PREFIX%%/share/man/man8/copynodes.8.gz %%PREFIX%%/share/man/man8/mount.dapfs.8.gz /etc/rc.d/init.d/decnet /etc/decnet.proxy ! %%LIBPREFIX%%/lib/libdnet.so.* ! %%LIBPREFIX%%/lib/libdnet_daemon.so.* ! %%LIBPREFIX%%/lib/libdap.so.* ! %%LIBPREFIX%%/lib/librms.so.* %config *************** *** 95,99 **** %%CONFPREFIX%%/etc/dnetd.conf ! %doc README NEWS fal.README mail.README dnetd.README phone.README librms.README dapfs.README libvaxdata.pdf %files devel --- 92,96 ---- %%CONFPREFIX%%/etc/dnetd.conf ! %doc README NEWS fal.README mail.README dnetd.README phone.README librms.README dapfs.README dnroute.README libvaxdata.pdf %files devel |
From: Christine C. <chr...@us...> - 2008-09-03 15:24:54
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24696/debian Modified Files: dnet-progs.files Log Message: Add copynodes to packaging systems Index: dnet-progs.files =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/dnet-progs.files,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** dnet-progs.files 23 Mar 2008 16:15:43 -0000 1.7 --- dnet-progs.files 3 Sep 2008 15:24:50 -0000 1.8 *************** *** 9,12 **** --- 9,13 ---- ./usr/sbin/dnetinfo ./usr/sbin/multinet + ./usr/sbin/copynodes ./sbin/mount.dapfs ./usr/bin/dndir *************** *** 35,38 **** --- 36,40 ---- ./usr/share/man/man8/dnetinfo.8 ./usr/share/man/man8/multinet.8 + ./usr/share/man/man8/copynodes.8 ./usr/share/man/man8/mount.dapfs.8 ./usr/share/man/man5/vmsmail.conf.5 |
From: Christine C. <chr...@us...> - 2008-09-03 15:24:54
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24696/apps Modified Files: Makefile Log Message: Add copynodes to packaging systems Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/Makefile,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** Makefile 3 Sep 2008 15:00:55 -0000 1.13 --- Makefile 3 Sep 2008 15:24:50 -0000 1.14 *************** *** 71,74 **** --- 71,75 ---- install -m 0700 setether.sh $(prefix)/sbin/setether install -m 0755 $(STRIPBIN) $(PROG7) $(prefix)/sbin + install -m 0755 $(STRIPBIN) $(PROG8) $(prefix)/sbin install -m 0644 $(MANPAGES1) $(manprefix)/man/man1 install -m 0644 $(MANPAGES5) $(manprefix)/man/man5 |
From: Christine C. <chr...@us...> - 2008-09-03 15:14:52
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20632 Added Files: copynodes.8 Log Message: Add a man page for copynodes --- NEW FILE: copynodes.8 --- .TH COPYNODES 8 "September 03 2008" "DECnet utilities" .SH NAME copynodes \- copy a list of nodes from a remote DEC system .SH SYNOPSIS .B copynodes <nodename> .br .SH DESCRIPTION .PP .br This program will generate a decnet.conf file by contacting a remote DECnet host (running VMS or RSX-11) and doing the equivalent of "NCP COPY KNOWN NODES". The resulting file can be copied over the existing decnet.conf file if you like. .br You do need a fully-functioning DECnet system befor using this command but you don't need any nodes other than the executor defined in decnet.conf. copynodes will copy the executor information already there into the new file. .br The program copies its output to standard output. It is strongly recommended that you review it before replacing an existing /etc/decnet.conf file. .br The node name can also be a node address if yu don't have any nodes defined in your existing decnet.conf. .SH EXAMPLE # copynodes 3.34 > /etc/decnet.conf .SH SEE ALSO .BR decnet.conf "(5), " setether "(8)" |
From: Christine C. <chr...@us...> - 2008-09-03 15:07:24
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17745 Modified Files: copynodes.c Log Message: Tidy Index: copynodes.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/copynodes.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** copynodes.c 3 Sep 2008 15:00:55 -0000 1.1 --- copynodes.c 3 Sep 2008 15:07:21 -0000 1.2 *************** *** 14,20 **** */ - #define _FILE_OFFSET_BITS 64 - #define FUSE_USE_VERSION 22 - #include <stdio.h> #include <stdlib.h> --- 14,17 ---- *************** *** 36,40 **** ! static int get_object_info(char *nodename) { struct accessdata_dn accessdata; --- 33,37 ---- ! static int get_node_list(char *nodename) { struct accessdata_dn accessdata; *************** *** 45,50 **** struct nodeent *np; struct sockaddr_dn sockaddr; - fd_set fds; - struct timeval tv; char *exec_dev; struct dn_naddr *exec_addr; --- 42,45 ---- *************** *** 53,57 **** char *local_user; struct nodeent *exec_node; ! char command[] = {0x14, 0, 0xff}; // Get exec data as that's not in the remote node list! --- 48,52 ---- char *local_user; struct nodeent *exec_node; ! char command[] = {0x14, 0, 0xff}; // NICE Command to fetch all known nodes // Get exec data as that's not in the remote node list! *************** *** 85,89 **** --- 80,86 ---- } else + { accessdata.acc_acc[0] = '\0'; + } np = getnodebyname(nodename); *************** *** 94,108 **** } - // Provide access control and proxy information - if (setsockopt(sockfd, DNPROTO_NSP, SO_CONACCESS, &accessdata, - sizeof(accessdata)) < 0) - { - return -1; - } - /* Open up object number 0 with the name of the task */ sockaddr.sdn_family = AF_DECnet; sockaddr.sdn_flags = 0x00; ! sockaddr.sdn_objnum = 0x13; // NML sockaddr.sdn_objnamel = 0; memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); --- 91,98 ---- } /* Open up object number 0 with the name of the task */ sockaddr.sdn_family = AF_DECnet; sockaddr.sdn_flags = 0x00; ! sockaddr.sdn_objnum = 19; // NML_OBJECT sockaddr.sdn_objnamel = 0; memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); *************** *** 122,150 **** } ! // Wait for completion (not for ever!!) ! FD_ZERO(&fds); ! FD_SET(sockfd, &fds); ! tv.tv_usec = 0; ! tv.tv_sec = 3; ! status = select(sockfd+1, &fds, NULL, NULL, &tv); ! if (status <= 0) { - close(sockfd); - return -1; - } - - do { status = read(sockfd, reply, BUFLEN); if (reply[0] == 2) continue; // Success - data to come ! if (reply[0] == -1) { fprintf(stderr, "error %d: %s\n", reply[1] | reply[2]<<8, reply+3); break; } ! if (reply[0] == 1) { unsigned int namelen; // Data response ! switch (reply[3]) { case 0: // node nodeaddr = reply[4] | reply[5] << 8; --- 112,132 ---- } ! do { status = read(sockfd, reply, BUFLEN); if (reply[0] == 2) continue; // Success - data to come ! if (reply[0] == -1) ! { fprintf(stderr, "error %d: %s\n", reply[1] | reply[2]<<8, reply+3); break; } ! if (reply[0] == 1) ! { unsigned int namelen; // Data response ! switch (reply[3]) ! { case 0: // node nodeaddr = reply[4] | reply[5] << 8; *************** *** 162,166 **** default: // more ? break; ! } if (reply[0] == 128) --- 144,148 ---- default: // more ? break; ! } if (reply[0] == 128) *************** *** 176,181 **** int main(int argc, char *argv[]) { ! if (argc < 2) { ! fprintf(stderr, "\nusage %s <node>\n\n", argv[0]); fprintf(stderr, " Generates a decnet.conf file from another node's\n"); --- 158,163 ---- int main(int argc, char *argv[]) { ! if (argc < 2) ! { fprintf(stderr, "\nusage %s <node>\n\n", argv[0]); fprintf(stderr, " Generates a decnet.conf file from another node's\n"); *************** *** 184,187 **** } ! return get_object_info(argv[1]); } --- 166,169 ---- } ! return get_node_list(argv[1]); } |
From: Christine C. <chr...@us...> - 2008-09-03 15:00:58
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15016 Modified Files: Makefile Added Files: copynodes.c Removed Files: mknodes.c Log Message: copynodes is a more descriptive name --- NEW FILE: copynodes.c --- /****************************************************************************** (c) 2008 Christine Caulfield chr...@gm... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ****************************************************************************** */ #define _FILE_OFFSET_BITS 64 #define FUSE_USE_VERSION 22 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <ctype.h> #include <sys/select.h> #include <sys/socket.h> #include <netdnet/dn.h> #include <netdnet/dnetdb.h> #define BUFLEN 4096 static void makelower(char *s) { int i; for (i=0; i<strlen(s); i++) s[i] = tolower(s[i]); } static int get_object_info(char *nodename) { struct accessdata_dn accessdata; char node[BUFLEN]; unsigned char reply[BUFLEN]; int sockfd; int status; struct nodeent *np; struct sockaddr_dn sockaddr; fd_set fds; struct timeval tv; char *exec_dev; struct dn_naddr *exec_addr; unsigned int exec_area; unsigned int nodeaddr; char *local_user; struct nodeent *exec_node; char command[] = {0x14, 0, 0xff}; // Get exec data as that's not in the remote node list! exec_addr = getnodeadd(); exec_area = exec_addr->a_addr[1]>>2; nodeaddr = exec_addr->a_addr[0] | exec_addr->a_addr[1]<<8; exec_dev = getexecdev(); exec_node = getnodebyaddr((char*)exec_addr->a_addr, 2, AF_DECnet); // Print header printf("\ #\n\ # DECnet hosts file\n\ #\n\ #Node Node Name Node Line Line\n\ #Type Address Tag Name Tag Device\n\ #----- ------- ----- ----- ----- ------\n"); // Print exec line printf("executor\t%d.%d\t\tname\t\t%s\tline\t%s\n", nodeaddr >> 10, nodeaddr & 0x1FF, exec_node->n_name, exec_dev); memset(&accessdata, 0, sizeof(accessdata)); memset(&sockaddr, 0, sizeof(sockaddr)); if (!local_user) local_user = getenv("USER"); if (local_user) { strcpy((char *)accessdata.acc_acc, local_user); accessdata.acc_accl = strlen((char *)accessdata.acc_acc); } else accessdata.acc_acc[0] = '\0'; np = getnodebyname(nodename); if ((sockfd=socket(AF_DECnet, SOCK_SEQPACKET, DNPROTO_NSP)) == -1) { return -1; } // Provide access control and proxy information if (setsockopt(sockfd, DNPROTO_NSP, SO_CONACCESS, &accessdata, sizeof(accessdata)) < 0) { return -1; } /* Open up object number 0 with the name of the task */ sockaddr.sdn_family = AF_DECnet; sockaddr.sdn_flags = 0x00; sockaddr.sdn_objnum = 0x13; // NML sockaddr.sdn_objnamel = 0; memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); sockaddr.sdn_add.a_len = 2; if (connect(sockfd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) < 0) { close(sockfd); return -1; } // Now run the command if (write(sockfd, command, sizeof(command)) < (int)sizeof(command)) { close(sockfd); return -1; } // Wait for completion (not for ever!!) FD_ZERO(&fds); FD_SET(sockfd, &fds); tv.tv_usec = 0; tv.tv_sec = 3; status = select(sockfd+1, &fds, NULL, NULL, &tv); if (status <= 0) { close(sockfd); return -1; } do { status = read(sockfd, reply, BUFLEN); if (reply[0] == 2) continue; // Success - data to come if (reply[0] == -1) { fprintf(stderr, "error %d: %s\n", reply[1] | reply[2]<<8, reply+3); break; } if (reply[0] == 1) { unsigned int namelen; // Data response switch (reply[3]) { case 0: // node nodeaddr = reply[4] | reply[5] << 8; if (nodeaddr >> 10 == 0) // In exec area nodeaddr |= exec_area << 10; namelen = reply[6] & 0x7f; // Top bit indicates EXEC ? memcpy(node, reply+7, namelen); node[namelen] = 0; makelower(node); printf("node\t\t%d.%d\t\tname\t\t%s\n", nodeaddr >> 10, nodeaddr & 0x1FF, node); // More info here but we don't need it for now. break; default: // more ? break; } if (reply[0] == 128) break; // end of data } } while (status > 0 && reply[0] != 128); close (sockfd); return status; } int main(int argc, char *argv[]) { if (argc < 2) { fprintf(stderr, "\nusage %s <node>\n\n", argv[0]); fprintf(stderr, " Generates a decnet.conf file from another node's\n"); fprintf(stderr, " known node list\n\n"); return 1; } return get_object_info(argv[1]); } Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/Makefile,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** Makefile 3 Sep 2008 14:55:41 -0000 1.12 --- Makefile 3 Sep 2008 15:00:55 -0000 1.13 *************** *** 14,18 **** PROG5OBJS = ctermd.o PROG7OBJS = rmtermd.o ! PROG8OBJS = mknodes.o PROG1 = startnet --- 14,18 ---- PROG5OBJS = ctermd.o PROG7OBJS = rmtermd.o ! PROG8OBJS = copynodes.o PROG1 = startnet *************** *** 21,28 **** PROG5 = ctermd PROG7 = rmtermd ! PROG8 = mknodes MANPAGES1 = sethost.1 dnping.1 MANPAGES5 = decnet.conf.5 ! MANPAGES8 = ctermd.8 rmtermd.8 setether.8 mknodes.i ALLPROGS=$(PROG1) $(PROG2) $(PROG4) $(PROG5) $(PROG7) $(PROG8) --- 21,28 ---- PROG5 = ctermd PROG7 = rmtermd ! PROG8 = copynodes MANPAGES1 = sethost.1 dnping.1 MANPAGES5 = decnet.conf.5 ! MANPAGES8 = ctermd.8 rmtermd.8 setether.8 copynodes.8 ALLPROGS=$(PROG1) $(PROG2) $(PROG4) $(PROG5) $(PROG7) $(PROG8) --- mknodes.c DELETED --- |
From: Christine C. <chr...@us...> - 2008-09-03 14:55:45
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12965 Modified Files: Makefile Added Files: mknodes.c Log Message: Add mknodes program to fetch a nodes list from another host. --- NEW FILE: mknodes.c --- /****************************************************************************** (c) 2008 Christine Caulfield chr...@gm... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ****************************************************************************** */ #define _FILE_OFFSET_BITS 64 #define FUSE_USE_VERSION 22 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <ctype.h> #include <sys/select.h> #include <sys/socket.h> #include <netdnet/dn.h> #include <netdnet/dnetdb.h> #define BUFLEN 4096 static void makelower(char *s) { int i; for (i=0; i<strlen(s); i++) s[i] = tolower(s[i]); } static int get_object_info(char *nodename) { struct accessdata_dn accessdata; char node[BUFLEN]; unsigned char reply[BUFLEN]; int sockfd; int status; struct nodeent *np; struct sockaddr_dn sockaddr; fd_set fds; struct timeval tv; char *exec_dev; struct dn_naddr *exec_addr; unsigned int exec_area; unsigned int nodeaddr; char *local_user; struct nodeent *exec_node; char command[] = {0x14, 0, 0xff}; // Get exec data as that's not in the remote node list! exec_addr = getnodeadd(); exec_area = exec_addr->a_addr[1]>>2; nodeaddr = exec_addr->a_addr[0] | exec_addr->a_addr[1]<<8; exec_dev = getexecdev(); exec_node = getnodebyaddr((char*)exec_addr->a_addr, 2, AF_DECnet); // Print header printf("\ #\n\ # DECnet hosts file\n\ #\n\ #Node Node Name Node Line Line\n\ #Type Address Tag Name Tag Device\n\ #----- ------- ----- ----- ----- ------\n"); // Print exec line printf("executor\t%d.%d\t\tname\t\t%s\tline\t%s\n", nodeaddr >> 10, nodeaddr & 0x1FF, exec_node->n_name, exec_dev); memset(&accessdata, 0, sizeof(accessdata)); memset(&sockaddr, 0, sizeof(sockaddr)); if (!local_user) local_user = getenv("USER"); if (local_user) { strcpy((char *)accessdata.acc_acc, local_user); accessdata.acc_accl = strlen((char *)accessdata.acc_acc); } else accessdata.acc_acc[0] = '\0'; np = getnodebyname(nodename); if ((sockfd=socket(AF_DECnet, SOCK_SEQPACKET, DNPROTO_NSP)) == -1) { return -1; } // Provide access control and proxy information if (setsockopt(sockfd, DNPROTO_NSP, SO_CONACCESS, &accessdata, sizeof(accessdata)) < 0) { return -1; } /* Open up object number 0 with the name of the task */ sockaddr.sdn_family = AF_DECnet; sockaddr.sdn_flags = 0x00; sockaddr.sdn_objnum = 0x13; // NML sockaddr.sdn_objnamel = 0; memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); sockaddr.sdn_add.a_len = 2; if (connect(sockfd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) < 0) { close(sockfd); return -1; } // Now run the command if (write(sockfd, command, sizeof(command)) < (int)sizeof(command)) { close(sockfd); return -1; } // Wait for completion (not for ever!!) FD_ZERO(&fds); FD_SET(sockfd, &fds); tv.tv_usec = 0; tv.tv_sec = 3; status = select(sockfd+1, &fds, NULL, NULL, &tv); if (status <= 0) { close(sockfd); return -1; } do { status = read(sockfd, reply, BUFLEN); if (reply[0] == 2) continue; // Success - data to come if (reply[0] == -1) { fprintf(stderr, "error %d: %s\n", reply[1] | reply[2]<<8, reply+3); break; } if (reply[0] == 1) { unsigned int namelen; // Data response switch (reply[3]) { case 0: // node nodeaddr = reply[4] | reply[5] << 8; if (nodeaddr >> 10 == 0) // In exec area nodeaddr |= exec_area << 10; namelen = reply[6] & 0x7f; // Top bit indicates EXEC ? memcpy(node, reply+7, namelen); node[namelen] = 0; makelower(node); printf("node\t\t%d.%d\t\tname\t\t%s\n", nodeaddr >> 10, nodeaddr & 0x1FF, node); // More info here but we don't need it for now. break; default: // more ? break; } if (reply[0] == 128) break; // end of data } } while (status > 0 && reply[0] != 128); close (sockfd); return status; } int main(int argc, char *argv[]) { if (argc < 2) { fprintf(stderr, "\nusage %s <node>\n\n", argv[0]); fprintf(stderr, " Generates a decnet.conf file from another node's\n"); fprintf(stderr, " known node list\n\n"); return 1; } return get_object_info(argv[1]); } Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/Makefile,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** Makefile 11 Mar 2008 16:56:47 -0000 1.11 --- Makefile 3 Sep 2008 14:55:41 -0000 1.12 *************** *** 14,17 **** --- 14,18 ---- PROG5OBJS = ctermd.o PROG7OBJS = rmtermd.o + PROG8OBJS = mknodes.o PROG1 = startnet *************** *** 20,28 **** PROG5 = ctermd PROG7 = rmtermd MANPAGES1 = sethost.1 dnping.1 MANPAGES5 = decnet.conf.5 ! MANPAGES8 = ctermd.8 rmtermd.8 setether.8 ! ALLPROGS=$(PROG1) $(PROG2) $(PROG4) $(PROG5) $(PROG7) all: $(ALLPROGS) --- 21,30 ---- PROG5 = ctermd PROG7 = rmtermd + PROG8 = mknodes MANPAGES1 = sethost.1 dnping.1 MANPAGES5 = decnet.conf.5 ! MANPAGES8 = ctermd.8 rmtermd.8 setether.8 mknodes.i ! ALLPROGS=$(PROG1) $(PROG2) $(PROG4) $(PROG5) $(PROG7) $(PROG8) all: $(ALLPROGS) *************** *** 46,49 **** --- 48,55 ---- $(CC) -o $@ $(CFLAGS) $(PROG7OBJS) $(LIBDAEMON) $(LIBDNET) $(PTSLIBS) + $(PROG8): $(PROG8OBJS) $(DEPLIBDNET) + $(CC) -o $@ $(CFLAGS) $(PROG8OBJS) $(LIBDNET) + + dep: $(CC) $(CFLAGS) -MM *.c >.depend 2>/dev/null |
From: Christine C. <chr...@us...> - 2008-09-02 16:22:22
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15456/dnroute Modified Files: dnroute.conf.sample Removed Files: README Log Message: Move the dnroute README into the Documentation directory Index: dnroute.conf.sample =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/dnroute.conf.sample,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dnroute.conf.sample 5 Apr 2006 07:17:44 -0000 1.1 --- dnroute.conf.sample 2 Sep 2008 16:13:32 -0000 1.2 *************** *** 4,8 **** # level 2 ! # Uncomment this to prevent dnrout from automatically setting routes for area 3 # manual 3 --- 4,8 ---- # level 2 ! # Uncomment this to prevent dnroute from automatically setting routes for area 3 # manual 3 --- README DELETED --- |
From: Christine C. <chr...@us...> - 2008-09-02 16:13:36
|
Update of /cvsroot/linux-decnet/dnprogs/Documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15456/Documentation Added Files: dnroute.README Log Message: Move the dnroute README into the Documentation directory --- NEW FILE: dnroute.README --- This is dnroute - the DECnet routing daemon What it will do is to send out level 1 routing messages containing the local neighbour information for this node. If you enable routing for your kernel then this daemon will make it look as though it can route DECnet packets to other DECnet nodes. It will also, optionally, send level2 routing messages showing which other areas can be seen. It also sets up area routes to remote areas that are seen via these messages and adjusts those routes according to the relative cost of each route. The router priority is NOT currrently taken into account cos it's not currently available to userspace, but the cost bit seems to work pretty well. Use the ip command to show the routes set up by the daemon and report any problems. ip -D route NOTES: echo "1" into /proc/sys/net/decnet/conf/eth<x>/forwarding echo "1" into /proc/sys/net/decnet/conf/eth<x>/priority (Must NOT be 0) |
From: Christine C. <chr...@us...> - 2008-08-24 13:18:20
|
Update of /cvsroot/linux-decnet/latd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7785 Modified Files: aclocal.m4 configure.in connection.cc localport.cc server.h utils.cc utils.h Log Message: Update autotools Fix some names 1.27 release changelog Index: aclocal.m4 =================================================================== RCS file: /cvsroot/linux-decnet/latd/aclocal.m4,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** aclocal.m4 20 Aug 2008 13:10:23 -0000 1.4 --- aclocal.m4 24 Aug 2008 13:18:16 -0000 1.5 *************** *** 1,6 **** ! # generated automatically by aclocal 1.10 -*- Autoconf -*- ! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, ! # 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, --- 1,6 ---- ! # generated automatically by aclocal 1.7.9 -*- Autoconf -*- ! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 [...5329 lines suppressed...] - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar <conftest.tar]) - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - AC_SUBST([am__tar]) - AC_SUBST([am__untar]) - ]) # _AM_PROG_TAR - - m4_include([acinclude.m4]) --- 4842,4843 ---- Index: configure.in =================================================================== RCS file: /cvsroot/linux-decnet/latd/configure.in,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** configure.in 7 Aug 2006 08:09:30 -0000 1.16 --- configure.in 24 Aug 2008 13:18:16 -0000 1.17 *************** *** 3,7 **** dnl Checks that we are given a good source directory. AC_INIT(latcp.cc) ! AM_INIT_AUTOMAKE(latd, 1.25) dnl Checks for programs. --- 3,7 ---- dnl Checks that we are given a good source directory. AC_INIT(latcp.cc) ! AM_INIT_AUTOMAKE(latd, 1.27) dnl Checks for programs. Index: connection.cc =================================================================== RCS file: /cvsroot/linux-decnet/latd/connection.cc,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -r1.73 -r1.74 *** connection.cc 20 Aug 2008 13:10:23 -0000 1.73 --- connection.cc 24 Aug 2008 13:18:16 -0000 1.74 *************** *** 86,90 **** highest_session = 1; max_window_size = msg->exqueued+1; ! max_window_size = 1; // PJC All we can manage window_size = 0; lat_eco = msg->latver_eco; --- 86,90 ---- highest_session = 1; max_window_size = msg->exqueued+1; ! max_window_size = 1; // All we can manage window_size = 0; lat_eco = msg->latver_eco; *************** *** 1304,1308 **** max_window_size = reply->exqueued+1; ! max_window_size = 1; // PJC All we can manage window_size = 0; // need_ack = false; --- 1304,1308 ---- max_window_size = reply->exqueued+1; ! max_window_size = 1; // All we can manage window_size = 0; // need_ack = false; Index: localport.cc =================================================================== RCS file: /cvsroot/linux-decnet/latd/localport.cc,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** localport.cc 20 Aug 2008 13:10:23 -0000 1.17 --- localport.cc 24 Aug 2008 13:18:16 -0000 1.18 *************** *** 89,93 **** debuglog(("Dummy service NODE: %s\n", remnode.c_str())); LATServer::Instance()->add_slave_node(remnode.c_str()); ! // PJC ??? wot's this ?? LATServer::Instance()->send_enq(remnode.c_str()); } --- 89,93 ---- debuglog(("Dummy service NODE: %s\n", remnode.c_str())); LATServer::Instance()->add_slave_node(remnode.c_str()); ! // CC ??? wot's this ?? LATServer::Instance()->send_enq(remnode.c_str()); } Index: server.h =================================================================== RCS file: /cvsroot/linux-decnet/latd/server.h,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -r1.47 -r1.48 *** server.h 20 Aug 2008 13:10:23 -0000 1.47 --- server.h 24 Aug 2008 13:18:16 -0000 1.48 *************** *** 87,91 **** int rating; ! int alarm_mode; // For slave solicit .. PJC investigate unsigned char local_name[256]; // Node name --- 87,91 ---- int rating; ! int alarm_mode; // For slave solicit .. CC investigate unsigned char local_name[256]; // Node name Index: utils.cc =================================================================== RCS file: /cvsroot/linux-decnet/latd/utils.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** utils.cc 20 Aug 2008 13:10:23 -0000 1.9 --- utils.cc 24 Aug 2008 13:18:16 -0000 1.10 *************** *** 44,48 **** #ifdef VERBOSE_DEBUG ! void pjc_debuglog(char *fmt, ...) { static time_t starttime = time(NULL); --- 44,48 ---- #ifdef VERBOSE_DEBUG ! void chrissie_debuglog(char *fmt, ...) { static time_t starttime = time(NULL); *************** *** 57,61 **** #ifndef HAVE_OPENPTY ! int pjc_openpty(int *master, int *slave, char *a, char *b, char *d) { char ptyname[] = "/dev/ptyCP"; --- 57,61 ---- #ifndef HAVE_OPENPTY ! int chrissie_openpty(int *master, int *slave, char *a, char *b, char *d) { char ptyname[] = "/dev/ptyCP"; Index: utils.h =================================================================== RCS file: /cvsroot/linux-decnet/latd/utils.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** utils.h 20 Aug 2008 13:10:23 -0000 1.9 --- utils.h 24 Aug 2008 13:18:16 -0000 1.10 *************** *** 44,61 **** // RedHat 5 has a broken openpty() #ifdef INTERNAL_OPENPTY ! int pjc_openpty(int*,int*, char*,char*,char*); ! #define openpty pjc_openpty #endif #if defined(VERBOSE_DEBUG) #include <stdarg.h> ! extern void pjc_debuglog(char *,...); #endif #ifdef VERBOSE_DEBUG ! #define debuglog(x) pjc_debuglog x //#include <stdarg.h> ! //extern void pjc_debuglog(char *,...); #else #define debuglog(x) --- 44,61 ---- // RedHat 5 has a broken openpty() #ifdef INTERNAL_OPENPTY ! int chrissie_openpty(int*,int*, char*,char*,char*); ! #define openpty chrissie_openpty #endif #if defined(VERBOSE_DEBUG) #include <stdarg.h> ! extern void chrissie_debuglog(char *,...); #endif #ifdef VERBOSE_DEBUG ! #define debuglog(x) chrissie_debuglog x //#include <stdarg.h> ! //extern void chrissie_debuglog(char *,...); #else #define debuglog(x) |
From: Christine C. <chr...@us...> - 2008-08-24 13:18:20
|
Update of /cvsroot/linux-decnet/latd/debian In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7785/debian Modified Files: changelog Log Message: Update autotools Fix some names 1.27 release changelog Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/latd/debian/changelog,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** changelog 24 Jan 2008 09:24:54 -0000 1.25 --- changelog 24 Aug 2008 13:18:16 -0000 1.26 *************** *** 1,2 **** --- 1,9 ---- + latd (1.27) unstable; urgency=low + + * Fix copyrights + * Update auto tools + + -- Christine Caulfield <Chr...@go...> Sun, 24 Aug 2008 14:10:57 +0100 + latd (1.26.2) unstable; urgency=low |
From: Christine C. <chr...@us...> - 2008-08-24 12:51:02
|
Update of /cvsroot/linux-decnet/dnprogs/mail/uulib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29142/mail/uulib Modified Files: uustring.h Log Message: 2.45 Index: uustring.h =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/mail/uulib/uustring.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** uustring.h 26 Apr 2000 08:22:04 -0000 1.1.1.1 --- uustring.h 24 Aug 2008 12:50:56 -0000 1.2 *************** *** 1,3 **** ! /* extracted from Id: uustring.c,v 1.4 1996/08/26 20:11:35 fp Exp */ #define S_NOT_OPEN_SOURCE 1 #define S_NOT_OPEN_TARGET 2 --- 1,3 ---- ! /* extracted from Id: uustring.c,v 1.2 2008/08/20 12:43:59 chrissie_c Exp */ #define S_NOT_OPEN_SOURCE 1 #define S_NOT_OPEN_TARGET 2 |
From: Christine C. <chr...@us...> - 2008-08-24 12:51:02
|
Update of /cvsroot/linux-decnet/dnprogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29142 Modified Files: Makefile.common Log Message: 2.45 Index: Makefile.common =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile.common,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -r1.46 -r1.47 *** Makefile.common 1 May 2008 07:56:36 -0000 1.46 --- Makefile.common 24 Aug 2008 12:50:56 -0000 1.47 *************** *** 59,63 **** #Package version MAJOR_VERSION=2 ! MINOR_VERSION=44 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) --- 59,63 ---- #Package version MAJOR_VERSION=2 ! MINOR_VERSION=45 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) |
From: Christine C. <chr...@us...> - 2008-08-24 12:50:59
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29142/debian Modified Files: changelog Log Message: 2.45 Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -r1.62 -r1.63 *** changelog 24 Aug 2008 09:31:28 -0000 1.62 --- changelog 24 Aug 2008 12:50:56 -0000 1.63 *************** *** 1,2 **** --- 1,10 ---- + dnprogs (2.45) unstable; urgency=low + + * Make multinet daemon fork into the background + * Fix dnetinfo so it conforms to the man page + * Fix crash in dnroute daemon + + -- Christine Caulfield <Chr...@go...> Sun, 24 Aug 2008 13:41:08 +0100 + dnprogs (2.44) unstable; urgency=low *************** *** 4,9 **** --- 12,19 ---- Closes: #495513 * Some multinet fixes + * Add SIGHUP feature to multinet * Fix copyright information + -- Christine Caulfield <Chr...@go...> Sat, 23 Aug 2008 14:18:19 +0100 dnprogs (2.43.2) unstable; urgency=low |
From: Christine C. <chr...@us...> - 2008-08-24 09:31:32
|
Update of /cvsroot/linux-decnet/dnprogs/phone In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575/phone Modified Files: backend.c gtkphonesig.c gtkphonesrc.c Log Message: More expunging. Index: backend.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/backend.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** backend.c 19 Jun 2006 15:37:35 -0000 1.4 --- backend.c 24 Aug 2008 09:31:28 -0000 1.5 *************** *** 436,440 **** cr.delete_caller(fd); break; ! case 10: // PJC wot's this ?? write(fd, "\1", 1); break; --- 436,440 ---- cr.delete_caller(fd); break; ! case 10: // CC wot's this ?? write(fd, "\1", 1); break; Index: gtkphonesig.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/gtkphonesig.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** gtkphonesig.c 20 Aug 2008 12:43:59 -0000 1.3 --- gtkphonesig.c 24 Aug 2008 09:31:28 -0000 1.4 *************** *** 2,6 **** * Copyright (C) 1999 Christine Caulfield * ! * PJC: Quite a lot of this code was generated by GLADE a GUI builder * for GTK+ * --- 2,6 ---- * Copyright (C) 1999 Christine Caulfield * ! * CC: Quite a lot of this code was generated by GLADE a GUI builder * for GTK+ * Index: gtkphonesrc.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/gtkphonesrc.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** gtkphonesrc.c 20 Aug 2008 12:43:59 -0000 1.2 --- gtkphonesrc.c 24 Aug 2008 09:31:28 -0000 1.3 *************** *** 2,6 **** * Copyright (C) 1999 Christine Caulfield * ! * PJC: Quite a lot of this code was generated by GLADE, a GUI builder * for GTK+ * --- 2,6 ---- * Copyright (C) 1999 Christine Caulfield * ! * CC: Quite a lot of this code was generated by GLADE, a GUI builder * for GTK+ * |
From: Christine C. <chr...@us...> - 2008-08-24 09:31:32
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575/debian Modified Files: changelog Log Message: More expunging. Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -r1.61 -r1.62 *** changelog 20 Aug 2008 12:43:58 -0000 1.61 --- changelog 24 Aug 2008 09:31:28 -0000 1.62 *************** *** 1,5 **** dnprogs (2.44) unstable; urgency=low - * Separate library version numbers from the package version. * Fix typo in man page for sendvmsmail Closes: #495513 --- 1,4 ---- |
From: Christine C. <chr...@us...> - 2008-08-24 09:31:32
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575/dnroute Modified Files: get_neigh.c routing_msg.c Log Message: More expunging. Index: get_neigh.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/get_neigh.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** get_neigh.c 23 Aug 2008 14:50:12 -0000 1.19 --- get_neigh.c 24 Aug 2008 09:31:28 -0000 1.20 *************** *** 787,791 **** start_id = buf[i] | buf[i+1]<<8; i+=2; /* Start of entries */ ! debuglog("PJC start_id = %d, num_ids = %d pos=%d\n", start_id, num_ids, i); for (num = 0; num<num_ids; num++) --- 787,791 ---- start_id = buf[i] | buf[i+1]<<8; i+=2; /* Start of entries */ ! debuglog("CC start_id = %d, num_ids = %d pos=%d\n", start_id, num_ids, i); for (num = 0; num<num_ids; num++) *************** *** 876,880 **** i+=2; /* Start of entries */ ! debuglog("PJC start_id = %d, num_ids = %d\n", start_id, num_ids); for (num = 0; num<num_ids; num++) { --- 876,880 ---- i+=2; /* Start of entries */ ! debuglog("CC start_id = %d, num_ids = %d\n", start_id, num_ids); for (num = 0; num<num_ids; num++) { Index: routing_msg.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/routing_msg.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** routing_msg.c 20 Aug 2008 15:52:23 -0000 1.6 --- routing_msg.c 24 Aug 2008 09:31:28 -0000 1.7 *************** *** 90,94 **** len = n->nlmsg_len - sizeof(*n) - sizeof(*rtm); ! printf("PJC: got rtnetlink message, len = %d\n", len); #define DUMP_PACKET --- 90,94 ---- len = n->nlmsg_len - sizeof(*n) - sizeof(*rtm); ! printf("CC: got rtnetlink message, len = %d\n", len); #define DUMP_PACKET |
From: Christine C. <chr...@us...> - 2008-08-24 09:31:32
|
Update of /cvsroot/linux-decnet/dnprogs/dnlogin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575/dnlogin Modified Files: cterm.c tty.c Log Message: More expunging. Index: cterm.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnlogin/cterm.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** cterm.c 20 Aug 2008 12:43:58 -0000 1.29 --- cterm.c 24 Aug 2008 09:31:28 -0000 1.30 *************** *** 218,222 **** if (flags & 0x800) tty_set_noecho(); ! // PJC not happy with this last clause but editors seem to need it. if (flags & 0x8 && buf[ptr+term_len] != '\n' && buf[ptr+term_len+1] != '\n' && eoprompt) --- 218,222 ---- if (flags & 0x800) tty_set_noecho(); ! // CC not happy with this last clause but editors seem to need it. if (flags & 0x8 && buf[ptr+term_len] != '\n' && buf[ptr+term_len+1] != '\n' && eoprompt) *************** *** 349,353 **** send_prepostfix(((flags >> 8) & 3), postfixdata); // QQ ! // PJC: This broke to RSX, but was wrong -- TODO: Retest if ((flags >> 10) & 1) // S send_write_complete(); --- 349,353 ---- send_prepostfix(((flags >> 8) & 3), postfixdata); // QQ ! // CC: This broke to RSX, but was wrong -- TODO: Retest if ((flags >> 10) & 1) // S send_write_complete(); Index: tty.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnlogin/tty.c,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** tty.c 20 Aug 2008 12:43:58 -0000 1.32 --- tty.c 24 Aug 2008 09:31:28 -0000 1.33 *************** *** 308,312 **** /* All control chars except ^R ^U ^W, BS & HT */ /* ie 18, 21, 23, 8, 9 */ ! /* PJC: also remove ^A(1) ^E(5) ^X(29) for line-editting.. CHECK!! */ memset(terminators, 0, sizeof(terminators)); --- 308,312 ---- /* All control chars except ^R ^U ^W, BS & HT */ /* ie 18, 21, 23, 8, 9 */ ! /* CC: also remove ^A(1) ^E(5) ^X(29) for line-editting.. CHECK!! */ memset(terminators, 0, sizeof(terminators)); *************** *** 491,495 **** /* Swap LF for CR */ ! //PJC: is this right?? if (buf[i] == '\n') buf[i] = '\r'; --- 491,495 ---- /* Swap LF for CR */ ! //CC: is this right?? if (buf[i] == '\n') buf[i] = '\r'; |
From: Christine C. <chr...@us...> - 2008-08-24 09:31:32
|
Update of /cvsroot/linux-decnet/dnprogs/librms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575/librms Modified Files: t_example.c Log Message: More expunging. Index: t_example.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/librms/t_example.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** t_example.c 13 Sep 2001 13:51:24 -0000 1.3 --- t_example.c 24 Aug 2008 09:31:28 -0000 1.4 *************** *** 26,30 **** /* Look for the record with my name in it. We don't need rac=key here because librms gives us it for free */ ! memcpy(key, "\0\0\0PJC\0", keylen); got = rms_t_read(h, b, sizeof(b), "ksz=%d,key=%*s,kop=kge", keylen, keylen, key); if (got > 0) --- 26,30 ---- /* Look for the record with my name in it. We don't need rac=key here because librms gives us it for free */ ! memcpy(key, "\0\0\0CHRISSIE\0", keylen); got = rms_t_read(h, b, sizeof(b), "ksz=%d,key=%*s,kop=kge", keylen, keylen, key); if (got > 0) |
From: Christine C. <chr...@us...> - 2008-08-23 14:50:16
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17602 Modified Files: get_neigh.c Log Message: Fix SEGV in dnroute Index: get_neigh.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/get_neigh.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** get_neigh.c 20 Aug 2008 15:52:23 -0000 1.18 --- get_neigh.c 23 Aug 2008 14:50:12 -0000 1.19 *************** *** 891,897 **** n = dm_hash_lookup_binary(node_hash, (void*)&nodeaddr, 2); ! add_area_routeinfo(num+start_id, ! (entry&0x1FF) + cost[n->interface], ((entry&0x7E00)>>9), ! nodeaddr); } i+=2; --- 891,898 ---- n = dm_hash_lookup_binary(node_hash, (void*)&nodeaddr, 2); ! if (n) ! add_area_routeinfo(num+start_id, ! (entry&0x1FF) + cost[n->interface], ((entry&0x7E00)>>9), ! nodeaddr); } i+=2; |
From: Christine C. <chr...@us...> - 2008-08-23 14:25:20
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7908 Modified Files: dnetinfo.sh Log Message: Make dnetinfo match the man page Index: dnetinfo.sh =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/dnetinfo.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dnetinfo.sh 5 Apr 2006 07:17:44 -0000 1.1 --- dnetinfo.sh 23 Aug 2008 14:25:16 -0000 1.2 *************** *** 16,20 **** } ! if [ "$1" = "-n" ] then show_all --- 16,20 ---- } ! if [ "$1" = "-l" ] then show_all |
From: Christine C. <chr...@us...> - 2008-08-23 13:48:55
|
Update of /cvsroot/linux-decnet/dnprogs/multinet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25577 Modified Files: multinet.c Log Message: Daemonise Index: multinet.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/multinet/multinet.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** multinet.c 20 Aug 2008 13:02:50 -0000 1.10 --- multinet.c 23 Aug 2008 13:48:51 -0000 1.11 *************** *** 678,681 **** --- 678,684 ---- return 2; + if (!verbose) + daemon(0,0); + signal(SIGINT, do_shutdown); signal(SIGTERM, do_shutdown); |
From: Christine C. <chr...@us...> - 2008-08-23 13:17:52
|
Update of /cvsroot/linux-decnet/dnprogs/multinet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13211 Modified Files: multinet.8 Log Message: Mention SIGHUP Index: multinet.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/multinet/multinet.8,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** multinet.8 20 Aug 2008 12:43:59 -0000 1.2 --- multinet.8 23 Aug 2008 13:17:48 -0000 1.3 *************** *** 21,25 **** .br .B remote-host ! IP address or host name of the remote Multinet server. .br .br --- 21,25 ---- .br .B remote-host ! IP address or host name of the remote Multinet server. If you send a HUP signal to the process it will lookup this name again, so you don't need to restart the server if the remote node changes its IP address. .br .br |