add pcap printing to examples/xnet

This commit is contained in:
soypat
2025-12-31 13:21:46 -03:00
parent ed89f169d9
commit 7369ec0b7e
4 changed files with 181 additions and 140 deletions
+3 -2
View File
@@ -22,11 +22,12 @@ func _() {
_ = x[FieldClassPayload-11]
_ = x[FieldClassText-12]
_ = x[FieldClassAddress-13]
_ = x[FieldClassBinaryText-14]
}
const _FieldClass_name = "undefinedsourcedestinationprotocolversiontypefield sizeflagsidentificationchecksumoptionspayloadtextaddress"
const _FieldClass_name = "undefinedsourcedestinationprotocolversiontypesizeflagsidentificationchecksumoptionspayloadtextaddressbinary-text"
var _FieldClass_index = [...]uint8{0, 9, 15, 26, 34, 41, 45, 55, 60, 74, 82, 89, 96, 100, 107}
var _FieldClass_index = [...]uint8{0, 9, 15, 26, 34, 41, 45, 49, 54, 68, 76, 83, 90, 94, 101, 112}
func (i FieldClass) String() string {
if i >= FieldClass(len(_FieldClass_index)-1) {