Re: protocol handler for a proprietary protocol
- From: Tauno Voipio <tauno.voipio@xxxxxxxxxxxxx>
- Date: Fri, 16 Jun 2006 19:56:01 GMT
Chris Friesen wrote:
Tauno Voipio wrote:
The tun/tap driver is in reverse to what the OP wants to do.
The tun/tap creates a pseudo-interface to connect to the network
stack toward the internals of the host, but the OP wants to
connect to the link level interface (Ethernet). The packet
socket is the correct method here.
If you set up ethernet bridging you can forward the packets injected via tun/tap out a real ethernet device.
<nitpicking>
Sending network layer packets to another host is forwarding,
sending data link layer packets directly to another interface is
bridging.
</nitpicking>
The bridging is set up so that there will be a new pseudo-interface,
the bridge, named from br0 onward. The IP properties are set to the
bridge interface, and the IP packets are handled like the packets
to / from a real data link interface. The data-link frames are
'forwarded' between the members of the bridge without ever visiting
the IP layer. An important detail is that the bridge component
interfaces shall not have IP addresses or routings of their own
anymore. This applies to the bridged tap interface as well.
The bridge interface is included into the normal routing tables
of the IP layer as any other data link interface, and the packets
can be forwarded to an interface not in the same bridge (and back,
of course).
--
Tauno Voipio
tauno voipio (at) iki fi
.
- References:
- protocol handler for a proprietary protocol
- From: aman79
- Re: protocol handler for a proprietary protocol
- From: Chris Friesen
- Re: protocol handler for a proprietary protocol
- From: Tauno Voipio
- Re: protocol handler for a proprietary protocol
- From: Chris Friesen
- protocol handler for a proprietary protocol
- Prev by Date: Re: protocol handler for a proprietary protocol
- Next by Date: lacp support?
- Previous by thread: Re: protocol handler for a proprietary protocol
- Next by thread: lacp support?
- Index(es):
Relevant Pages
|