Move DF indication into LogFrame

This commit is contained in:
David Wragg committed 2015-06-25 17:11:20 +01:00
1 parent 4162dcafd3
commit 5690902173
3 files changed
+19 -19

No files matched your search

+4
View File
@@ -75,3 +75,7 @@ func (dec *EthernetDecoder) IsSpecial() bool {
return dec.Eth.Length == 0 && dec.Eth.EthernetType == layers.EthernetTypeLLC &&
bytes.Equal(zeroMAC, dec.Eth.SrcMAC) && bytes.Equal(zeroMAC, dec.Eth.DstMAC)
}
func (dec *EthernetDecoder) DF() bool {
return len(dec.decoded) == 2 && (dec.IP.Flags&layers.IPv4DontFragment != 0)
}