linux-decnet-commit Mailing List for DECnet for Linux (Page 6)
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: ph3-der-loewe <ph3...@us...> - 2008-11-11 08:24:30
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30442/libdaemon Modified Files: dnet_daemon.c Log Message: changed dnetd.confs auth field into an option field, still need to update the docs Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** dnet_daemon.c 10 Nov 2008 17:54:42 -0000 1.17 --- dnet_daemon.c 11 Nov 2008 08:24:16 -0000 1.18 *************** *** 77,80 **** --- 77,81 ---- char user[USERNAME_LENGTH]; // User to use if proxies not used char daemon[PATH_MAX]; // Name of daemon + int auto_accept; // Auto Accept incoming connections struct object *next; *************** *** 695,698 **** --- 696,715 ---- case 3: newobj->proxy = (toupper(bufp[0])=='Y'?TRUE:FALSE); + newobj->auto_accept = 0; + if ( bufp[1] == ',' && bufp[2] != ' ' && bufp[2] != '\t' ) { + switch (toupper(bufp[2])) { + case 'Y': + case 'A': + newobj->auto_accept = 1; + break; + case 'R': + newobj->auto_accept = -1; + break; + case 'N': + default: + newobj->auto_accept = 0; + break; + } + } break; case 4: *************** *** 940,943 **** --- 957,961 ---- int fork_fail = 0; int newone; + int ret; // Wait for a new connection. *************** *** 946,950 **** { if (!object_db) load_dnetd_conf(); ! switch (fork_and_setuid(newone)) { case -1: --- 964,981 ---- { if (!object_db) load_dnetd_conf(); ! ret = fork_and_setuid(newone); ! ! if (object_db) { ! switch (thisobj->auto_accept) { ! case 1: ! dnet_accept(newone, 0, NULL, 0); ! break; ! case -1: ! dnet_reject(newone, DNSTAT_REJECTED, NULL, 0); ! continue; ! } ! } ! ! switch (ret) { case -1: |
From: ph3-der-loewe <ph3...@us...> - 2008-11-11 08:24:29
|
Update of /cvsroot/linux-decnet/dnprogs/dnetd In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30442/dnetd Modified Files: dnetd.conf Log Message: changed dnetd.confs auth field into an option field, still need to update the docs Index: dnetd.conf =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnetd/dnetd.conf,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** dnetd.conf 5 Sep 2008 09:05:55 -0000 1.3 --- dnetd.conf 11 Nov 2008 08:24:16 -0000 1.4 *************** *** 6,21 **** # name: object name (or * for any named object, number must be 0) # number: object number (or 0 for a named object) ! # auth: Whether to authenticate users: Y or N # user: If auth is N then use this user # daemon: program to run or 'internal' # ! # name number auth? user daemon # ! FAL 17 Y none fal ! MIRROR 25 Y nobody internal ! MAIL 27 N vmsmail vmsmaild ! CTERM 42 N root ctermd ! DTERM 23 N root rmtermd ! NML 19 N nobody dnetnml ! * 0 Y none internal --- 6,25 ---- # name: object name (or * for any named object, number must be 0) # number: object number (or 0 for a named object) ! # options: auth[,auto accept]: ! # auth: Whether to authenticate users: Y or N ! # auto accept: Should we accept incoming connections ! # This is needed for non-decnet daemons ! # (not calling dnet_accept) # user: If auth is N then use this user # daemon: program to run or 'internal' # ! # name number options user daemon # ! FAL 17 Y,N none fal ! MIRROR 25 Y,N nobody internal ! MAIL 27 N,N vmsmail vmsmaild ! CTERM 42 N,N root ctermd ! DTERM 23 N,N root rmtermd ! NML 19 N,N nobody dnetnml ! * * Y,R none internal |
From: ph3-der-loewe <ph3...@us...> - 2008-11-10 17:54:57
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16571 Modified Files: dnet_daemon.c Log Message: removed useless strcpy() Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** dnet_daemon.c 4 Oct 2008 17:57:41 -0000 1.16 --- dnet_daemon.c 10 Nov 2008 17:54:42 -0000 1.17 *************** *** 694,699 **** break; case 3: ! strcpy(tmpbuf, bufp); ! newobj->proxy = (toupper(tmpbuf[0])=='Y'?TRUE:FALSE); break; case 4: --- 694,698 ---- break; case 3: ! newobj->proxy = (toupper(bufp[0])=='Y'?TRUE:FALSE); break; case 4: |
From: Christine C. <chr...@us...> - 2008-10-27 10:00:54
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20441/debian Modified Files: changelog Log Message: 2.48 changelog Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -r1.73 -r1.74 *** changelog 24 Oct 2008 14:09:11 -0000 1.73 --- changelog 27 Oct 2008 09:56:30 -0000 1.74 *************** *** 20,23 **** --- 20,25 ---- * Look for libcrypt in /lib and /usr/lib (Larry Baker) + -- Christine Caulfield <Chr...@go...> Mon, 27 Oct 2008 09:48:13 +0000 + dnprogs (2.47) unstable; urgency=low *************** *** 37,41 **** * Executables are now correctly stripped by dh_strip ! -- Christine Caulfield <Chr...@go...> Sat, 06 Sep 2008 13:48:58 +0100 dnprogs (2.45) unstable; urgency=low --- 39,43 ---- * Executables are now correctly stripped by dh_strip ! -- Christine Caulfield <Chr...@go...> Sun, 07 Sep 2008 13:48:58 +0100 dnprogs (2.45) unstable; urgency=low |
From: ph3-der-loewe <ph3...@us...> - 2008-10-24 17:34:56
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28145 Modified Files: dneigh.c Log Message: added alias -l for --dneigh Index: dneigh.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/dneigh.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** dneigh.c 24 Oct 2008 13:39:33 -0000 1.11 --- dneigh.c 24 Oct 2008 17:34:44 -0000 1.12 *************** *** 197,201 **** if ( strcmp(k, "-n") == 0 ) { numeric = 1; ! } else if ( strcmp(k, "--dneigh") == 0 ) { dnetinfo = -1; } else if ( strcmp(k, "--dnetinfo") == 0 ) { --- 197,201 ---- if ( strcmp(k, "-n") == 0 ) { numeric = 1; ! } else if ( strcmp(k, "--dneigh") == 0 || strcmp(k, "-l") == 0 ) { dnetinfo = -1; } else if ( strcmp(k, "--dnetinfo") == 0 ) { |
From: ph3-der-loewe <ph3...@us...> - 2008-10-24 17:30:56
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27889 Modified Files: dnetinfo.8 Log Message: updated dnetinfo/dneigh manpage a bit Index: dnetinfo.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/dnetinfo.8,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dnetinfo.8 24 Oct 2008 14:09:11 -0000 1.2 --- dnetinfo.8 24 Oct 2008 17:30:49 -0000 1.3 *************** *** 3,20 **** .SH NAME dnetinfo \- DECnet Routing Information .SH SYNOPSIS ! .B dnetinfo [-l] .SH DESCRIPTION .PP .B dnetinfo ! is a shell script that queries the dnroute daemon for it's current routes. The output is very similar to the "SHOW NET/OLD" command on VMS. .br If dnroute is not running, or you don't have enough privilges to contact it ! then it will neatly format the local neighbour table. .SH OPTIONS .TP .I "\-n" Don't resolve node numbers into names. .SH SEE ALSO ! .BR dnroute "(8)," ip "(8)" --- 3,44 ---- .SH NAME dnetinfo \- DECnet Routing Information + + dneigh \- DECnet Neighborhood Information + .SH SYNOPSIS ! .B dnetinfo [OPTIONS...] ! ! .B dneigh [OPTIONS...] ! .SH DESCRIPTION .PP + .B dneigh + shows the local DECnet neighbour table in a arp like format. + + .PP .B dnetinfo ! is a a program that queries the dnroute daemon for it's current routes. The output is very similar to the "SHOW NET/OLD" command on VMS. .br If dnroute is not running, or you don't have enough privilges to contact it ! then it will fall back to dneigh behavor. ! .SH OPTIONS .TP .I "\-n" Don't resolve node numbers into names. + + .TP + .I "\-h \-\-help" + Show a help text. + + .TP + .I "\-\-dneigh" + Force dneigh behavor. + + .TP + .I "\-\-dnetinfo" + Force dnetinfo behavor. + .SH SEE ALSO ! .BR dnroute "(8), " ip "(8)" |
From: ph3-der-loewe <ph3...@us...> - 2008-10-24 15:37:35
|
Update of /cvsroot/linux-decnet/dnprogs/libdnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20281 Modified Files: getobjectbyX.c Log Message: fixc for buggy libcs Index: getobjectbyX.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getobjectbyX.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** getobjectbyX.c 4 Oct 2008 23:03:20 -0000 1.5 --- getobjectbyX.c 24 Oct 2008 15:37:19 -0000 1.6 *************** *** 170,174 **** if ( (se = getservbyport(num, proto)) != NULL ) { ! return se->s_name; } } --- 170,176 ---- if ( (se = getservbyport(num, proto)) != NULL ) { ! if ( strcmp(proto, se->s_proto) == 0 ) /* check if we got what we requested, ! may help on buggy libcs */ ! return se->s_name; } } |
From: Christine C. <chr...@us...> - 2008-10-24 14:17:40
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12309/debian Modified Files: dnet-progs.files Log Message: Add new files to Debian (untested) Index: dnet-progs.files =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/dnet-progs.files,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** dnet-progs.files 6 Sep 2008 15:03:04 -0000 1.11 --- dnet-progs.files 24 Oct 2008 14:17:27 -0000 1.12 *************** *** 9,12 **** --- 9,13 ---- ./usr/sbin/dnroute ./usr/sbin/dnetinfo + ./usr/sbin/dneigh ./usr/sbin/multinet ./usr/sbin/dncopynodes *************** *** 39,42 **** --- 40,44 ---- ./usr/share/man/man8/dnroute.8 ./usr/share/man/man8/dnetinfo.8 + ./usr/share/man/man8/dneigh.8 ./usr/share/man/man8/multinet.8 ./usr/share/man/man8/dncopynodes.8 |
From: Christine C. <chr...@us...> - 2008-10-24 14:09:22
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11387/debian Modified Files: changelog Log Message: Fix up build system to incorporate dneigh as dnetinfo Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -r1.72 -r1.73 *** changelog 7 Oct 2008 08:28:12 -0000 1.72 --- changelog 24 Oct 2008 14:09:11 -0000 1.73 *************** *** 7,10 **** --- 7,11 ---- NIS or LDAP etc * Made getnodename() read from decnet.conf rather than the kernel + * Fix fd leak in getnodebyaddr * dnroute no longer ignores long routing messages * dnroute now writes a pidfile *************** *** 13,19 **** * dnroute now honours SYSCONF_PREFIX for dnroute.conf * dnetinfo no longer shows the local area as under manual control ! * Removed the occasional delay in dnetinfo * NML now also responds to "list known objects" * Add connect timeout to most programs dnprogs (2.47) unstable; urgency=low --- 14,22 ---- * dnroute now honours SYSCONF_PREFIX for dnroute.conf * dnetinfo no longer shows the local area as under manual control ! * Replaced dnetinfo with a program * NML now also responds to "list known objects" * Add connect timeout to most programs + * Don't build dapfs if FUSE is not installed (Larry Baker) + * Look for libcrypt in /lib and /usr/lib (Larry Baker) dnprogs (2.47) unstable; urgency=low |
From: Christine C. <chr...@us...> - 2008-10-24 14:09:22
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11387/dnroute Modified Files: Makefile dnetinfo.8 Log Message: Fix up build system to incorporate dneigh as dnetinfo Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/Makefile,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** Makefile 24 Oct 2008 13:45:07 -0000 1.15 --- Makefile 24 Oct 2008 14:09:11 -0000 1.16 *************** *** 23,30 **** install -m 0755 $(STRIPBIN) dnroute $(prefix)/sbin install -m 0755 dneigh $(prefix)/sbin ! ln -s $(prefix)/sbin/dneigh $(prefix)/sbin/dnetinfo install -m 0644 dnroute.8 $(manprefix)/man/man8 install -m 0644 dnetinfo.8 $(manprefix)/man/man8 clean: ! rm -f $(DNROUTE) *~ *.o netlink/*.o netlink/*.a --- 23,31 ---- install -m 0755 $(STRIPBIN) dnroute $(prefix)/sbin install -m 0755 dneigh $(prefix)/sbin ! ln -sf dneigh $(prefix)/sbin/dnetinfo install -m 0644 dnroute.8 $(manprefix)/man/man8 install -m 0644 dnetinfo.8 $(manprefix)/man/man8 + ln -sf dnetinfo.8 $(manprefix)/man/man8/dneigh.8 clean: ! rm -f $(DNROUTE) $(DNEIGH) *~ *.o netlink/*.o netlink/*.a Index: dnetinfo.8 =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/dnetinfo.8,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dnetinfo.8 5 Apr 2006 07:17:44 -0000 1.1 --- dnetinfo.8 24 Oct 2008 14:09:11 -0000 1.2 *************** *** 10,19 **** is a shell script that queries the dnroute daemon for it's current routes. The output is very similar to the "SHOW NET/OLD" command on VMS. ! .SH OPTIONS .TP ! .I "\-l" ! Displays only local neighbour information. This is the default if dnroute is ! not running. .SH SEE ALSO ! .BR dnroute "(8), " ip "(8)" --- 10,20 ---- is a shell script that queries the dnroute daemon for it's current routes. The output is very similar to the "SHOW NET/OLD" command on VMS. ! .br ! If dnroute is not running, or you don't have enough privilges to contact it ! then it will neatly format the local neighbour table. .SH OPTIONS .TP ! .I "\-n" ! Don't resolve node numbers into names. .SH SEE ALSO ! .BR dnroute "(8)," ip "(8)" |
From: Christine C. <chr...@us...> - 2008-10-24 14:09:19
|
Update of /cvsroot/linux-decnet/dnprogs In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11387 Modified Files: Makefile rpm.spec Log Message: Fix up build system to incorporate dneigh as dnetinfo Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -r1.40 -r1.41 *** Makefile 20 Oct 2008 12:59:02 -0000 1.40 --- Makefile 24 Oct 2008 14:09:11 -0000 1.41 *************** *** 92,95 **** --- 92,96 ---- rm rpmbuild/usr/share/man/man3/dnet_endnode.3 rm rpmbuild/usr/share/man/man3/dnet_nextnode.3 + rm rpmbuild/usr/share/man/man8/dneigh.8 ln -s dncopy.1.gz rpmbuild/usr/share/man/man1/dntype.1.gz ln -s dnsubmit.1.gz rpmbuild/usr/share/man/man1/dnprint.1.gz *************** *** 98,101 **** --- 99,103 ---- ln -s dnet_getnode.3.gz rpmbuild/usr/share/man/man3/dnet_endnode.3.gz ln -s dnet_getnode.3.gz rpmbuild/usr/share/man/man3/dnet_nextnode.3.gz + ln -s dnetinfo.8.gz rpmbuild/usr/share/man/man8/dneigh.8.gz sed -e's@/usr/local@/usr@g' < scripts/decnet.sh >rpmbuild/etc/rc.d/init.d/decnet sed -e's/%%PACKAGENAME%%/$(PKGNAME)/g' \ Index: rpm.spec =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/rpm.spec,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** rpm.spec 6 Sep 2008 15:10:12 -0000 1.20 --- rpm.spec 24 Oct 2008 14:09:11 -0000 1.21 *************** *** 48,51 **** --- 48,52 ---- %%PREFIX%%/sbin/dnroute %%PREFIX%%/sbin/dnetinfo + %%PREFIX%%/sbin/dneigh %%PREFIX%%/sbin/decnetconf %%PREFIX%%/sbin/setether *************** *** 76,79 **** --- 77,81 ---- %%PREFIX%%/share/man/man8/dnroute.8.gz %%PREFIX%%/share/man/man8/dnetinfo.8.gz + %%PREFIX%%/share/man/man8/dneigh.8.gz %%PREFIX%%/share/man/man8/phoned.8.gz %%PREFIX%%/share/man/man8/dnetd.8.gz |
From: Christine C. <chr...@us...> - 2008-10-24 13:45:16
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8238 Modified Files: Makefile get_neigh.c Removed Files: dnetinfo.sh Log Message: Make dnroute use a socket rather than a FIFO build dneigh and install it as dnetinfo too remove dnetinfo.sh Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/Makefile,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** Makefile 26 Sep 2008 14:28:12 -0000 1.14 --- Makefile 24 Oct 2008 13:45:07 -0000 1.15 *************** *** 3,9 **** DNROUTE=dnroute CFLAGS += -Inetlink/include $(SYSCONF_PREFIX) ! all: $(DNROUTE) $(DNROUTE): get_neigh.c send_route.c routing_msg.c csum.c hash.c pidfile.c netlink/libnetlink.a --- 3,14 ---- DNROUTE=dnroute + DNEIGH=dneigh + CFLAGS += -Inetlink/include $(SYSCONF_PREFIX) ! all: $(DNROUTE) $(DNEIGH) ! ! $(DNEIGH): dneigh.c ! $(CC) $(CFLAGS) -o $@ $^ $(LIBDNET) $(DNROUTE): get_neigh.c send_route.c routing_msg.c csum.c hash.c pidfile.c netlink/libnetlink.a *************** *** 17,21 **** install -d $(manprefix)/man/man8 install -m 0755 $(STRIPBIN) dnroute $(prefix)/sbin ! install -m 0755 dnetinfo.sh $(prefix)/sbin/dnetinfo install -m 0644 dnroute.8 $(manprefix)/man/man8 install -m 0644 dnetinfo.8 $(manprefix)/man/man8 --- 22,27 ---- install -d $(manprefix)/man/man8 install -m 0755 $(STRIPBIN) dnroute $(prefix)/sbin ! install -m 0755 dneigh $(prefix)/sbin ! ln -s $(prefix)/sbin/dneigh $(prefix)/sbin/dnetinfo install -m 0644 dnroute.8 $(manprefix)/man/man8 install -m 0644 dnetinfo.8 $(manprefix)/man/man8 Index: get_neigh.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/get_neigh.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** get_neigh.c 26 Sep 2008 14:28:12 -0000 1.27 --- get_neigh.c 24 Oct 2008 13:45:07 -0000 1.28 *************** *** 22,25 **** --- 22,26 ---- #include <sys/ioctl.h> #include <sys/socket.h> + #include <sys/un.h> #include <sys/time.h> #include <netinet/in.h> *************** *** 55,59 **** /* Where we write our status info to */ ! #define STATUS_FIFO "/var/run/dnroute.status" #define PIDFILE "/var/run/dnroute.pid" --- 56,60 ---- /* Where we write our status info to */ ! #define STATUS_SOCKET "/var/run/dnroute.status" #define PIDFILE "/var/run/dnroute.pid" *************** *** 90,93 **** --- 91,95 ---- int dnet_socket; + static int info_socket; static int debugging; static int verbose; *************** *** 195,204 **** static void do_show_network(void) { ! FILE *fp=fopen(STATUS_FIFO, "w"); int i; int first = 1; unsigned char dn_addr[2]; struct nodeent *ne; if (!fp) { --- 197,214 ---- static void do_show_network(void) { ! FILE *fp; int i; int first = 1; unsigned char dn_addr[2]; struct nodeent *ne; + struct sockaddr saddr; + socklen_t addrlen; + int new_fd; + new_fd = accept(info_socket, &saddr, &addrlen); + if (new_fd < 0) + return; + + fp=fdopen(new_fd, "w"); if (!fp) { *************** *** 972,975 **** --- 982,986 ---- int no_daemon=0; mode_t oldmode; + struct sockaddr_un sockaddr; /* Initialise the node hash table */ *************** *** 1073,1078 **** oldmode = umask(0); ! unlink(STATUS_FIFO); ! mkfifo(STATUS_FIFO, 0600); umask(oldmode); --- 1084,1088 ---- oldmode = umask(0); ! chmod(STATUS_SOCKET, 0660); umask(oldmode); *************** *** 1080,1083 **** --- 1090,1113 ---- signal(SIGALRM, alarm_sig); + /* Socket for sending "SHOW NETWORK" information */ + unlink(STATUS_SOCKET); + info_socket = socket(AF_UNIX, SOCK_STREAM, PF_UNIX); + if (info_socket < 0) + { + syslog(LOG_ERR, "Unable to open Unix socket for information output: %m\n"); + return 1; + } + fcntl(info_socket, F_SETFL, fcntl(info_socket, F_GETFL, 0) | O_NONBLOCK); + + strcpy(sockaddr.sun_path, STATUS_SOCKET); + sockaddr.sun_family = AF_UNIX; + if (bind(info_socket, (struct sockaddr *)&sockaddr, sizeof(sockaddr))) + { + syslog(LOG_ERR, "Unable to bind Unix socket for information output: %m\n"); + return 1; + } + /* Wait for connections */ + listen(info_socket, 5); + /* Socket for listening for routing messages and sending our own */ *************** *** 1088,1091 **** --- 1118,1122 ---- return 1; } + fcntl(dnet_socket, F_SETFL, fcntl(dnet_socket, F_GETFL, 0) | O_NONBLOCK); *************** *** 1119,1122 **** --- 1150,1154 ---- FD_ZERO(&fds); FD_SET(dnet_socket, &fds); + FD_SET(info_socket, &fds); sigfillset(&ss); sigdelset(&ss, SIGUSR1); *************** *** 1125,1129 **** sigdelset(&ss, SIGINT); ! status = pselect(dnet_socket+1, &fds, NULL, NULL, NULL, &ss); if (running) --- 1157,1161 ---- sigdelset(&ss, SIGINT); ! status = pselect(FD_SETSIZE, &fds, NULL, NULL, NULL, &ss); if (running) *************** *** 1140,1143 **** --- 1172,1180 ---- } + if (FD_ISSET(info_socket, &fds)) + { + do_show_network(); + } + /* Things that interrupt our sleep */ if (alarm_rang) *************** *** 1146,1159 **** alarm_rang = 0; } - - if (show_network) - { - do_show_network(); - show_network = 0; - } } } ! ! unlink(STATUS_FIFO); exit(0); } --- 1183,1190 ---- alarm_rang = 0; } } } ! close(dnet_socket); ! close(info_socket); exit(0); } --- dnetinfo.sh DELETED --- |
From: ph3-der-loewe <ph3...@us...> - 2008-10-24 13:39:48
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7834 Added Files: Tag: 1.11 dneigh.c Log Message: added dneigh: replacement for dnetinfo.sh with new functionality should be compiled and linked as dneigh, a symlink named 'dnetinfo' should be created with dst dneigh. --- NEW FILE: dneigh.c --- //dneigh.c: /* copyright 2008 Philipp 'ph3-der-loewe' Schafft <li...@li...> 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 version 3. 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. */ #include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include <fcntl.h> #include <sys/un.h> #include <netdnet/dn.h> #include <netdnet/dnetdb.h> #include <netinet/ether.h> #include <net/if.h> #include <sys/ioctl.h> #include <signal.h> #define DNN_FILE "/proc/net/decnet_neigh" #define DNRP_FILE "/var/run/dnroute.pid" #define DNRS_FILE "/var/run/dnroute.status" char * progname = NULL; int numeric = 0; void usage (void) { fprintf(stderr, "Usage: %s [OPTIONS]\n", progname); fprintf(stderr, "\n"); fprintf(stderr, "Options:\n"); fprintf(stderr, " -h --help this help\n" " --dneigh force dneigh behavor\n" " --dnetinfo force dnetinfo behavor\n" " -n numerical mode (do not show node names but addresses)\n" ); } char * get_node_name (char * address) { struct nodeent * ne; if ( numeric ) return address; if ( (ne = getnodebyname(address)) != NULL ) if ( (ne = getnodebyaddr((const char *)ne->n_addr, ne->n_length, ne->n_addrtype)) != NULL ) return ne->n_name; return address; } char * get_ether_address (int area, int node) { static struct ether_addr * ee; static char hwa[20]; snprintf(hwa, 20, "AA:00:04:00:%.2X:%.2X", node & 0xFF, (area << 2) + (node >> 8)); if ( numeric ) return hwa; if ( (ee = ether_aton(hwa)) == NULL ) return hwa; ether_ntohost(hwa, ee); // we ignore errors here as in error case hwa is not modifyed // and we still have the MAC address in it return hwa; } char * get_hwtype (char * dev) { int sock; struct ifreq ifr; int type = -1; if ( (sock = socket(AF_UNIX, SOCK_STREAM, 0)) != -1 ) { strcpy(ifr.ifr_name, dev); if ( ioctl(sock, SIOCGIFHWADDR, &ifr) == 0) type = ifr.ifr_hwaddr.sa_family; close(sock); } switch (type) { // supported by current kernel: case ARPHRD_ETHER: return "ether"; case ARPHRD_LOOPBACK: return "loop"; case ARPHRD_IPGRE: return "ipgre"; case ARPHRD_DDCMP: return "ddcmp"; // support is commented out in the kernel (why?): case ARPHRD_X25: return "x25"; case ARPHRD_PPP: return "ppp"; } return "?"; } int proc_file (FILE * fh) { char buf[1024]; char * flags = buf+128; char * dev = buf+512; int state; int use; int blocksize; int area, node; char * hwa; if ( fgets(buf, 1024, fh) == NULL ) { fprintf(stderr, "Error: can not read banner from file\n"); return -1; } if ( strcmp(buf, "Addr Flags State Use Blksize Dev\n") != 0 ) { fprintf(stderr, "Error: invalid file format\n"); return -1; } while (fscanf(fh, "%s %s %02d %02d %07d %s\n", buf, flags, &state, &use, &blocksize, dev ) == 6) { if ( sscanf(buf, "%d.%d", &area, &node) == 2 ) { hwa = get_ether_address(area, node); } else { hwa = "?"; } printf("%-24s %-7s %-19s %-10s %-10i %s\n", get_node_name(buf), get_hwtype(dev), hwa, flags, blocksize, dev); } return 0; } int cat (FILE * fh) { char buf[1024]; int len; while ((len = fread(buf, 1, 1024, fh))) { fwrite(buf, 1, len, stdout); } return 0; } FILE * connect_unix (char * file) { int fh; struct sockaddr_un un = {AF_UNIX}; errno = 0; if ( (fh = socket(AF_UNIX, SOCK_STREAM, 0)) == -1 ) { return NULL; } strncpy(un.sun_path, file, sizeof(un.sun_path) - 1); if ( connect(fh, (struct sockaddr *)&un, sizeof(struct sockaddr_un)) == -1 ) { close(fh); return NULL; } return fdopen(fh, "rw"); } int main (int argc, char * argv[]) { FILE * fh = NULL; int i; char * k; char * file = DNN_FILE; int dnetinfo = 0; // 1 = forced dnetinfo, -1 = forced dneigh char pid[8]; struct stat st; progname = argv[0]; for (i = 1; i < argc; i++) { k = argv[i]; if ( strcmp(k, "-n") == 0 ) { numeric = 1; } else if ( strcmp(k, "--dneigh") == 0 ) { dnetinfo = -1; } else if ( strcmp(k, "--dnetinfo") == 0 ) { dnetinfo = 1; } else if ( strcmp(k, "-h") == 0 || strcmp(k, "--help") == 0 ) { usage(); return 0; } else { fprintf(stderr, "Error: unknown parameter %s\n", k); usage(); return 1; } } // are we dnetinfo? if ( dnetinfo != -1 ) { i = strlen(progname); if ( i >= 8 ) { if ( strcmp(progname+i-8, "dnetinfo") == 0 ) { dnetinfo = 1; } } } // is dnroute running? if ( dnetinfo == 1 ) { if ( (fh = fopen(DNRP_FILE, "r")) != NULL ) { *pid = 0; fgets(pid, 8, fh); dnetinfo = atoi(pid); fclose(fh); } else { dnetinfo = 0; } } // if this is true, than we just should dump the dnroute's data if ( dnetinfo > 0 ) { if ( stat(DNRS_FILE, &st) == -1 ) { // socket for fifo? fprintf(stderr, "Error: can not stat dnroute info file: %s: %s\n", DNRS_FILE, strerror(errno)); return 1; } if ( S_ISFIFO(st.st_mode) ) { // fifo: old interface if ( kill(dnetinfo, SIGUSR1) ) { if ( errno != ESRCH ) { fprintf(stderr, "Error: can not send signal to dnroute: %s\n", strerror(errno)); return 1; } // else we continue in dneigh mode } else fh = fopen(DNRS_FILE, "r"); } else { // socket: new interface fh = connect_unix(DNRS_FILE); // fprintf(stderr, "Error: can not create new UNIX Domain Socket: %s\n", strerror(errno)); } if ( fh != NULL ) { cat(fh); fclose(fh); return 0; } } if ( (fh = fopen(file, "r")) == NULL ) { fprintf(stderr, "Error: can not open DECnet neigh file: %s: %s\n", file, strerror(errno)); return 2; } printf("Node HWtype HWaddress Flags MTU Iface\n"); proc_file(fh); fclose(fh); return 0; } //ll |
From: Christine C. <chr...@us...> - 2008-10-24 12:24:44
|
Update of /cvsroot/linux-decnet/dnprogs/libdnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24211 Modified Files: getnodebyaddr.c Log Message: Fix fd leak Index: getnodebyaddr.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getnodebyaddr.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** getnodebyaddr.c 23 Sep 2008 15:48:03 -0000 1.5 --- getnodebyaddr.c 24 Oct 2008 11:03:05 -0000 1.6 *************** *** 88,91 **** --- 88,92 ---- if (strcmp(nodeadr,asc_addr) == 0) { + fclose(dnhosts); memcpy(laddr,addr,len); dp.n_addr=(unsigned char *)&laddr; |
From: Christine C. <chr...@us...> - 2008-10-20 13:16:41
|
Update of /cvsroot/linux-decnet/dnprogs In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15159 Modified Files: Makefile Makefile.common Log Message: Makefile fixes from Larry Baker Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** Makefile 6 Sep 2008 15:15:58 -0000 1.39 --- Makefile 20 Oct 2008 12:59:02 -0000 1.40 *************** *** 11,17 **** SUBDIRS=include libdnet libdaemon libdap librms fal dndir dnsubmit dndel \ dncopy apps dntask dnlogin mail phone dnetd libvaxdata dnroute \ ! nml multinet dapfs scripts \ contrib/ph3-der-loewe all: @set -e; for i in $(SUBDIRS); do make -C $$i $@ ; done --- 11,21 ---- SUBDIRS=include libdnet libdaemon libdap librms fal dndir dnsubmit dndel \ dncopy apps dntask dnlogin mail phone dnetd libvaxdata dnroute \ ! nml multinet scripts \ contrib/ph3-der-loewe + ifneq ($(wildcard /usr/include/fuse.h),) + SUBDIRS+=dapfs + endif + all: @set -e; for i in $(SUBDIRS); do make -C $$i $@ ; done Index: Makefile.common =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile.common,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -r1.52 -r1.53 *** Makefile.common 4 Oct 2008 10:32:57 -0000 1.52 --- Makefile.common 20 Oct 2008 12:59:02 -0000 1.53 *************** *** 90,98 **** # Look for optional files (who needs autoconf!) # ! ifeq (/usr/lib/libcrypt.a,$(wildcard /usr/lib/libcrypt.a)) LIBCRYPT=-lcrypt endif ! ! ifeq (/usr/lib/libcrypt.so,$(wildcard /usr/lib/libcrypt.so)) LIBCRYPT=-lcrypt endif --- 90,98 ---- # Look for optional files (who needs autoconf!) # ! ifneq ($(wildcard /lib/libcrypt.*),) LIBCRYPT=-lcrypt endif ! ! ifneq ($(wildcard /usr/lib/libcrypt.*),) LIBCRYPT=-lcrypt endif |
From: Christine C. <chr...@us...> - 2008-10-20 13:01:06
|
Update of /cvsroot/linux-decnet/dnprogs/scripts In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15504 Modified Files: decnet.sh Log Message: Enable allmulticast on interfaces Index: decnet.sh =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/scripts/decnet.sh,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** decnet.sh 1 Sep 2005 09:28:01 -0000 1.10 --- decnet.sh 20 Oct 2008 13:00:58 -0000 1.11 *************** *** 72,75 **** --- 72,82 ---- $prefix/sbin/setether $NODE $CCT $extra_interfaces + for i in $CCT $extra_interfaces + do + ip link set dev $i allmulticast on + done + + + for i in $daemons do |
From: Christine C. <chr...@us...> - 2008-10-20 12:57:19
|
Update of /cvsroot/linux-decnet/dnprogs/apps In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14867 Modified Files: sethost.c Log Message: Fix missing */ Index: sethost.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/apps/sethost.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** sethost.c 20 Aug 2008 12:43:58 -0000 1.10 --- sethost.c 20 Oct 2008 12:57:11 -0000 1.11 *************** *** 144,148 **** } else ! newchar = strtol(string, NULL, 0); /* Just a number /* Make sure it's reasonable */ --- 144,148 ---- } else ! newchar = strtol(string, NULL, 0); /* Just a number */ /* Make sure it's reasonable */ |
From: Christine C. <chr...@us...> - 2008-10-07 09:18:33
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10845/debian Modified Files: changelog Log Message: Tidy the changelog. Group related changes Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -r1.71 -r1.72 *** changelog 4 Oct 2008 10:32:57 -0000 1.71 --- changelog 7 Oct 2008 08:28:12 -0000 1.72 *************** *** 2,18 **** * Fix crash caused by unitialised variable in dncopynodes. - * More states are now decoded by dnetstat * Add LDIF output support to dncopynodes ! * Add nss support to libdnet so you can look up DECnet nodes in NIS or LDAP etc * dnroute now writes a pidfile - * NML now also responds to "list known objects" * Improve dnroute logging when -n is specified (it's now useful!) - * dnroute no longer ignores long routing messages - * Removed the occasional delay in dnetinfo - * Made getnodename() read from decnet.conf rather than the kernel * dnroute -n now doesn't send routing messages * dnroute now honours SYSCONF_PREFIX for dnroute.conf * dnetinfo no longer shows the local area as under manual control * Add connect timeout to most programs --- 2,18 ---- * Fix crash caused by unitialised variable in dncopynodes. * Add LDIF output support to dncopynodes ! * More states are now decoded by dnetstat ! * Add nss support to libdnet so you can look up DECnet nodes & objects in NIS or LDAP etc + * Made getnodename() read from decnet.conf rather than the kernel + * dnroute no longer ignores long routing messages * dnroute now writes a pidfile * Improve dnroute logging when -n is specified (it's now useful!) * dnroute -n now doesn't send routing messages * dnroute now honours SYSCONF_PREFIX for dnroute.conf * dnetinfo no longer shows the local area as under manual control + * Removed the occasional delay in dnetinfo + * NML now also responds to "list known objects" * Add connect timeout to most programs |
From: <ph3...@us...> - 2008-10-05 22:49:19
|
Update of /cvsroot/linux-decnet/dnprogs/dnetd In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24442 Modified Files: dnetd.c Log Message: force hinum object handling to be DNOBJHINUM_ZERO or DNOBJHINUM_ALWAYSZERO so we can use named objects from NIS Index: dnetd.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnetd/dnetd.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** dnetd.c 4 Oct 2008 23:36:27 -0000 1.7 --- dnetd.c 5 Oct 2008 22:49:11 -0000 1.8 *************** *** 238,241 **** --- 238,244 ---- dnet_set_optdata(condata, sizeof(condata)); + // set handling of hinum objects (needed for use with NIS) + dnet_setobjhinum_handling(DNOBJHINUM_ZERO, 1); + fd = dnet_daemon(0, NULL, verbosity, debug?0:1); if (fd > -1) |
From: <chr...@us...> - 2008-10-05 11:40:09
|
Update of /cvsroot/linux-decnet/dnprogs/nml In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6007 Modified Files: nml.c Log Message: Use getobjectbynumber instead of our own static table. Fix some typos in the comments. Index: nml.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/nml/nml.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** nml.c 4 Oct 2008 18:02:07 -0000 1.15 --- nml.c 5 Oct 2008 11:40:04 -0000 1.16 *************** *** 97,121 **** } - /* Convert an object number to text */ - char * object_name(char *number) { - int objnum = atoi(number); - - switch(objnum) { - case 17: return "FAL"; - case 18: return "HLD"; - case 19: return "NML"; - case 23: return "REMACP"; - case 25: return "MIRROR"; - case 26: return "EVL"; - case 27: return "MAIL"; - case 29: return "PHONE"; - case 42: return "CTERM"; - case 51: return "VPM"; - case 63: return "DTR"; - default: - return number; - } - } - static int adjacent_node(struct nodeent *n) { --- 97,100 ---- *************** *** 637,642 **** if (load_dnetd_conf()) { buf[0] = -3; // Privilege violation ! buf[1] = 0; ! buf[2] = 0; write(sock, buf, 3); return -1; --- 616,621 ---- if (load_dnetd_conf()) { buf[0] = -3; // Privilege violation ! buf[1] = 0; // Privilege violation ! buf[2] = 0; // Privilege violation write(sock, buf, 3); return -1; *************** *** 731,737 **** unsigned char scratch_na[2]; struct nodeent *nent; ! /* We're only interested in the remote node addre here, but want both ! link numbers */ sscanf(var1, "%d.%d/%x\n", &area, &node, &llink); sscanf(var6, "%d.%d/%x\n", &area, &node, &rlink); --- 710,717 ---- unsigned char scratch_na[2]; struct nodeent *nent; + int objnum; ! /* We're only interested in the remote node address here ! but want both link numbers */ sscanf(var1, "%d.%d/%x\n", &area, &node, &llink); sscanf(var6, "%d.%d/%x\n", &area, &node, &rlink); *************** *** 748,757 **** nent = getnodebyaddr((char *)scratch_na, 2, AF_DECnet); ! /* we don't really show users as such for remote connectionsm, ! sho make the object numbers look friendlier */ ! if (atoi(luser)) ! strcpy(luser, object_name(luser)); ! if (atoi(ruser)) ! strcpy(ruser, object_name(ruser)); ptr = 0; --- 728,740 ---- nent = getnodebyaddr((char *)scratch_na, 2, AF_DECnet); ! /* We don't really show users as such for remote connections, ! so make the object numbers look friendlier */ ! objnum = atoi(luser); ! if (objnum) ! getobjectbynumber(objnum, luser, sizeof(luser)); ! ! objnum = atoi(ruser); ! if (objnum) ! getobjectbynumber(objnum, ruser, sizeof(ruser)); ptr = 0; |
From: <ph3...@us...> - 2008-10-05 00:17:33
|
Update of /cvsroot/linux-decnet/dnprogs/include/netdnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23253/include/netdnet Modified Files: dnetdb.h Log Message: replaced DNOBJECT_* constants with macros to getobjectbyname() as discussed on Fri Sep 26 17:10:00 CEST 2008 on IRC If this breaks your code: switch to the new API. Should only break code when used within case-statements. Have fixed everything needed in dnprogs to get everthing within working again. Index: dnetdb.h =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/include/netdnet/dnetdb.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** dnetdb.h 4 Oct 2008 15:56:52 -0000 1.7 --- dnetdb.h 4 Oct 2008 23:40:35 -0000 1.8 *************** *** 62,74 **** * Define DECnet object numerically. */ ! #define DNOBJECT_FAL 17 /* file access listener */ ! #define DNOBJECT_NICE 19 /* NICE */ ! #define DNOBJECT_DTERM 23 /* DECnet remote terminals */ ! #define DNOBJECT_MIRROR 25 /* DECnet mirror */ ! #define DNOBJECT_EVR 26 /* DECnet event receiver */ ! #define DNOBJECT_MAIL11 27 /* mail service */ ! #define DNOBJECT_PHONE 29 /* DECnet phone utility */ ! #define DNOBJECT_CTERM 42 /* DECnet command terminals */ ! #define DNOBJECT_DTR 63 /* DECnet test receiver */ /* Config for dnet_checkobjectnumber()/getobjectbyname()/getobjectbynumber() */ --- 62,74 ---- * Define DECnet object numerically. */ ! #define DNOBJECT_FAL (getobjectbyname("FAL")) /* file access listener */ ! #define DNOBJECT_NICE (getobjectbyname("NICE")) /* NICE */ ! #define DNOBJECT_DTERM (getobjectbyname("DTERM")) /* DECnet remote terminals */ ! #define DNOBJECT_MIRROR (getobjectbyname("MIRROR")) /* DECnet mirror */ ! #define DNOBJECT_EVR (getobjectbyname("EVR")) /* DECnet event receiver */ ! #define DNOBJECT_MAIL11 (getobjectbyname("MAIL11")) /* mail service */ ! #define DNOBJECT_PHONE (getobjectbyname("PHONE")) /* DECnet phone utility */ ! #define DNOBJECT_CTERM (getobjectbyname("CTERM")) /* DECnet command terminals */ ! #define DNOBJECT_DTR (getobjectbyname("DTR")) /* DECnet test receiver */ /* Config for dnet_checkobjectnumber()/getobjectbyname()/getobjectbynumber() */ |
From: <ph3...@us...> - 2008-10-04 23:39:09
|
Update of /cvsroot/linux-decnet/dnprogs/dnetd In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22939/dnetd Modified Files: dnetd.c Log Message: switch() with only one case? use if... updated to new API (DNOBJECT_* -> getobjectbyname() Index: dnetd.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnetd/dnetd.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** dnetd.c 20 Aug 2008 12:43:58 -0000 1.6 --- dnetd.c 4 Oct 2008 23:36:27 -0000 1.7 *************** *** 266,282 **** // Choose a numbered object ! switch (sockaddr.sdn_objnum) ! { ! case DNOBJECT_MIRROR: if (verbosity >1) DNETLOG((LOG_INFO, "Doing mirror\n")); mirror(fd); ! break; ! ! default: DNETLOG((LOG_ERR, "Don't know how to handle object %d\n", sockaddr.sdn_objnum)); dnet_reject(fd, DNSTAT_OBJECT, NULL, 0); - break; } } --- 266,277 ---- // Choose a numbered object ! if ( sockaddr.sdn_objnum == getobjectbyname("MIRROR") ) { if (verbosity >1) DNETLOG((LOG_INFO, "Doing mirror\n")); mirror(fd); ! } else { DNETLOG((LOG_ERR, "Don't know how to handle object %d\n", sockaddr.sdn_objnum)); dnet_reject(fd, DNSTAT_OBJECT, NULL, 0); } } |
From: <ph3...@us...> - 2008-10-04 23:04:22
|
Update of /cvsroot/linux-decnet/dnprogs/libdnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21359 Modified Files: getobjectbyX.c Log Message: we should prefer the offical name (MAIL vs. MAIL11) as MAIL is object #22 Index: getobjectbyX.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getobjectbyX.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** getobjectbyX.c 4 Oct 2008 21:31:49 -0000 1.4 --- getobjectbyX.c 4 Oct 2008 23:03:20 -0000 1.5 *************** *** 41,46 **** { 25, "MIRROR"}, { 26, "EVR" }, ! { 27, "MAIL" }, ! { 27, "MAIL11"}, // alias! { 29, "PHONE" }, { 42, "CTERM" }, --- 41,46 ---- { 25, "MIRROR"}, { 26, "EVR" }, ! { 27, "MAIL11"}, ! { 27, "MAIL" }, // alias! { 29, "PHONE" }, { 42, "CTERM" }, |
From: <ph3...@us...> - 2008-10-04 21:32:51
|
Update of /cvsroot/linux-decnet/dnprogs/libdnet In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17788 Modified Files: getobjectbyX.c Log Message: added new objects to static table from nml/nml.c Index: getobjectbyX.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/getobjectbyX.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** getobjectbyX.c 4 Oct 2008 16:33:42 -0000 1.3 --- getobjectbyX.c 4 Oct 2008 21:31:49 -0000 1.4 *************** *** 34,40 **** --- 34,42 ---- } _dnet_objdb[] = { { 17, "FAL" }, + { 18, "HLD" }, { 19, "NML" }, { 19, "NICE" }, // alias! { 23, "DTERM" }, + { 23, "REMACP"}, // alias! (nml.c) { 25, "MIRROR"}, { 26, "EVR" }, *************** *** 43,46 **** --- 45,49 ---- { 29, "PHONE" }, { 42, "CTERM" }, + { 51, "VPM" }, { 63, "DTR" }, { -1, NULL} // END OF LIST |
From: <ph3...@us...> - 2008-10-04 18:27:56
|
Update of /cvsroot/linux-decnet/dnprogs/phone In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7909 Modified Files: backend.c phone_server.c Log Message: and get ride of another two compiler warnings: socklen_t and n_addr is unsigned... Index: backend.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/backend.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** backend.c 4 Oct 2008 14:45:49 -0000 1.7 --- backend.c 4 Oct 2008 18:27:44 -0000 1.8 *************** *** 716,720 **** { struct nodeent *np2; ! if ( (np2=getnodebyaddr(np->n_addr, 2, AF_DECnet)) != NULL) { strcpy(node, np2->n_name); --- 716,720 ---- { struct nodeent *np2; ! if ( (np2=getnodebyaddr((char*)np->n_addr, 2, AF_DECnet)) != NULL) { strcpy(node, np2->n_name); Index: phone_server.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/phone_server.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** phone_server.c 20 Aug 2008 12:43:59 -0000 1.5 --- phone_server.c 4 Oct 2008 18:27:44 -0000 1.6 *************** *** 396,400 **** int newsock; struct sockaddr_dn sockaddr; ! int len=sizeof(sockaddr); if ( (newsock=accept(fdarray[entry].fd, (struct sockaddr *)&sockaddr, &len)) < 0) --- 396,400 ---- int newsock; struct sockaddr_dn sockaddr; ! socklen_t len=sizeof(sockaddr); if ( (newsock=accept(fdarray[entry].fd, (struct sockaddr *)&sockaddr, &len)) < 0) *************** *** 413,417 **** int newsock; struct sockaddr_un sockaddr; ! int len=sizeof(sockaddr); if ( (newsock=accept(fdarray[entry].fd, (struct sockaddr *)&sockaddr, &len)) < 0) --- 413,417 ---- int newsock; struct sockaddr_un sockaddr; ! socklen_t len=sizeof(sockaddr); if ( (newsock=accept(fdarray[entry].fd, (struct sockaddr *)&sockaddr, &len)) < 0) |