ppforge/protocol/protocolmeta.go

29 lines
639 B
Go
Raw Normal View History

package protocol
type ProtocolMeta struct {
Name string
Revision uint
Version string
TCPIPLayer uint
ExtensionTo string
Description string
RequiredJSFunctions []string
LowerLayerIdentification map[string]string
}
func UpdateMetaData(
prot *Protocol,
name string,
version string,
tcpiplayer uint,
osilayer uint,
extensionTo string,
desc string,
) {
prot.Metadata.Name = name
prot.Metadata.Description = desc
prot.Metadata.ExtensionTo = extensionTo
prot.Metadata.Version = version
prot.Metadata.TCPIPLayer = tcpiplayer
}