what a rabbithole. lots of goodies now.

This commit is contained in:
2021-12-18 04:23:35 -05:00
parent 11b0744e5c
commit 8f582d37f1
24 changed files with 399 additions and 326 deletions

View File

@@ -0,0 +1,35 @@
package main
type Port struct {
// The things I do.
// Number uint16 `csv:"-"`
CsvNum IanaNum `csv:"Port Number"`
// We need to map this ourselves.
// Protocol *protos.IPProto `csv:"-"`
Proto string `csv:"Transport Protocol"`
ServiceName string `csv:"Service Name"`
Description string `csv:"Description"`
// This too.
// Reserved bool `csv:"-"`
}
type Proto struct {
Name string `csv:"Keyword"`
Description string `csv:"Protocol"`
// We need to map this ourselves.
// Number uint8 `csv:"-"`
CsvNum IanaNum `csv:"Decimal"`
Reference string `csv:"Reference"`
// These too.
// Reserved bool `csv:"-"`
// IP6ExtensionHeader bool `csv:"-"`
Ip6ext Ip6ExtBool `csv:"IPv6 Extension Header"`
}
type ProtoSet []*Proto
type PortSet []*Port
type Ip6ExtBool bool
// Gorram it, IANA.
type IanaNum string