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
+13 -1
View File
@@ -4,7 +4,7 @@ package lneto
// Message string
// }
// var genericErrPacketDrop = &ErrorPacketDrop{Message: "lneto: packet dropped"}
// var genericErrPacketDrop = &ErrorPacketDrop{Message: ErrPacketDrop.Error()}
// // ErrGenericPacketDrop returns the generic packet drop error. It performs no allocations.
// func ErrGenericPacketDrop() error {
@@ -14,3 +14,15 @@ package lneto
// func (err *ErrorPacketDrop) Error() string {
// return err.Message
// }
type errGeneric uint8
// Generic errors common to internet functioning.
const (
_ errGeneric = iota // non-initialized err
ErrPacketDrop // packet dropped
)
func (err errGeneric) Error() string {
return err.String()
}