public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: rajashok <ashokrajjb@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Virtual Netdevice
Date: Tue, 16 Oct 2007 03:37:30 -0700 (PDT)	[thread overview]
Message-ID: <13230720.post@talk.nabble.com> (raw)


Hi,

we are trying to to integrate our ipsec onto linux 2.6 kernel to do
so we have created a virtual device [struct net_device] with
dev->type = ARPHRD_VOID and configuring the same MAC address and IP
addresses as present on "eth0" interface and when try to send out the data,
the packets are seen on the network.But we need all the packets
to be processed in the virtual devices "hard_start_xmit" function and this
is never getting called.

Please let me know how to make the kernel call "hard_start_xmit" function of
my virtual device, so i can process the packets in my "hard_start_xmit" and
resend
them on to "Eth0" interface
Do I have to set different IP for virtual device or have to do any other
configurations.

Thanks in advance.

--Ashok


-- 
View this message in context: http://www.nabble.com/Virtual-Netdevice-tf4633398.html#a13230720
Sent from the linux-kernel mailing list archive at Nabble.com.


             reply	other threads:[~2007-10-16 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 10:37 rajashok [this message]
2007-10-18  5:34 ` Virtual Netdevice David Miller

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=13230720.post@talk.nabble.com \
    --to=ashokrajjb@gmail.com \
    --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