From: Stian Sletner <stian@sletner.com>
To: Stas Sergeev <stssppnn@yahoo.com>
Cc: linux-msdos@vger.kernel.org
Subject: Re: DOSEMU does not pick up all packets
Date: Thu, 28 Nov 2002 06:26:58 +0100 [thread overview]
Message-ID: <20021128052658.GA32254@sletner.com> (raw)
In-Reply-To: <3DE3E046.60602@yahoo.com>
* At 2002-11-26T23:57+0300, Stas Sergeev wrote:
:
| >I.e. the IPX tunnel runs on the same box and puts its IPX packets out
| >on eth0 and DOSEMU listens on eth0 but doesn't pick them up.
|
| Ethernet interface is a kind of not a loop-back, why are you expecting
| it to work that way?
I experimented some more with this, since it seemed to be the right
thing to do, the dosnet stuff is IP oriented after all, and shouldn't be
necessary to achieve this, I would think. There's no end to what one
can achieve with an all-nighter of source hacking, eh? After tons of
experimenting and code-writing (and Coke drinking), it boiled down to a
one-line change (of course :) to get it working. Here's the patch. I'd
like to know if this could be applied or if that'd break something else?
--- libpacket.orig 2002-11-26 19:47:24.000000000 +0100
+++ libpacket.c 2002-11-28 06:25:17.000000000 +0100
@@ -83,7 +83,7 @@
if (!config.secure) enter_priv_on();
#ifdef AF_PACKET
if (running_kversion >= 2001000)
- s = socket(AF_PACKET, SOCK_PACKET, proto);
+ s = socket(AF_PACKET, SOCK_PACKET, htons(ETH_P_ALL));
else
s = socket(AF_INET, SOCK_PACKET, proto);
#else
--
Stian Sletner
next prev parent reply other threads:[~2002-11-28 5:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-26 20:57 DOSEMU does not pick up all packets Stas Sergeev
2002-11-26 22:02 ` Stian Sletner
2002-11-28 5:26 ` Stian Sletner [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-29 20:27 Stas Sergeev
2002-11-29 20:48 ` Stian Sletner
2002-11-29 0:40 Stas Sergeev
2002-11-29 19:26 ` Stian Sletner
2002-11-28 21:06 Stas Sergeev
2002-11-28 21:59 ` Stian Sletner
2002-11-26 19:01 Stian Sletner
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=20021128052658.GA32254@sletner.com \
--to=stian@sletner.com \
--cc=linux-msdos@vger.kernel.org \
--cc=stssppnn@yahoo.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