netdev
[Top] [All Lists]

Re: af_packet bug?

To: Lars Brinkhoff <lars.spam@xxxxxxxxxx>
Subject: Re: af_packet bug?
From: Michael Richardson <mcr@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Oct 2001 20:35:53 -0500
Cc: netdev@xxxxxxxxxxx
In-reply-to: Your message of "30 Oct 2001 08:39:13 +0100." <85lmht1sri.fsf@xxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
>>>>> "Lars" == Lars Brinkhoff <lars.spam@xxxxxxxxxx> writes:
    Lars> The application is in fact a computer emulator.  Among other
    Lars> things, the emulator emulates a network interface using the
    Lars> af_packet facility.  The emulator can run an operating system with
    Lars> a TCP/IP stack, and the emulated machine will have a different IP
    Lars> number than the Linux host.

    Lars> The emulated machine communicates with other network hosts by
    Lars> sending ethernet packets using af_packet.  But since this doesn't
    Lars> work for talking to the host machine the emulator is running on,
    Lars> the emulator must strip off the ethernet header and send those
    Lars> packets to the loopback device.  Does that sound like a plausible
    Lars> solution?

  Sure...
  Or, use ethertap0, and use bridging on the host to get onto the real
wire. That will solve all the problems with host communications.

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr@xxxxxxxxxxxxxxxxxxxxxx http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [


<Prev in Thread] Current Thread [Next in Thread>