Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func ActionTypeFromString ¶
func (Action) GetValue ¶
func (ctx Action) GetValue() ActionType
func (*Action) SetValue ¶
func (ctx *Action) SetValue(value ActionType)
func (*Action) TryInitFromString ¶
type ActionType ¶
type ActionType uint8
const ( ACTION_INVALID ActionType = 0xFF ACTION_ACCEPT ActionType = 0 ACTION_DROP ActionType = 1 ACTION_REJECT ActionType = 3 ACTION_JUMP ActionType = 4 ACTION_LOG ActionType = 5 )
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func AddressTypeFromString ¶
func (*Address) TryInitFromString ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func BoolTypeFromString ¶
func (*Bool) TryInitFromString ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func ChainTypeFromString ¶
func (*Chain) TryInitFromString ¶
type Number ¶
type Number struct {
// contains filtered or unexported fields
}
func NumberTypeFromString ¶
func (*Number) TryInitFromString ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
func PortTypeFromString ¶
func (*Port) TryInitFromString ¶
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
func ProtocolTypeFromString ¶
func (*Protocol) GetValue ¶
func (ctx *Protocol) GetValue() ProtocolType
func (*Protocol) SetValue ¶
func (ctx *Protocol) SetValue(protocol ProtocolType)
func (*Protocol) TryInitFromString ¶
func (*Protocol) UnmarshalYAML ¶
type ProtocolType ¶
type ProtocolType uint64
const ( PROTOCOL_INVALID ProtocolType = 0xFFFFFFFFFFFFFFFF IP ProtocolType = 0 ICMP ProtocolType = 1 IGMP ProtocolType = 2 GGP ProtocolType = 3 IPENCAP ProtocolType = 4 ST2 ProtocolType = 5 TCP ProtocolType = 6 CBT ProtocolType = 7 EGP ProtocolType = 8 IGP ProtocolType = 9 BBN_RCC ProtocolType = 10 NVP ProtocolType = 11 PUP ProtocolType = 12 ARGUS ProtocolType = 13 EMCON ProtocolType = 14 XNET ProtocolType = 15 CHAOS ProtocolType = 16 UDP ProtocolType = 17 MUX ProtocolType = 18 DCN ProtocolType = 19 HMP ProtocolType = 20 PRM ProtocolType = 21 XNS_IDP ProtocolType = 22 TRUNK_1 ProtocolType = 23 TRUNK_2 ProtocolType = 24 LEAF_1 ProtocolType = 25 LEAF_2 ProtocolType = 26 RDP ProtocolType = 27 IRTP ProtocolType = 28 ISO_TP4 ProtocolType = 29 NETBLT ProtocolType = 30 MFE_NSP ProtocolType = 31 MERIT_INP ProtocolType = 32 DCCP ProtocolType = 33 THREE_PC ProtocolType = 34 IDPR ProtocolType = 35 XTP ProtocolType = 36 DDP ProtocolType = 37 IDPR_CMTP ProtocolType = 38 TPPLUSPLUS ProtocolType = 39 IL ProtocolType = 40 IPV6 ProtocolType = 41 SDRP ProtocolType = 42 IPV6_ROUTE ProtocolType = 43 IPV6_FRAG ProtocolType = 44 IDRP ProtocolType = 45 RSVP ProtocolType = 46 GRE ProtocolType = 47 DSR ProtocolType = 48 BNA ProtocolType = 49 ESP ProtocolType = 50 AH ProtocolType = 51 I_NLSP ProtocolType = 52 SWIPE ProtocolType = 53 NARP ProtocolType = 54 MOBILE ProtocolType = 55 TLSP ProtocolType = 56 SKIP ProtocolType = 57 IPV6_ICMP ProtocolType = 58 IPV6_NONXT ProtocolType = 59 IPV6_OPTS ProtocolType = 60 CFTP ProtocolType = 62 SAT_EXPAK ProtocolType = 64 KRYPTOLAN ProtocolType = 65 RVD ProtocolType = 66 IPPC ProtocolType = 67 SAT_MON ProtocolType = 69 VISA ProtocolType = 70 IPCV ProtocolType = 71 CPNX ProtocolType = 72 CPHB ProtocolType = 73 WSN ProtocolType = 74 PVP ProtocolType = 75 BR_SAT_MON ProtocolType = 76 SUN_ND ProtocolType = 77 WB_MON ProtocolType = 78 WB_EXPAK ProtocolType = 79 ISO_IP ProtocolType = 80 VMTP ProtocolType = 81 SECURE_VMTP ProtocolType = 82 VINES ProtocolType = 83 TTP ProtocolType = 84 NSFNET_IGP ProtocolType = 85 DGP ProtocolType = 86 TCF ProtocolType = 87 EIGRP ProtocolType = 88 OSPF ProtocolType = 89 SPRITE_RPC ProtocolType = 90 LARP ProtocolType = 91 MTP ProtocolType = 92 AX_25 ProtocolType = 93 IPIP ProtocolType = 94 MICP ProtocolType = 95 SCC_SP ProtocolType = 96 ETHERIP ProtocolType = 97 ENCAP ProtocolType = 98 GMTP ProtocolType = 100 IFMP ProtocolType = 101 PNNI ProtocolType = 102 PIM ProtocolType = 103 ARIS ProtocolType = 104 SCPS ProtocolType = 105 QNX ProtocolType = 106 A_N ProtocolType = 107 IPCOMP ProtocolType = 108 SNP ProtocolType = 109 COMPAQ_PEER ProtocolType = 110 IPX_IN_IP ProtocolType = 111 CARP ProtocolType = 112 PGM ProtocolType = 113 L2TP ProtocolType = 115 DDX ProtocolType = 116 IATP ProtocolType = 117 STP ProtocolType = 118 SRP ProtocolType = 119 UTI ProtocolType = 120 SMP ProtocolType = 121 SM ProtocolType = 122 PTP ProtocolType = 123 ISIS ProtocolType = 124 FIRE ProtocolType = 125 CRTP ProtocolType = 126 CRUDP ProtocolType = 127 SSCOPMCE ProtocolType = 128 IPLT ProtocolType = 129 SPS ProtocolType = 130 PIPE ProtocolType = 131 SCTP ProtocolType = 132 FC ProtocolType = 133 RSVP_E2E_IGNORE ProtocolType = 134 MOBILITY_HEADER ProtocolType = 135 UDPLITE ProtocolType = 136 MPLS_IN_IP ProtocolType = 137 MANET ProtocolType = 138 HIP ProtocolType = 139 SHIM6 ProtocolType = 140 WESP ProtocolType = 141 ROHC ProtocolType = 142 PFSYNC ProtocolType = 240 DIVERT ProtocolType = 258 )
Extracted from: /etc/protocols
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func TextTypeFromString ¶
func (*Text) TryInitFromString ¶
Click to show internal directories.
Click to hide internal directories.