public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Alan Ott <alan@signal11•us>
To: Alan Cox <alan@lxorguk•ukuu.org.uk>
Cc: linux-kernel@vger•kernel.org, netdev@vger•kernel.org
Subject: Re: IP over 802.2 with LLC/SNAP
Date: Fri, 29 Jul 2011 14:42:46 -0400	[thread overview]
Message-ID: <4E32FF26.7010701@signal11.us> (raw)
In-Reply-To: <20110727133209.0d9dd6c4@lxorguk.ukuu.org.uk>

On 07/27/2011 08:32 AM, Alan Cox wrote:
>> So the question is, does Linux support IP over 802.2 with LLC/SNAP? 
> 
> It should be a 'simple matter of hacking' and there are example devices
> that fiddle with packets and add headers etc you can nick a lot of code
> from.

That sounds like it could be a fun project actually. It looks like I can
use what net/ipx does as a pattern, at least to get the receive going.
The send sounds a bit trickier but doable. I'll take a look when I get
some time (but it'll be a couple weeks at least).

> I figure if you can write an IP stack for an ancient Gould system
> you can probably do that.

I haven't written a fully-featured IP stack on the Gould, but it does
handle sending/receiving of UDP, which is what I need for my purposes.

> 
> The other way is to use the Linux raw packet interfaces, open a raw
> socket, push a BPF filter onto it to just get the frames for IP/SNAP and
> ARP/SNAP then modify them and feed them to the kernel tun/tap interface.
> 

Since I just needed to read the one packet on the Linux side, I ended up
just using libpcap to grab the raw packets and parse out the header for
now to get it working.

Thanks for the response and information,

Alan.

      parent reply	other threads:[~2011-07-29 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4E2F8B7B.80906@signal11.us>
2011-07-27 12:32 ` IP over 802.2 with LLC/SNAP Alan Cox
2011-07-27 16:26   ` Rick Jones
2011-07-29 18:42   ` Alan Ott [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=4E32FF26.7010701@signal11.us \
    --to=alan@signal11$(echo .)us \
    --cc=alan@lxorguk$(echo .)ukuu.org.uk \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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