linux-decnet-commit Mailing List for DECnet for Linux (Page 42)
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: Patrick C. <pa...@us...> - 2001-10-21 14:24:03
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory usw-pr-cvs1:/tmp/cvs-serv20903/debian Modified Files: changelog Log Message: Use cuserid rather than getlogin to get the username Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** changelog 2001/10/16 15:01:33 1.15 --- changelog 2001/10/21 14:24:00 1.16 *************** *** 1,3 **** ! dnprogs (2.16-1) unstable; urgency=low * Remove pre-increment in FAL so that close-time attributes get --- 1,3 ---- ! dnprogs (2.16-1potato) unstable; urgency=low * Remove pre-increment in FAL so that close-time attributes get |
From: Patrick C. <pa...@us...> - 2001-10-21 14:24:03
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory usw-pr-cvs1:/tmp/cvs-serv20903/apps Modified Files: dnmount.c dnping.c sethost.c Log Message: Use cuserid rather than getlogin to get the username Index: dnmount.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/dnmount.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** dnmount.c 2000/04/26 08:22:03 1.1.1.1 --- dnmount.c 2001/10/21 14:24:00 1.2 *************** *** 2,6 **** /****************************************************************************** (c) 1995-1998 E.M. Serrat ems...@ge... ! 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 --- 2,6 ---- /****************************************************************************** (c) 1995-1998 E.M. Serrat ems...@ge... ! 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 *************** *** 39,43 **** #endif #include <linux/dap_fs.h> ! /* DECnet phase IV limits */ #define MAX_NODE 6 --- 39,43 ---- #endif #include <linux/dap_fs.h> ! /* DECnet phase IV limits */ #define MAX_NODE 6 *************** *** 81,85 **** int i; char *local_user; ! state = NODE; /* Node is mandatory */ --- 81,85 ---- int i; char *local_user; ! state = NODE; /* Node is mandatory */ *************** *** 91,95 **** if (fname[n0] != ':' && fname[n0] != '\"' && fname[n0] != '\'') { ! if (n1 >= MAX_NODE || fname[n0] == ' ' || fname[n0] == '\n') { --- 91,95 ---- if (fname[n0] != ':' && fname[n0] != '\"' && fname[n0] != '\'') { ! if (n1 >= MAX_NODE || fname[n0] == ' ' || fname[n0] == '\n') { *************** *** 214,218 **** directory (node::[patrick]) is provided. Logical names must end with a colon for this to happen or we will not be able to distinguish it ! from a filename EMS: Changed wildcard to *.*;0 so we only get the last version of --- 214,218 ---- directory (node::[patrick]) is provided. Logical names must end with a colon for this to happen or we will not be able to distinguish it ! from a filename EMS: Changed wildcard to *.*;0 so we only get the last version of *************** *** 225,229 **** // Try very hard to get the local username ! local_user = getlogin(); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); --- 225,229 ---- // Try very hard to get the local username ! local_user = cuserid(NULL); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); *************** *** 252,256 **** { int sockfd; ! if ((sockfd=socket(AF_DECnet,SOCK_STREAM,DNPROTO_NSP)) == -1) { perror("socket"); --- 252,256 ---- { int sockfd; ! if ((sockfd=socket(AF_DECnet,SOCK_STREAM,DNPROTO_NSP)) == -1) { perror("socket"); *************** *** 258,272 **** } ! if (setsockopt(sockfd,DNPROTO_NSP,SO_CONACCESS,&accessdata, ! sizeof(accessdata)) < 0) { perror("setsockopt"); exit(-1); } ! ! if (connect(sockfd, (struct sockaddr *)&sockaddr, ! sizeof(sockaddr)) < 0) { perror("socket"); --- 258,272 ---- } ! if (setsockopt(sockfd,DNPROTO_NSP,SO_CONACCESS,&accessdata, ! sizeof(accessdata)) < 0) { perror("setsockopt"); exit(-1); } ! ! if (connect(sockfd, (struct sockaddr *)&sockaddr, ! sizeof(sockaddr)) < 0) { perror("socket"); *************** *** 295,309 **** 0x7C /* WildCrds/Ren/Seg Msgs */ }; ! if ((er=write(sockfd,confmsg,sizeof(confmsg))) < 0) { perror("Send DAP config msg"); exit(-1); ! } if ((er=read(sockfd,buf,sizeof(buf))) < 0) { perror("Recv DAP config msg"); exit(-1); ! } /* Assume that Peer Supports the minimal characteristis we setup here --- 295,309 ---- 0x7C /* WildCrds/Ren/Seg Msgs */ }; ! if ((er=write(sockfd,confmsg,sizeof(confmsg))) < 0) { perror("Send DAP config msg"); exit(-1); ! } if ((er=read(sockfd,buf,sizeof(buf))) < 0) { perror("Recv DAP config msg"); exit(-1); ! } /* Assume that Peer Supports the minimal characteristis we setup here *************** *** 336,341 **** mount_entry.mnt_freq = 0; mount_entry.mnt_passno = 0; - if ( (MFD = open (MOUNTED "~", O_RDWR | O_CREAT | O_EXCL, 0600)) < 0) --- 336,341 ---- mount_entry.mnt_freq = 0; mount_entry.mnt_passno = 0; + if ( (MFD = open (MOUNTED "~", O_RDWR | O_CREAT | O_EXCL, 0600)) < 0) *************** *** 343,347 **** perror("opening /etc/mtab file"); exit(-1); ! } close(MFD); if ( (mtab = setmntent(MOUNTED, "a+")) == NULL) --- 343,347 ---- perror("opening /etc/mtab file"); exit(-1); ! } close(MFD); if ( (mtab = setmntent(MOUNTED, "a+")) == NULL) *************** *** 377,381 **** struct group *grp; char opt; ! memset(&vms_directory,0,sizeof(vms_directory)); memset(&mount_point,0,sizeof(mount_point)); --- 377,381 ---- struct group *grp; char opt; ! memset(&vms_directory,0,sizeof(vms_directory)); memset(&mount_point,0,sizeof(mount_point)); *************** *** 449,453 **** exit(2); } ! if ( (getuid() != 0) && ((getuid() != st.st_uid) || ((st.st_mode & S_IRWXU) != S_IRWXU))) { --- 449,453 ---- exit(2); } ! if ( (getuid() != 0) && ((getuid() != st.st_uid) || ((st.st_mode & S_IRWXU) != S_IRWXU))) { Index: dnping.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/dnping.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dnping.c 2001/03/14 19:41:06 1.2 --- dnping.c 2001/10/21 14:24:00 1.3 *************** *** 3,7 **** Username/Password additions by David G North 1999 Optarg additions by Rob Davies - Feb 2000 ! 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 --- 3,7 ---- Username/Password additions by David G North 1999 Optarg additions by Rob Davies - Feb 2000 ! 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 *************** *** 80,92 **** ! void init_accdata( char *user, char *password, struct accessdata_dn *accessdata) { ! char *local_user = getlogin(); char *cp; if ((options & DNF_DEBUG) && (local_user)) { ! printf("getlogin() - LOCAL USER: %s\n",local_user); } --- 80,92 ---- ! void init_accdata( char *user, char *password, struct accessdata_dn *accessdata) { ! char *local_user = cuserid(NULL); char *cp; if ((options & DNF_DEBUG) && (local_user)) { ! printf("cuserid() - LOCAL USER: %s\n",local_user); } *************** *** 98,102 **** ! /* If the password is "-" and fd 0 is a tty then prompt for a password */ if (password[0] == '-' && password[1] == '\0' && isatty(0)) --- 98,102 ---- ! /* If the password is "-" and fd 0 is a tty then prompt for a password */ if (password[0] == '-' && password[1] == '\0' && isatty(0)) *************** *** 108,114 **** return; } ! } ! memcpy(accessdata->acc_pass, password, MIN(strlen(password),DN_MAXACCL)); accessdata->acc_pass[DN_MAXACCL-1] = '\0'; --- 108,114 ---- return; } ! } ! memcpy(accessdata->acc_pass, password, MIN(strlen(password),DN_MAXACCL)); accessdata->acc_pass[DN_MAXACCL-1] = '\0'; *************** *** 122,130 **** if ((options & DNF_DEBUG) && (local_user)) { ! printf("getenv(LOGNAME) - LOCAL USER: %s\n",local_user); } } ! if (!local_user) { --- 122,130 ---- if ((options & DNF_DEBUG) && (local_user)) { ! printf("getenv(LOGNAME) - LOCAL USER: %s\n",local_user); } } ! if (!local_user) { *************** *** 133,137 **** if ((options & DNF_DEBUG) && (local_user)) { ! printf("getenv(USER) - LOCAL USER: %s\n",local_user); } --- 133,137 ---- if ((options & DNF_DEBUG) && (local_user)) { ! printf("getenv(USER) - LOCAL USER: %s\n",local_user); } *************** *** 140,144 **** if (local_user) { ! strncpy((char *)accessdata->acc_acc, local_user, MIN(strlen(local_user),DN_MAXACCL)); accessdata->acc_acc[DN_MAXACCL-1] = '\0'; --- 140,144 ---- if (local_user) { ! strncpy((char *)accessdata->acc_acc, local_user, MIN(strlen(local_user),DN_MAXACCL)); accessdata->acc_acc[DN_MAXACCL-1] = '\0'; *************** *** 152,156 **** if (options & DNF_DEBUG) { ! printf("LOCAL USER: NULL\n"); } --- 152,156 ---- if (options & DNF_DEBUG) { ! printf("LOCAL USER: NULL\n"); } *************** *** 188,192 **** while ((ch = getopt(argc, argv, "c:di:qs:u:p:vt")) != EOF) { ! switch(ch) { case 'c': /* number of packets to send */ --- 188,192 ---- while ((ch = getopt(argc, argv, "c:di:qs:u:p:vt")) != EOF) { ! switch(ch) { case 'c': /* number of packets to send */ *************** *** 272,276 **** } ! if ((sockfd=socket(AF_DECnet,SOCK_SEQPACKET,DNPROTO_NSP)) == -1) { if ( (options & DNF_QUIET) == 0 ) --- 272,276 ---- } ! if ((sockfd=socket(AF_DECnet,SOCK_SEQPACKET,DNPROTO_NSP)) == -1) { if ( (options & DNF_QUIET) == 0 ) *************** *** 281,285 **** } ! if ((((options & DNF_USERNAME) == 0) && ((options & DNF_PASSWORD) != 0)) || (((options & DNF_USERNAME) != 0) && ((options & DNF_PASSWORD) == 0))) { --- 281,285 ---- } ! if ((((options & DNF_USERNAME) == 0) && ((options & DNF_PASSWORD) != 0)) || (((options & DNF_USERNAME) != 0) && ((options & DNF_PASSWORD) == 0))) { *************** *** 290,294 **** exit(-1); } ! if ( ((options & (DNF_USERNAME|DNF_PASSWORD) ) == 0) && (argc > 2) ) { --- 290,294 ---- exit(-1); } ! if ( ((options & (DNF_USERNAME|DNF_PASSWORD) ) == 0) && (argc > 2) ) { *************** *** 305,309 **** printf("USERNAME: %s\nPASSWORD: %s\n", username, password); } ! init_accdata(username, password, &accessdata); if (setsockopt(sockfd, DNPROTO_NSP, SO_CONACCESS, &accessdata, --- 305,309 ---- printf("USERNAME: %s\nPASSWORD: %s\n", username, password); } ! init_accdata(username, password, &accessdata); if (setsockopt(sockfd, DNPROTO_NSP, SO_CONACCESS, &accessdata, *************** *** 336,341 **** memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); ! if (connect(sockfd, (struct sockaddr *)&sockaddr, ! sizeof(sockaddr)) < 0) { if ( (options & DNF_QUIET) == 0 ) --- 336,341 ---- memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2); ! if (connect(sockfd, (struct sockaddr *)&sockaddr, ! sizeof(sockaddr)) < 0) { if ( (options & DNF_QUIET) == 0 ) *************** *** 352,356 **** obuf[0]=0x00; ! cmplen = (datalen - 1) - (options & DNF_TIMESTAMPS)?sizeof(struct timeval):0; if (options & DNF_DEBUG) --- 352,356 ---- obuf[0]=0x00; ! cmplen = (datalen - 1) - (options & DNF_TIMESTAMPS)?sizeof(struct timeval):0; if (options & DNF_DEBUG) *************** *** 365,369 **** } ! snd=0; rcv=0; --- 365,369 ---- } ! snd=0; rcv=0; *************** *** 383,387 **** exit(-1); } ! if (options & (DNF_DEBUG|DNF_VERBOSE)) { printf("PKT: %-4d WRITE: %d ",i+1,num); --- 383,387 ---- exit(-1); } ! if (options & (DNF_DEBUG|DNF_VERBOSE)) { printf("PKT: %-4d WRITE: %d ",i+1,num); *************** *** 406,410 **** } ! if (memcmp(&obuf[offset],&ibuf[offset],cmplen) != 0) { if ( (options & (DNF_QUIET|DNF_DEBUG|DNF_VERBOSE)) == 0 ) --- 406,410 ---- } ! if (memcmp(&obuf[offset],&ibuf[offset],cmplen) != 0) { if ( (options & (DNF_QUIET|DNF_DEBUG|DNF_VERBOSE)) == 0 ) Index: sethost.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/sethost.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** sethost.c 2001/06/19 10:49:18 1.3 --- sethost.c 2001/10/21 14:24:00 1.4 *************** *** 445,449 **** // Try very hard to get the local username ! local_user = getlogin(); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); --- 445,449 ---- // Try very hard to get the local username ! local_user = cuserid(NULL); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); |
From: Patrick C. <pa...@us...> - 2001-10-21 14:24:03
|
Update of /cvsroot/linux-decnet/dnprogs/libdap In directory usw-pr-cvs1:/tmp/cvs-serv20903/libdap Modified Files: connection.cc Log Message: Use cuserid rather than getlogin to get the username Index: connection.cc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdap/connection.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** connection.cc 2001/03/14 09:37:37 1.5 --- connection.cc 2001/10/21 14:24:00 1.6 *************** *** 250,254 **** // Try very hard to get the local username for proxy access ! char *local_user = getlogin(); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); --- 250,254 ---- // Try very hard to get the local username for proxy access ! char *local_user = cuserid(NULL); if (!local_user || local_user == (char *)0xffffffff) local_user = getenv("LOGNAME"); |
From: Patrick C. <pa...@us...> - 2001-10-21 14:24:02
|
Update of /cvsroot/linux-decnet/dnprogs In directory usw-pr-cvs1:/tmp/cvs-serv20903 Modified Files: Makefile.common Log Message: Use cuserid rather than getlogin to get the username Index: Makefile.common =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile.common,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** Makefile.common 2001/09/13 13:49:31 1.11 --- Makefile.common 2001/10/21 14:24:00 1.12 *************** *** 54,58 **** MAJOR_VERSION=2 ! MINOR_VERSION=15 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) --- 54,58 ---- MAJOR_VERSION=2 ! MINOR_VERSION=16 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION) |
From: Patrick C. <pa...@us...> - 2001-10-21 14:23:05
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory usw-pr-cvs1:/tmp/cvs-serv20849/debian Modified Files: dnet-progs.init.d Log Message: Don't print "done" when stopping daemons. Index: dnet-progs.init.d =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/dnet-progs.init.d,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** dnet-progs.init.d 2001/02/28 20:42:15 1.3 --- dnet-progs.init.d 2001/10/21 14:23:02 1.4 *************** *** 42,46 **** start-stop-daemon --stop --quiet --exec /usr/sbin/$i done ! echo "done." ;; --- 42,46 ---- start-stop-daemon --stop --quiet --exec /usr/sbin/$i done ! echo "." ;; |
From: Patrick C. <pa...@us...> - 2001-10-16 16:37:51
|
Update of /cvsroot/linux-decnet/dnprogs In directory usw-pr-cvs1:/tmp/cvs-serv8439 Modified Files: NEWS Log Message: NEWS for 2.16 Index: NEWS =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/NEWS,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** NEWS 2001/09/07 07:42:33 1.14 --- NEWS 2001/10/16 15:01:52 1.15 *************** *** 1,2 **** --- 1,25 ---- + dnprogs (2.16-1) unstable; urgency=low + + * Remove pre-increment in FAL so that close-time attributes get + applied to the right file - and don't crash on the last file. + * Look at OPEN as well as CLOSE time attributes for SPL, DLT and TEF. + * fal's directory output now correctly sends the new directory information + if a double wildcard is used: eg [*]* + * Fix bug in fal where binary files got corrupted if copied in "record" + mode + * setether now also sets the default interface for 2.4 kernels + + -- Patrick Caulfield <pa...@de...> Tue, 16 Oct 2001 14:25:38 +0100 + + dnprogs (2.15-1) unstable; urgency=low + + * in librms/parse.cc pass va_list in a wrapper struct so that it works on + powerpc systems. Closes: bug#111680 + * add set -e to Makefile so it gives up on error. I never was any good at + writing Makefiles. + * Minor manpage changes. + + -- Patrick Caulfield <pa...@de...> Sat, 15 Sep 2001 13:26:46 +0100 + dnprogs (2.14-1) unstable; urgency=low *************** *** 289,296 **** -- Patrick Caulfield <pa...@pa...> Fri, 3 May 1999 19:33:06 +0000 - - Local variables: - mode: debian-changelog - add-log-mailing-address: "pa...@ty..." - End: --- 312,314 ---- |
From: Patrick C. <pa...@us...> - 2001-10-16 16:37:46
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory usw-pr-cvs1:/tmp/cvs-serv8331 Modified Files: changelog Log Message: Changelog for 2.16 Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** changelog 2001/09/27 16:55:46 1.14 --- changelog 2001/10/16 15:01:33 1.15 *************** *** 6,11 **** * fal's directory output now correctly sends the new directory information if a double wildcard is used: eg [*]* ! -- dnprogs (2.15-1) unstable; urgency=low --- 6,14 ---- * fal's directory output now correctly sends the new directory information if a double wildcard is used: eg [*]* + * Fix bug in fal where binary files got corrupted if copied in "record" + mode + * setether now also sets the default interface for 2.4 kernels ! -- Patrick Caulfield <pa...@de...> Tue, 16 Oct 2001 14:25:38 +0100 dnprogs (2.15-1) unstable; urgency=low |
From: Patrick C. <pa...@us...> - 2001-10-16 15:00:45
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory usw-pr-cvs1:/tmp/cvs-serv8052 Modified Files: setether.8 setether.sh Log Message: Set the default ethernet interface to be the first one encountered. Index: setether.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/setether.8,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** setether.8 2001/03/01 13:17:19 1.1 --- setether.8 2001/10/16 15:00:42 1.2 *************** *** 28,31 **** --- 28,35 ---- setether will enable (UP) all interfaces it changes the MAC addresses of. .br + (2.4 only) The first interface specified on the command-line will also be made + the default interface for DECnet operations (ie attempts to contact nodes not + in the neighbour table will be done over this interface). + .br This script must be run with the interface inactive, it is normally run from /etc/init.d/decnet before TCP/IP starts up. Index: setether.sh =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/setether.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** setether.sh 2001/09/01 19:07:26 1.3 --- setether.sh 2001/10/16 15:00:42 1.4 *************** *** 48,54 **** --- 48,60 ---- fi + set_default="" for i in $CARDS do ifconfig $i hw ether $MACADDR allmulti up + if [ -z "$set_default" -a -f /proc/sys/net/decnet/default_device ] + then + echo $i >/proc/sys/net/decnet/default_device + set_default="DONE" + fi done |
From: Patrick C. <pa...@us...> - 2001-10-16 14:38:04
|
Update of /cvsroot/linux-decnet/dnprogs/fal In directory usw-pr-cvs1:/tmp/cvs-serv31877 Modified Files: open.cc open.h Log Message: Don't use fgets for reading records as we can't figure out the real length of the record just read if it contains NUL characters Index: open.cc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/fal/open.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** open.cc 2001/09/26 18:52:11 1.8 --- open.cc 2001/10/16 12:24:53 1.9 *************** *** 414,429 **** else { ! if (::fgets(buf, bs-1, stream)) { ! // Make sure there's a NUL on the end for strlen to find. ! buf[bs] = '\0'; ! buflen = strlen(buf); // Leave the LF on the end. ! } ! else ! { ! DAPLOG((LOG_INFO, "fgets returned nothing\n")); ! send_eof(); ! return true; ! } } } --- 414,428 ---- else { ! // Read up to the next LF or EOF ! int newchar; ! buflen = 0; ! do { ! newchar = getc(stream); ! if (newchar != EOF) ! { ! buf[buflen++] = (char) newchar; ! } ! } while (newchar != EOF && newchar != '\n' && buflen < conn.get_blocksize()); } } Index: open.h =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/fal/open.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** open.h 2000/09/16 12:54:30 1.2 --- open.h 2001/10/16 12:24:56 1.3 *************** *** 10,14 **** virtual ~fal_open(); virtual bool process_message(dap_message *m); ! protected: --- 10,14 ---- virtual ~fal_open(); virtual bool process_message(dap_message *m); ! protected: *************** *** 24,32 **** bool create; unsigned int block_size; ! dap_attrib_message *attrib_msg; dap_alloc_message *alloc_msg; dap_protect_message *protect_msg; ! bool send_file(int, long); void print_file(); --- 24,32 ---- bool create; unsigned int block_size; ! dap_attrib_message *attrib_msg; dap_alloc_message *alloc_msg; dap_protect_message *protect_msg; ! bool send_file(int, long); void print_file(); *************** *** 37,40 **** bool create_file(char *); void send_eof(); ! }; --- 37,40 ---- bool create_file(char *); void send_eof(); ! }; |