Re: [cc65] [very OT] KVM

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-09 23:07:55


Hi!

On Thu, Oct 09, 2003 at 10:44:36PM +0200, Adam Dunkels wrote:
> Ok, great! Yes they are in BSD, but I wouldn't be surprised if there
> were a few differences between Linux and BSD though... Uz: is it
> possible to send raw Ethernet frames using raw sockets?

Yes. Linux has a protocol family named "packet", and giving the PF_PACKET
protocol family specifier when creating a socket with SOCK_RAW, you get a raw
socket that is able to pass readily assembled packets to the ethernet layer.
Linux has a manual page paket(7) explaining this feature.

The code is not the real problem (I think), but the program does either need
the CAP_NET_RAW capability, or must run suid 0. Capabilities are not fully
supported under Linux and running VICE suid 0 will extend the security
features of the emulated C64 to the Linux machine:-)

> I quickly
> checked the BSD TCP/IP stack bible yesterday (TCP/IP Illustrated volume
> 2 / Stevens, amazing book!) and I didn't see anything obvious, but the
> book is a couple of years old and I just looked quickly.

Assembling packets for lower layers is probably out of the scope of this book.

But of course this is more than just "very OT", so maybe we can discuss this
in private mail. I had already a small mail exchange with Spiro about these
things.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-09 23:08:06 CEST