Change packet.length to packet.size() because most people expect .length to not be a function
Ethernet device shouldn't check for this.  It's the switch's responsibility if anything.