From: "'Jeff' R. Steinhagen" <Jeff@steinhagen.ch>
To: Sumit <sumit@elitecore.com>
Cc: netdev@oss.sgi.com
Subject: Re: forcing a packet to go through hw net device
Date: Tue, 10 May 2005 08:21:12 +0200 [thread overview]
Message-ID: <200505100821.12636.Jeff@steinhagen.ch> (raw)
In-Reply-To: <HGEFKOBCHAIJDIEJLAKDIECOCBAA.sumit@elitecore.com>
Hi!
Thanks. The binding to a specific device does not seem to solve the problem.
The bypass seem to be behind the filter layer.
It know that it works if the packet is created on the device level itself, but
I would like to ("cleanly") profile the whole closed loop including the
_physical_ device:
application->socket1-> ...kernel...-> physical layer
-> .. kernel..-> socket2 -> application
without bypassing e.g. the arp.
Hoped to avoid modifying and temporarily removing the bypass from the kernel
(-> ugly hack).
Cheers,
Jeff
On Tuesday 10 May 2005 08:02, you wrote:
> Check out netfilter ROUTE target.
> All the best,
> -- Sumit
>
> > -----Original Message-----
> > From: netdev-bounce@oss.sgi.com [mailto:netdev-bounce@oss.sgi.com]On
> > Behalf Of 'Jeff' R. Steinhagen
> >
> > Hi!
> >
> > I have a (maybe trivial) question about the kernel's networking code:
> >
> > A packet with an "outside" destination goes through all layers
> > including the
> > hardware interface (user->socket->protocol->IP->HW). However if
> > the packet is
> > addressed to a local IP the transport through and checks by the hardware
> > layer are avoided. This is perfectly OK for "normal" network usage.
> >
> > I am profiling some network hardware and related code. Is it
> > possible to force
> > an internally generated packet to be send through all/the hardware
> > layers?
prev parent reply other threads:[~2005-05-10 6:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 12:58 forcing a packet to go through hw net device 'Jeff' R. Steinhagen
2005-05-10 6:02 ` Sumit
2005-05-10 6:21 ` 'Jeff' R. Steinhagen [this message]
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=200505100821.12636.Jeff@steinhagen.ch \
--to=jeff@steinhagen.ch \
--cc=netdev@oss.sgi.com \
--cc=sumit@elitecore.com \
/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