mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 15:09:05 +00:00
Minor fixes
This commit is contained in:
+1
-1
@@ -255,7 +255,7 @@ func (h *Handler) Demux(ethFrame []byte, frameOffset int) error {
|
||||
}
|
||||
|
||||
func trySetEthernetDst(ethFrame []byte, dst []byte) {
|
||||
if len(ethFrame) > 14 {
|
||||
if len(ethFrame) >= 14 {
|
||||
copy(ethFrame[:6], dst)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user