openc2lib.profiles.slpf.datatypes

SLPF additional data types

This modules defines additional data types specific for the SLPF profile.

 1""" SLPF additional data types
 2
 3	This modules defines additional data types specific for the SLPF profile.
 4"""
 5from openc2lib import Enumerated
 6
 7class DropProcess(Enumerated):
 8	""" Drop-Process enumeration
 9
10		The action to be performed in case the packet is dropped.
11		Defined in Sec. 2.1.3.2 of the SLPF Specification.
12	"""
13	none=1
14	""" Drop the packet and do not send a notification to the source of the packet """
15	reject=2
16	""" Drop the packet and send an ICMP host unreachable (or equivalent) to the source of the packet """
17	false_ack=3
18	""" Drop the traffic and send a false acknowledgment """
19
20class Direction(Enumerated):
21	""" Direction enumeration
22
23		The packet direction to which a rule applies.
24		Defined in Sec. 2.1.3.2 of the SLPF Specification.
25	"""
26	both=1
27	""" Apply rules to all traffic """
28	ingress=2
29	""" Apply rules to incoming traffic only """
30	egress=3
31	""" Apply rules to outgoing traffic only """
class DropProcess(openc2lib.types.basetypes.Enumerated):
 8class DropProcess(Enumerated):
 9	""" Drop-Process enumeration
10
11		The action to be performed in case the packet is dropped.
12		Defined in Sec. 2.1.3.2 of the SLPF Specification.
13	"""
14	none=1
15	""" Drop the packet and do not send a notification to the source of the packet """
16	reject=2
17	""" Drop the packet and send an ICMP host unreachable (or equivalent) to the source of the packet """
18	false_ack=3
19	""" Drop the traffic and send a false acknowledgment """

Drop-Process enumeration

The action to be performed in case the packet is dropped. Defined in Sec. 2.1.3.2 of the SLPF Specification.

none = <DropProcess.none: 1>

Drop the packet and do not send a notification to the source of the packet

reject = <DropProcess.reject: 2>

Drop the packet and send an ICMP host unreachable (or equivalent) to the source of the packet

false_ack = <DropProcess.false_ack: 3>

Drop the traffic and send a false acknowledgment

Inherited Members
openc2lib.types.basetypes.Enumerated
todict
fromdict
aenum._enum.Enum
name
value
values
class Direction(openc2lib.types.basetypes.Enumerated):
21class Direction(Enumerated):
22	""" Direction enumeration
23
24		The packet direction to which a rule applies.
25		Defined in Sec. 2.1.3.2 of the SLPF Specification.
26	"""
27	both=1
28	""" Apply rules to all traffic """
29	ingress=2
30	""" Apply rules to incoming traffic only """
31	egress=3
32	""" Apply rules to outgoing traffic only """

Direction enumeration

The packet direction to which a rule applies. Defined in Sec. 2.1.3.2 of the SLPF Specification.

both = <Direction.both: 1>

Apply rules to all traffic

ingress = <Direction.ingress: 2>

Apply rules to incoming traffic only

egress = <Direction.egress: 3>

Apply rules to outgoing traffic only

Inherited Members
openc2lib.types.basetypes.Enumerated
todict
fromdict
aenum._enum.Enum
name
value
values