Linux-Networking Digest #762, Volume #11 Fri, 2 Jul 99 17:13:44 EDT
Contents:
Re: PLEASE HELP ME GET ONLINE WITH LINUX! (M. Buchenrieder)
Solution for runsocks problem on Glibc 2.1 based systems (RH 6.0) (Roman Sulzhyk)
Re: Structure of .htaccess ? How to restrict access to http subdirectory ("hartje")
IPX/NCP/NWCLIENT will not talk to network/ NCP/IP? ("John R. Bennett")
Samba automount!!! (Heiko Kopitzki)
IP Masquerading problem (Mark Ott)
Re: Linux VPN that is Compatable with Micro$oft? (Bob)
Re: Private DNS useless?? (Bernd Eckenfels)
2.2.10 upgrade => broken networking (Dave Warner)
Re: Damn Apache ([EMAIL PROTECTED])
Re: C++ templates: More than Turing Complete? (Johan Kullstam)
Re: Net tools for 2.2.9? (Bernd Eckenfels)
Re: Linux routing (Bernd Eckenfels)
Re: samba and epson stylus 600 (Thomas Gamble)
Re: Linux Box as local PPP server (Wolfgang Rufeger)
Re: C++ templates: More than Turing Complete? (Alexander Viro)
Direct Cable Network (Jason Martinez)
Re: Damn Apache ([EMAIL PROTECTED])
Re: C++ templates: More than Turing Complete? (Greg Comeau)
Re: Why not C++ (Greg Comeau)
Problems running PPP scripts.... (Cheesewizz)
newbie- Network Printing.. help... ([EMAIL PROTECTED])
Re: PPP Server problems (Clifford Kite)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (M. Buchenrieder)
Subject: Re: PLEASE HELP ME GET ONLINE WITH LINUX!
Date: Fri, 2 Jul 1999 11:08:40 GMT
"Daniel Mitchell" <[EMAIL PROTECTED]> writes:
[...]
>Under Linux, I can duplicate the terminal-without-a-command-prompt part with
>minicom but I can't get that second, mysterious logon part to work. Again,
>under Windows it was automated so I have no idea what was going on.
Most ISPs do run Win*-oriented logon scripts, that's why you won't have
that many errors with them.
>From what I've heard, "wvdial" should be quite good in getting
you connected. If you want to do it the hard way, show us your
config files (/etc/ppp stuff) .
>I'd
>really appreciate some help with this as I can't do any of the cool stuff
>that I want to do (update kernel, download GNOME and KDE, or figure out how
>to use my damn USB mouse with X) until I get my Linux system to go online.
Spend the USD 2.-- for a CDROM set from cheapbytes.
Michael
--
Michael Buchenrieder * [EMAIL PROTECTED] * http://www.muc.de/~mibu
Lumber Cartel Unit #456 (TINLC) & Official Netscum
Note: If you want me to send you email, don't munge your address.
------------------------------
From: Roman Sulzhyk <[EMAIL PROTECTED]>
Subject: Solution for runsocks problem on Glibc 2.1 based systems (RH 6.0)
Date: Fri, 02 Jul 1999 18:59:42 +0000
This is a multi-part message in MIME format.
==============96B4DDCC6FF770F9BADBF610
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Gentlemen:
My first post failed, apparently news server has problem with Netscape 4.5+ on
Linux. Trying again, sorry...
There were a number of posts complaining about runsocks not working on RedHat 6.0
(coredumping on all programs). I've spent a while trying to get it to work, and it
seems to be related to a bug (?) in dlsym() when library symbol versioning is used
(default in 2.1.x glibc). Anyway, I'm sure this will get resolved in the later
versions of glibc, however if you want to run your apps on RH using runsocks in the
meanwhile, apply the following patch to your socks5-v1.0r9:
--- begin patch---
--- lib/rld.c.orig Fri Jul 2 12:56:59 1999
+++ lib/rld.c Fri Jul 2 12:44:36 1999
@@ -58,9 +58,19 @@
if (!(handle) && ((handle) = dlopen((libname), (flags))) == NULL) { \
return; \
} \
- if ((*fptr = dlsym((handle), name)) != NULL) { \
- return; \
- }
+ if ((*fptr = dlvsym((handle), name, "GLIBC_2.1")) == NULL) \
+ { \
+ S5LogUpdate ( S5LogDefaultHandle, S5_LOG_DEBUG(10), 0, \
+ "Unable to locate symbol %s in glibc 2.1 : %s", \
+ name, dlerror() ); \
+ if ((*fptr = dlsym((handle), name)) != NULL) \
+ { \
+ S5LogUpdate(S5LogDefaultHandle, S5_LOG_DEBUG(10), 0, \
+ "Found %s in %s%s", name, (libname), \
+ libmask&USE_RTLD_GLOBAL?"(g)":""); \
+ return ; \
+ } \
+ }
#define DGETSYM(handle, libname, flags) \
if (!(handle) && ((handle) = dlopen((libname), (flags))) == NULL) { \
--- end patch ---
It may complain a bit about converting pointer to integer in dlvsym() as it
doesn't seem to get a definition for it, but will work fine.
Enjoy!
Roman
==============96B4DDCC6FF770F9BADBF610
Content-Type: text/x-vcard; charset=us-ascii;
name="roman.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Roman Sulzhyk
Content-Disposition: attachment;
filename="roman.vcf"
begin:vcard
n:Sulzhyk;Roman
tel;work:(914) 448 7477
x-mozilla-html:TRUE
org:Prodigy Communications Inc
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
x-mozilla-cpt:;21024
fn:Roman Sulzhyk
end:vcard
==============96B4DDCC6FF770F9BADBF610==
------------------------------
From: "hartje" <[EMAIL PROTECTED]>
Subject: Re: Structure of .htaccess ? How to restrict access to http subdirectory
Date: Fri, 2 Jul 1999 20:32:51 +0200
You will find plenty of info at www.apache.org .... its structured like
this taken from http://www.apache.org/docs-1.2/misc/FAQ.html
deny from all
allow from .domain.com
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
AuthName special directory
require valid-user
satisfy any
if you run your own apache else ask your provider
------------------------------
From: "John R. Bennett" <[EMAIL PROTECTED]>
Subject: IPX/NCP/NWCLIENT will not talk to network/ NCP/IP?
Date: Mon, 28 Jun 1999 16:03:55 -0500
This is a multi-part message in MIME format.
==============E395A1816E9A73652836CBD8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I have a Novell NetWare network which I am trying to get my RH6 box to
talk to. I have attempted to use the included NCP package with no
success. I have attempted to use Caldera Systems' NetWare Client for
Linux to no avail. IP works great over the same interface. I have a
hunch that the problem is IPX related. My NetWare servers are at the
latest patch levels and are communicating with one another and other
Micro$oft clients properly. Does anyone have a clue?
BTW: Is anyone working on porting NetWare 5's NCP/IP to Linux?
==============E395A1816E9A73652836CBD8
Content-Type: text/x-vcard; charset=us-ascii;
name="jrbennett.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John R. Bennett
Content-Disposition: attachment;
filename="jrbennett.vcf"
begin:vcard
n:Bennett;John R.
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:John R. Bennett
end:vcard
==============E395A1816E9A73652836CBD8==
------------------------------
From: Heiko Kopitzki <[EMAIL PROTECTED]>
Subject: Samba automount!!!
Date: Fri, 02 Jul 1999 18:11:24 +0200
Hi! I'd like to have up to 3 shares automounted when starting Linux, as
well as umounted when I shut down.
So my questions: which files do I have to modificate? (I'm using SuSE
Linux 6.1) and much more important will be, that I have to be able to
access these shares as normal user, so how can I manage that I don't
have to go su every time I want to write something on the network!!!
Thanks for your support!!!
Heiko Kopitzki
------------------------------
From: Mark Ott <[EMAIL PROTECTED]>
Subject: IP Masquerading problem
Date: Fri, 02 Jul 1999 14:10:29 -0500
I'm running RedHat 6.0, with IP Masquerading
set up to provide internet access to my other
computers, and it works great, except for one
problem....
Some web sites just won't come through on the
other computers. Almost all sites come through
fine, but a few, such as www.buy.com, www.sony.com,
and lately, www.gamestorm.com will not. The web
browser says it connected to the site, but then it
just waits forever.
These sites do come through fine on the machine
with the modem, so I think it must be a problem
with masquerading.
I can telnet into the sites, and type GET, which
works fine on the machine with the modem, but
on the others, it just waits forever.
I use this script to get masquerading started...
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0
I also had this problem using RedHat 5.2
and ipfwadm
BTW, the gamestorm site just started not working,
and I can't think of anything that's changed
since it did work.
Any ideas or suggestions????
thanks
Mark
------------------------------
From: [EMAIL PROTECTED] (Bob)
Subject: Re: Linux VPN that is Compatable with Micro$oft?
Date: Fri, 02 Jul 1999 19:02:53 GMT
Mike Gorsuch <[EMAIL PROTECTED]> wrote:
>Hey fellas, maybe you guys can give me a few pointers. Our company has a
>high speed connection to the internet and would like to set up a VPN
>system so users can access network info from anywhere in the world.
>Since our clients are Windows 98 based, we will need a compatible
>solution. I'm asking you for a software suit available to Linux that will
>be compatible with Windows, and it must be STABLE and SECURE... any
>suggestions?
>
well - 1st things 1st - microsoft didn't come up with vpn - they only
gave it a different name.
vpn IS microsofts' version of *nix's pptp.
so, now that the 1st thing is done, I find I've answered your Q too!
:-)
as for how far along pptp for linux is, that I don't know - I haven't
yet implemented it in anything other than win.
but i'm sure the man/doc/howto's will give you version/release info...
________________________________________________
Definition of Windows 95:
A 32 bit upgrade to 16 bit extensions for an 8 bit operating system
designed to run on a 4 bit processor by a 2 bit company that
doesn't like 1 bit of competition.
------------------------------
From: Bernd Eckenfels <[EMAIL PROTECTED]>
Subject: Re: Private DNS useless??
Date: 2 Jul 1999 19:21:23 GMT
Nicholas E Couchman <[EMAIL PROTECTED]> wrote:
> /etc/hosts is great for Linux, if all you have is Linux, sure, why not. What
> about those Wintel machines, though? They can't use /etc/hosts. That's why I
> have a DNS server.
use lmhosts
Greetings
Bernd
------------------------------
From: [EMAIL PROTECTED] (Dave Warner)
Subject: 2.2.10 upgrade => broken networking
Date: 2 Jul 1999 01:09:39 GMT
Reply-To: [EMAIL PROTECTED]
I just ftp'd 2.2.10 from linux.org, built and installed on a stock RH5.2
system. I'm on a standalone box (no eth0) with the only networking being
between Linux and a VMWare hosted Win98 (VMWare, for those that don't know,
is a spiffy app that runs Win junk in a virtual machine on top of Linux).
With the 2.2.10 kernel Samba is broken, ping/ftp/telnet Linux <==> VMWare
Win98 is broken both ways. ping/ftp/telnet works to local IP in both cases,
ifconfig looks the same as the RH5.2 kernel, X works, local Apache works.
Reboot the RH5.2 kernel and all is well.
Any ideas? I have upgraded absolutely nothing else but the kernel -- do I
need anything else for such basic networking to work?
--
Dave Warner
Boulder Fork Lift Co., Inc.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Damn Apache
Date: Fri, 02 Jul 1999 19:33:50 GMT
Yeah, way off, i have it configured as a gateway but for the browser it
has to be a proxy. But thank you for the input, your the only one who
has answered all day! Thanx again!
In article <Nb7f3.2355$[EMAIL PROTECTED]>,
"BAd" <[EMAIL PROTECTED]> wrote:
> I could be WAY off on this, but shouldn't you set up your Linux box
as a
> gateway, rather than a proxy?
>
> [EMAIL PROTECTED] wrote in message
<7lief4$beb$[EMAIL PROTECTED]>...
> >I finally got PPP to work on my Linux box. I forwarded my IP
address.
> >Tell me if this is right, here's what i did
> >ipfwadm -F -a deny
> >ipfwadm -F -m 10.8.80.6/8 -D 0.0.0.0/0
> >
> >My linux box's network addy is 10.8.80.6 and my Internet IP is
assigned
> >dynamically. Well, I did this and connected with my ISP and pinged
> >various web sites, so my PPP on my Linux box obiviously worked. Then
I
> >went to Netscape on my Windows 98 box and set the http proxy to
> >10.8.80.6 port 80. I don't know if port 80 is right, or if i can
change
> >the port or what, but the locally stored apache page came up with
every
> >web site. I looked in the apache FAQ to find out how to shut it off,
> >and it gave me some kill command. But the command said to kill
> >something in .usr/local/apache/... and i have no apache directory in
> >/usr/local. For right now I dont even need apache, so if someone
could
> >please tell me how to uninstall it or something, that would be great,
> >but it would be even better if someone knows of another reason why my
IP
> >forwarding doesnt work or how to make it work so i can access the web
> >from my 98 box by goign through my Linux box. Thanx in advance!
> >
> >
> >Sent via Deja.com http://www.deja.com/
> >Share what you know. Learn what you don't.
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: C++ templates: More than Turing Complete?
Date: 02 Jul 1999 14:46:50 -0400
Mads Dydensborg <[EMAIL PROTECTED]> writes:
> Stephan Houben <[EMAIL PROTECTED]> writes:
>
> > No, not every C++ program is compiled to a finite amount of assembly.
> > Take the following counter-example:
> > ----------------begin code------------------
> > template <class A>
> > void call_me(A a, int i)
> > {
> > if (i > 0)
> > call_me(&a, i - 1);
>
> Isn't the & an error? I mean, it is legal, and should not matter, but
> it makes no sense.
it *is* legal. the point is that it is
a) a syntactically correct C++ program
b) doesn't have a finite compile time nor finite sized assembly output
the whole point is to be a counterexample to a previous assertion that
a) and b) were mutually exclusive. it's not intended to be useful as
an actual program.
--
johan kullstam
------------------------------
From: Bernd Eckenfels <[EMAIL PROTECTED]>
Subject: Re: Net tools for 2.2.9?
Date: 2 Jul 1999 19:29:49 GMT
Stephen Davies <[EMAIL PROTECTED]> wrote:
> I am currently running kernel 2.2.9, tcpdump V3.4 and net tools 1.52.
> This combination give me errors in at least two places:
> 1. route add -net 127.0.0.0 gives SIOCADDRT too many arguments
it is not needed for 2.2 kernels, interface routes are set up
automatically... just remove the line
> 2. running tcpdump gives "tcpdump uses obsolete (PF_INET,SOCK_PACKET)
you need a new libpcap/tcpdump packet.
> In both cases,all functionality seems to be there (except that there is
> no route entry displayed for lo).
You can see the automatic routes if you use "ip" from the iptools.
Greetings
Bernd
------------------------------
From: Bernd Eckenfels <[EMAIL PROTECTED]>
Subject: Re: Linux routing
Date: 2 Jul 1999 19:25:25 GMT
[EMAIL PROTECTED] wrote:
> Does somebody know how to set the routing, so that we can reach the
> internet from the other PCs an use the linux for routing???
use a simple masquerading setup.
route add default dev eth1
route add -net 10.0.0.0 dev eth0
ipfwadm -F -i acc -m -W eth1 # your external if
Greetings
Bernd
------------------------------
From: [EMAIL PROTECTED] (Thomas Gamble)
Subject: Re: samba and epson stylus 600
Date: 1 Jul 1999 18:13:05 GMT
I had a similar problem. It turned out I needed to uncomment the
"printing=bsd" line in /etc/smb.conf.
On Mon, 28 Jun 1999 00:50:34, "TURBO1010" <[EMAIL PROTECTED]>
wrote:
> Better yet, why don't you post your smb.conf file, particularly the printer
> section, and also tell us what it's doing?
>
> andrew g robinson <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > setup
> > server ;redhat linux 6.0 , two ethernet card .. one to dhcp sever (cable
> > modem) other for internal network
> > client: dual boot redhat linux and win98 one ethernet card
> > network: ne200 ethernet with hub
> >
> > problem: cannot get the win98 machine to print to the epson 600 stylus
> > printer on the server. samba appears to be working. I can save files
> > on the shared directory. lp shows up in the shared directory but i
> > cannot print to the printer. I know the printer is working on the
> > network because when i reboot into linux on the client and print to the
> > server... it work hurray. if someone with a samba setup like mine
> > could post thier smb.conf i would appreciate it . then i could see
> > what i am doing wrong. My thoughts are i do not have the printer
> > properly configured in samba.
> >
> >
> >
> >
>
>
>
Tom
Thomas K. Gamble
[EMAIL PROTECTED]
[EMAIL PROTECTED]
For PGP public key, send email
with the subject "Request PGP key"
------------------------------
Date: Fri, 02 Jul 1999 21:59:10 +0200
From: Wolfgang Rufeger <[EMAIL PROTECTED]>
Subject: Re: Linux Box as local PPP server
> I'm trying to set up a Linux box with a dial-up connection to my ISP so
> that users on the local network will get access to the Internet through
> Explorer/Netscape on their own (MS) machines on the local network.
>
> [...]
>
> a.) Make the network connection between the users IP address and the DNS
> supplied IP address on the Linux box.
Use IP masquerading. Look at http://members.home.net/ipmasq/ for more
information.
All user IP addresses will be masqueraded with the IP address of Your
Linux box.
All users of the local intranet will tranparently surf the internet with
the IP of the Linux box.
> b.)Automate the dial-up process and make it invisible to the user.
Use diald to bring up and shut down modem connections automatically. See
the man pages of diald and have a look at the file /etc/diald.conf.
CU Wolfgang
-- Wolfgang Rufeger ----- o o ----- [EMAIL PROTECTED] --
--- Tokajerweg 25 -------- O --------- http://home.pages.de/~wolf/ ----
===== 89075 Ulm =======================================================
---- 0731/9501308 -----------------------------------------------------
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: C++ templates: More than Turing Complete?
Date: 2 Jul 1999 16:16:52 -0400
Oops. Hate to followup to myself, but...
In article <7li0fd$[EMAIL PROTECTED]>, I wrote:
>In article <[EMAIL PROTECTED]>,
>Stephan Houben <[EMAIL PROTECTED]> wrote:
>>No, not every C++ program is compiled to a finite amount of assembly.
>>Take the following counter-example:
>>----------------begin code------------------
>>template <class A>
>>void call_me(A a, int i)
>>{
>> if (i > 0)
>> call_me(&a, i - 1);
^-- arrgh. Sorry, I missed it. That's what one gets for posting
when too low on caffeine...
But comment still stands:
>Nope. You are wrong here. The right question being: what set of types it
>might be applied to? And that problem is *not* TC. Especially with the poor
>polymorphism provided by templates. In that case:
>
>TYPES( main ) = \{map(int,void)\}
>TYPES( call_me ) \subset map(pair(_,int),void)
>map(pair(int,int),void) \in TYPES( call_me )
>map(pair(x,int),void) \in TYPES(call_me) =>
> map(pair(x,int),void) \in TYPES(call_me)
^^^^^^^^^^^^^^^^^^^^^
map(pair(pointer(x),int),void)
>Minimal solution:
>TYPES(main) = \{map(int,void)\},
>TYPES(call_me) = \{map(pair(int,int),void)\}
TYPES(call_me) = \{map(pair(pointer^k(int),int),void): k>=0\}
>In this case functions are not polymorphic at all. Even if they were you
>wouldn't have to compile an infinite amount of variants.
>
>Notice that you don't need to know the full set of potential types -
>natural polymorphism of operations restricts the depth. Now, one *can*
... which is the case here. Set of types has trivial enumeration (they
are trees) and all operations are computable.
The shit might hit the fan if the syntax would allows recursive
functional types (e.g. with recursive typedef - typedef int A(A); would
give a bad PITA)
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
Date: Fri, 02 Jul 1999 13:11:28 -0700
From: Jason Martinez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Direct Cable Network
I bought a parallel cable for direct cable connections in windows 9x.
Can I use this cable for networking two 486's with SuSE 6.1 installed?
If so could someone please explain in as laments terms as possible how.
Thank you.
Jason Martinez
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Damn Apache
Date: Fri, 02 Jul 1999 19:55:17 GMT
heya!
Might I suggest a few things ..
First take a look at the following pages
http://members.home.net/ipmasq/
http://www.linux-howto.com/
The first deals specifically with IPMasquerading
The second has the HOW-TO's in plain and html format LOTS of good
information there .
Also, go to deja.com and do a search on ipMasquerading , proxy, etc
..etc..etc .. this topic is discussed quite often in the Linux news
groups.
--
Thanks!
Dave
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: [EMAIL PROTECTED] (Greg Comeau)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: C++ templates: More than Turing Complete?
Date: 2 Jul 1999 16:26:31 -0400
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]> Mads Dydensborg <[EMAIL PROTECTED]>
writes:
>Stephan Houben <[EMAIL PROTECTED]> writes:
>
>> No, not every C++ program is compiled to a finite amount of assembly.
>> Take the following counter-example:
>> ----------------begin code------------------
>> template <class A>
>> void call_me(A a, int i)
>> {
>> if (i > 0)
>> call_me(&a, i - 1);
>
>Isn't the & an error? I mean, it is legal, and should not matter, but
>it makes no sense.
>
>Perhaps this is what you are trying to say?
Yes, because it goes from int to int * to int ** to int ***.....
--
Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
Producers of Comeau C/C++ 4.2.38 -- New Release! We now do Windows too.
Email: [EMAIL PROTECTED] / Voice:718-945-0009 / Fax:718-441-2310
*** WEB: http://www.comeaucomputing.com ***
------------------------------
From: [EMAIL PROTECTED] (Greg Comeau)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: 2 Jul 1999 16:14:58 -0400
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]> Justin Vallon <[EMAIL PROTECTED]>
writes:
>[EMAIL PROTECTED] (Bruce Hoult) writes:
>
>> In article <7lbkp6$h72$[EMAIL PROTECTED]>, Cameron Hutchison
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Consider this:
>> >
>> > #define inc(x) (++(x))
>> > ...
>> > int x = 1;
>> > ...
>> > inc(x);
>> >
>> > In this case, x is being modified and you cannot tell from the context. It
>> > may be bad form to write a macro with lower case letters, but it can also
>> > be argued that it is bad form to use non-const references in C++.
>>
>> A hit! A very palpable hit!
>
>Right, but you called the macro/function inc. Maybe it would be more
>obvious if the function were named increment?
>
>template<class T>
>inline T& increment(T& x) {
> return ++x;
>}
>
>Is there any question as to whether increment(y) changes the value of y?
That is certainly a step in the right direction, but to answer your
question: Yes, _indeed there is_ a question as to whether increment(y)
changes the value of y?
- Greg
--
Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
Producers of Comeau C/C++ 4.2.38 -- New Release! We now do Windows too.
Email: [EMAIL PROTECTED] / Voice:718-945-0009 / Fax:718-441-2310
*** WEB: http://www.comeaucomputing.com ***
------------------------------
From: Cheesewizz <[EMAIL PROTECTED]>
Subject: Problems running PPP scripts....
Date: Fri, 02 Jul 1999 13:04:10 -0700
Here's my problem: I use a script 'ppp-on,' which connects just fine if
the root user executes it, but if I execute that same script as a normal
user, the script fails with these messages:
Jul 2 00:57:34 blah pppd[296]: pppd 2.3.5 started by bob, uid 500
Jul 2 00:57:35 blah pppd[296]: Connect script failed
Jul 2 00:57:36 blah pppd[296]: Exit.
I set pppd to run suid root, so that is not the problem, and I dont know
what could be causing it. I have a feeling that it has something to do
with permissions, but I don't know what file is causing this.
This is what my ppp-on script looks like, if that will help:
#!/bin/sh
exec /usr/sbin/pppd connect 'chat -v "" ATL1DT8228836 CONNECT \
"" ogin: username word: password' /dev/ttyS0 115200 noipdefault crtscts
\
modem defaultroute
Thanks
------------------------------
From: [EMAIL PROTECTED]
Subject: newbie- Network Printing.. help...
Date: Fri, 02 Jul 1999 19:44:03 GMT
hi, I'm trying to figure out how to network a printer.. It prints fine
from the local machine its connected to, but when the other machines
try to print to it, it does nothing..
when I do an 'lpc status lp' it says
waiting for qeueing to be enabled on 10.10.0.29 (IP of the printer
machine)
plase help....
thank you
mike nichols
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: kite@NoSpam.%inetport.com (Clifford Kite)
Subject: Re: PPP Server problems
Date: 2 Jul 1999 13:10:18 -0500
Bill ([EMAIL PROTECTED]) wrote:
: After 5 hours of trying and 3 hours of web searching I�ve come to
: the conclusion that a message here is probably my best bet.
: Setup:
: RedHat Linux Server (2.0.36)
: cat /proc/sys/net/ipv4/ip_forward 1
: Laptop Client (eth & modem)
: Here where I�m stuck and what already works:
: 1. Dial-In OK
: 2. PPP Connection OK
: 3. Ping server using IP address OK
: 4. Ping server using name BROKEN
Is /etc/resolv.conf configured with a DNS nameserver for the LAN? Or does
the /etc/hosts file on the laptop connect the name of the peer with the
IP address?
: 5. Ping anything else BROKEN
Same questions as for (4) except applied to the other LAN boxes. I'll
assume the question applies just to those boxes since there's no mention
of a connection to the Internet via the LAN. That would be an entirely
different ballgame.
: I�m trying to set this up so that my laptop always
: has the same IP address.
: NetMask: 255.255.255.0
: Server : 192.168.0.1
: Client : 192.168.0.2
: tcpdump seems to be showing packets coming from other
: systems to eth0 on the server with the package target
: being the cleint, but the don�t seem to be going back
: down the ppp0 pipe.
: I remove my ethernet pcmcia card before initiating the
: dialin connection, and netstat -r just shows the lo device.
What is the laptop routing shown by route -n _after_ you connect?
The actual output, not a narrative. If you can't ping the LAN boxes
by IP quad address but can ping the peer then something is wrong with
the routing on one of the PPP peers provided the connection is sound.
: These are the server files that I think are relevant to the problem:
: /etc/ppp/options:
: asyncmap 0
: netmask 255.255.255.0
: proxyarp
: lock
: crtscts
: modem
: /etc/ppp/options.ttyS1
: lock
: :192.168.0.2
: defaultroute
You don't need the defaultroute for a leafnode box that calls in. Even
if the laptop is on a LAN of it's own you would only need a network
specific route.
: proxyarp
: crtscts
: modem
These are redundant of course, as is the "lock". Not part of the problem
though.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
/* Better is the enemy of good enough. */
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.networking) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Networking Digest
******************************