floof/asn1/FloofProtocol.asn1

80 lines
1.5 KiB
Text
Raw Normal View History

2022-11-22 15:41:59 +00:00
FloofProtocol { 2 25 187636631533261907981725980838781846034 }
DEFINITIONS EXPLICIT TAGS ::= BEGIN
ActId ::= OCTET STRING (SIZE(16..1024))
Signature ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
value OCTET STRING
}
Severity ::= ENUMERATED {
emergency (0),
alert (1),
critical (2),
error (3),
warning (4),
notice (5),
info (6),
debug (7),
trace (8)
}
RelativeDistinguishedName ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY
}
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
XferInner ::= SEQUENCE {
id ActId,
-- message topic --
topic RDNSequence,
-- message attributes --
attrs SET OF RelativeDistinguishedName,
-- message severity --
severity Severity,
data OCTET STRING
2022-11-22 15:41:59 +00:00
}
XferBlob ::= SEQUENCE {
-- source system name --
source RDNSequence,
2022-11-22 15:41:59 +00:00
-- message priority (when severity is equal)
-- used for queue priority augmention and can be modified in-transit
priority INTEGER (0..65536),
-- message time-to-live eol timestamp in seconds since epoch
ttl INTEGER (0..MAX),
-- message markers (e.g. review data and such)
2022-11-22 23:17:46 +00:00
markers SET OF RelativeDistinguishedName,
2022-11-22 15:41:59 +00:00
-- signature of *data*
2022-11-22 15:41:59 +00:00
signature Signature,
data OCTET STRING
2022-11-22 15:41:59 +00:00
}
2022-11-22 23:17:46 +00:00
SummaryDirection ::= ENUMERATED {
pull (0),
rejectpush (1),
requestpull (2)
}
Summary ::= SEQUENCE {
direction SummaryDirection,
id ActId
}
ProtoMessage ::= CHOICE {
2022-11-22 15:41:59 +00:00
summary [0] Summary,
2022-11-22 18:09:51 +00:00
xfer [1] XferBlob
2022-11-22 15:41:59 +00:00
}
END