]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ethernet] Add minimal support for receiving LLC frames
authorMichael Brown <mcb30@ipxe.org>
Thu, 25 Jun 2015 13:37:18 +0000 (14:37 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 25 Jun 2015 14:28:42 +0000 (15:28 +0100)
commit7e7870984b4e63eeaf8416289c11bc386a77d5ba
tree5f62f7b0acc482038c08c176958577e5d8a536da
parent36817ea260331d7da9ea088f7e64d86ea9a1ac1d
[ethernet] Add minimal support for receiving LLC frames

In some Ethernet framing variants the two-byte protocol field is used
as a length, with the Ethernet header being followed by an IEEE 802.2
LLC header.  The first two bytes of the LLC header are the DSAP and
SSAP.

If the received Ethernet packet appears to use this framing, then
interpret the two-byte DSAP and SSAP as being the network-layer
protocol.  This allows support for receiving Spanning Tree Protocol
frames (which use an LLC header with {DSAP,SSAP}=0x4242) to be added
without requiring a full LLC protocol layer.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ethernet.c