29 lines
639 B
Go
29 lines
639 B
Go
|
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
|
||
|
}
|