upload changes done on plane

This commit is contained in:
soypat
2025-08-31 12:42:46 -03:00
parent d254f3ae80
commit d28203e75f
9 changed files with 70 additions and 16 deletions
+3 -2
View File
@@ -21,11 +21,12 @@ func _() {
_ = x[FieldClassOptions-10]
_ = x[FieldClassPayload-11]
_ = x[FieldClassText-12]
_ = x[FieldClassAddress-13]
}
const _FieldClass_name = "undefinedsourcedestinationprotocolversiontypefield sizeflagsidentificationchecksumoptionspayloadtext"
const _FieldClass_name = "undefinedsourcedestinationprotocolversiontypefield sizeflagsidentificationchecksumoptionspayloadtextaddress"
var _FieldClass_index = [...]uint8{0, 9, 15, 26, 34, 41, 45, 55, 60, 74, 82, 89, 96, 100}
var _FieldClass_index = [...]uint8{0, 9, 15, 26, 34, 41, 45, 55, 60, 74, 82, 89, 96, 100, 107}
func (i FieldClass) String() string {
if i >= FieldClass(len(_FieldClass_index)-1) {
+1 -1
View File
@@ -103,7 +103,7 @@ func (ls *StackEthernet) Demux(carrierData []byte, frameOffset int) (err error)
}
DROP:
ls.info("LinkStack:drop-packet", slog.String("dsthw", net.HardwareAddr(dstaddr[:]).String()), slog.String("ethertype", efrm.EtherTypeOrSize().String()))
return errors.New("drop packet")
return lneto.ErrPacketDrop
}
func (ls *StackEthernet) Encapsulate(carrierData []byte, frameOffset int) (n int, err error) {