Article View: comp.os.linux.networking
Article #603Re: Dummy net device driver
From: Leon Garde
Date: Sat, 08 Apr 1995 00:00
Date: Sat, 08 Apr 1995 00:00
44 lines
2143 bytes
2143 bytes
Nick.Holloway@alfie.demon.co.uk (Nick Holloway) writes: >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. well, I tried to use a route to the dummy interface one and it worked for some things but not all things (eg X ) So I did a ifconfig dummy hostname route add -host hostname lo this works because an IP address is recognised as being local if there is an interace wth that IP address but a packet for that IP address will only get to be delivered if there is a valid route to an interface. for some things the dummy interface is not a real interface; i dont know why ... there is no requirement to have a route through an interface in order to make its ip address local; there is a requirement to have a route for that ip address, going somewhere ... leon -- leon@cleopatra.hna.com.au lgarde@scorch.hna.com.au
Technical Details
Message-ID:
<3m5075$13v@cleopatra.hna.com.au>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> <3lc8jr$8ou@alfie.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: leon@Cleopatra.hna.com.au (Leon Garde) Subject: Re: Dummy net device driver Date: 1995/04/08 Message-ID: <3m5075$13v@cleopatra.hna.com.au> X-Deja-AN: 100066253 references: <3kjsv8$4fh@euas20.eua.ericsson.se> <3l71mj$9m@dreamtim.demon.co.uk> <3l7ef4$b5@dreamtim.demon.co.uk> <3lc8jr$8ou@alfie.demon.co.uk> organization: the Hunter Network Association newsgroups: comp.os.linux.networking,demon.tech.unix