mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Kinzler <akinzler@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: ast@domdv.de
Subject: RE: Injecting packets into the kernel
Date: Sat, 22 Dec 2001 19:26:21 +0100	[thread overview]
Message-ID: <20011222182648Z286844-18284+6190@vger.kernel.org> (raw)

> You can use a raw socket:
> socket(AF_INET,SOCK_RAW,IPPROTO_RAW);

Just tried it. It really submits the packets. However, for the kernel they
are now LOCAL packets, which are not masq'ed. To make that work, they need
to look "remote" (means: received by a device). Any ideas?

> On 22-Dec-2001 Andreas Kinzler wrote:
>> I am trying to fix a problem in diald (demand dialing tool). The problem
>> is
>> that
>> somewhen you need to resubmit IP packets to the kernel that were buffered
>> while the
>> link (PPP in most cases) was down. However, a bit of debugging showed
>> that
>> the method
>> used in diald does not work. You cannot submit to ppp0 directly because
>> of
>> masq/forwaring
>> issues. Can somebody give me some hints how to submit packets from a user
>> mode programm.


             reply	other threads:[~2001-12-22 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-22 18:26 Andreas Kinzler [this message]
2001-12-22 20:57 ` Jeff Dike
  -- strict thread matches above, loose matches on Subject: below --
2001-12-22 20:22 Andreas Kinzler
2001-12-22 22:11 ` Jeff Dike
2001-12-22 16:50 Andreas Kinzler
2001-12-22 16:54 ` Andreas Steinmetz

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=20011222182648Z286844-18284+6190@vger.kernel.org \
    --to=akinzler@gmx.de \
    --cc=ast@domdv.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

all inboxes | Powered by JetHome®