1# Copyright (c) 2017, The MITRE Corporation. All rights reserved.
2# See LICENSE.txt for complete terms.
3
4from mixbox import fields
5
6import cybox.bindings.port_object as port_binding
7from cybox.common import ObjectProperties, String, PositiveInteger
8
9
10class Port(ObjectProperties):
11    _binding = port_binding
12    _binding_class = port_binding.PortObjectType
13    _namespace = 'http://cybox.mitre.org/objects#PortObject-2'
14    _XSI_NS = "PortObj"
15    _XSI_TYPE = "PortObjectType"
16
17    port_value = fields.TypedField("Port_Value", PositiveInteger)
18    layer4_protocol = fields.TypedField("Layer4_Protocol", String)
19