public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schaufler <andreas.schaufler@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: how to find out address of gateway if ip packet's destination is outside of the current network ?
Date: Wed, 10 Sep 2003 20:31:05 +0200	[thread overview]
Message-ID: <3F5F6DE9.3070202@gmx.de> (raw)

Dear all,

I just posted this to linux-net, but this list seems to be down. This I 
post it again in here hoping that it is not to much off topic.

I am currently porting a  backplane networking system to Linux which 
shall be able to do IP over PCI,CPCI, VME etc.

Therefore i am currently developing a Linux network driver which is 
using some lower level comminications API in order to transport IP 
packets between several CPU boards (PPC), which are connected through 
the busses mentioned above.
The system is using an internal replacemant for ARP.  It is looking for 
the destination address in the IP header and looking up the destination 
CPU in some internal table where every CPU is accociated with an IP 
address. Afterwards the IP packet is sent to this CPU and there it is 
put into the IP Stack.

My problem is: If the destination address is outside of the backplane 
networking system (some CPU boards can have ethernet plugs) I need to 
find out the gateway, which will send the packet to the outside network. 
I guessed I could get this information out of void *daddr in the 
hard_header function of the net device, but I was not successfull. Is 
there a way to solve my problem ?

thank you very much for your answers in advance
best regards
-Andreas


                 reply	other threads:[~2003-09-10 18:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F5F6DE9.3070202@gmx.de \
    --to=andreas.schaufler@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox