Article View: comp.os.linux.networking
Article #601Re: Dummy net device driver
From: Nick Holloway
Date: Wed, 29 Mar 1995 00:00
Date: Wed, 29 Mar 1995 00:00
21 lines
1487 bytes
1487 bytes
Ivan A. Beveridge <iab@dreamtim.demon.co.uk> writes: > Dear Ivan - I think you should try setting up a route before expecting > packets to get routed "through" the dummy interface: > > route add -host xxx.xxx.xxx.xxx dummy An IP address is recognised as being local if there is an interface with that IP address, which has a route through it. This is why you need both of the following (presuming `hostname` can be resolved to your own IP address): ifconfig dummy `hostname` route add -host `hostname` dummy No packets actually get sent to the interface. You can actually compile statistic into the dummy driver (look for "#undef DUMMY_STATS" in dummy.c) and see that this is so. -- Nick Holloway | `O O' | Home: Nick.Holloway@alfie.demon.co.uk [aka `Alfie'] | // ^ \\ | Work: Nick.Holloway@parallax.co.uk
Technical Details
Message-ID:
<3lc8jr$8ou@alfie.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3kjsv8$4fh@euas20.eua.ericsson.se> <3l71mj$9m@dreamtim.demon.co.uk> <3l7ef4$b5@dreamtim.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10669a,9ca8f4d16fa021f0 X-Google-Attributes: gid10669a,public X-Google-Thread: fac57,9ca8f4d16fa021f0 X-Google-Attributes: gidfac57,public From: Nick.Holloway@alfie.demon.co.uk (Nick Holloway) Subject: Re: Dummy net device driver Date: 1995/03/29 Message-ID: <3lc8jr$8ou@alfie.demon.co.uk> X-Deja-AN: 100535519 sender: usenet@demon.co.uk references: <3kjsv8$4fh@euas20.eua.ericsson.se> <3l71mj$9m@dreamtim.demon.co.uk> <3l7ef4$b5@dreamtim.demon.co.uk> x-posting-host: alfie.demon.co.uk organization: Alfie's Internet Node newsgroups: comp.os.linux.networking,demon.tech.unix