gaia: go.aporeto.io/gaia/protocols Index | Files

package protocols

import "go.aporeto.io/gaia/protocols"

Index

Package Files

protocols.go

Constants

const (
    L4ProtocolHOPOPT         = "HOPOPT"
    L4ProtocolICMP           = "ICMP"
    L4ProtocolIGMP           = "IGMP"
    L4ProtocolGGP            = "GGP"
    L4ProtocolIPIP           = "IPIP"
    L4ProtocolST             = "ST"
    L4ProtocolTCP            = "TCP"
    L4ProtocolCBT            = "CBT"
    L4ProtocolEGP            = "EGP"
    L4ProtocolIGP            = "IGP"
    L4ProtocolBBNRCCMON      = "BBN-RCC-MON"
    L4ProtocolNVPII          = "NVP-II"
    L4ProtocolPUP            = "PUP"
    L4ProtocolARGUS          = "ARGUS"
    L4ProtocolEMCON          = "EMCON"
    L4ProtocolXNET           = "XNET"
    L4ProtocolCHAOS          = "CHAOS"
    L4ProtocolUDP            = "UDP"
    L4ProtocolMUX            = "MUX"
    L4ProtocolDCNMEAS        = "DCN-MEAS"
    L4ProtocolHMP            = "HMP"
    L4ProtocolPRM            = "PRM"
    L4ProtocolXNSIDP         = "XNS-IDP"
    L4ProtocolTRUNK1         = "TRUNK-1"
    L4ProtocolTRUNK2         = "TRUNK-2"
    L4ProtocolLEAF1          = "LEAF-1"
    L4ProtocolLEAF2          = "LEAF-2"
    L4ProtocolRDP            = "RDP"
    L4ProtocolIRTP           = "IRTP"
    L4ProtocolISOTP4         = "ISO-TP4"
    L4ProtocolNETBLT         = "NETBLT"
    L4ProtocolMFENSP         = "MFE-NSP"
    L4ProtocolMERITINP       = "MERIT-INP"
    L4ProtocolDCCP           = "DCCP"
    L4Protocol3PC            = "3PC"
    L4ProtocolIDPR           = "IDPR"
    L4ProtocolXTP            = "XTP"
    L4ProtocolDDP            = "DDP"
    L4ProtocolIDPRCMTP       = "IDPR-CMTP"
    L4ProtocolTP             = "TP++"
    L4ProtocolIL             = "IL"
    L4ProtocolIPv6           = "IPv6"
    L4ProtocolSDRP           = "SDRP"
    L4ProtocolIPv6Route      = "IPv6-Route"
    L4ProtocolIPv6Frag       = "IPv6-Frag"
    L4ProtocolIDRP           = "IDRP"
    L4ProtocolRSVP           = "RSVP"
    L4ProtocolGRE            = "GRE"
    L4ProtocolDSR            = "DSR"
    L4ProtocolBNA            = "BNA"
    L4ProtocolESP            = "ESP"
    L4ProtocolAH             = "AH"
    L4ProtocolINLSP          = "I-NLSP"
    L4ProtocolSWIPE          = "SWIPE"
    L4ProtocolNARP           = "NARP"
    L4ProtocolMOBILE         = "MOBILE"
    L4ProtocolTLSP           = "TLSP"
    L4ProtocolSKIP           = "SKIP"
    L4ProtocolIPv6ICMP       = "IPV6-ICMP"
    L4ProtocolIPv6NoNxt      = "IPV6-NoNxt"
    L4ProtocolIPv6Opts       = "IPV6-Opts"
    L4ProtocolCFTP           = "CFTP"
    L4ProtocolSATEXPAK       = "SAT-EXPAK"
    L4ProtocolKRYPTOLAN      = "KRYPTOLAN"
    L4ProtocolRVD            = "RVD"
    L4ProtocolIPPC           = "IPPC"
    L4ProtocolSATMON         = "SAT-MON"
    L4ProtocolVISA           = "VISA"
    L4ProtocolIPCU           = "IPCU"
    L4ProtocolCPNX           = "CPNX"
    L4ProtocolCPHB           = "CPHB"
    L4ProtocolWSN            = "WSN"
    L4ProtocolPVP            = "PVP"
    L4ProtocolBRSATMON       = "BR-SAT-MON"
    L4ProtocolSUNND          = "SUN-ND"
    L4ProtocolWBMON          = "WB-MON"
    L4ProtocolWBEXPAK        = "WB-EXPAK"
    L4ProtocolISOIP          = "ISO-IP"
    L4ProtocolVMTP           = "VMTP"
    L4ProtocolSECUREVMTP     = "SECURE-VMTP"
    L4ProtocolVINES          = "VINES"
    L4ProtocolTTP            = "TTP"
    L4ProtocolNSFNETIGP      = "NSFNET-IGP"
    L4ProtocolDGP            = "DGP"
    L4ProtocolTCF            = "TCF"
    L4ProtocolEIGRP          = "EIGRP"
    L4ProtocolOSPF           = "OSPF"
    L4ProtocolSpriteRPC      = "Sprite-RPC"
    L4ProtocolLARP           = "LARP"
    L4ProtocolMTP            = "MTP"
    L4ProtocolAX25           = "AX.25"
    L4ProtocolOS             = "OS"
    L4ProtocolMICP           = "MICP"
    L4ProtocolSCCSP          = "SCC-SP"
    L4ProtocolETHERIP        = "ETHERIP"
    L4ProtocolENCAP          = "ENCAP"
    L4ProtocolGMTP           = "GMTP"
    L4ProtocolIFMP           = "IFMP"
    L4ProtocolPNNI           = "PNNI"
    L4ProtocolPIM            = "PIM"
    L4ProtocolARIS           = "ARIS"
    L4ProtocolSCPS           = "SCPS"
    L4ProtocolQNX            = "QNX"
    L4ProtocolAN             = "A/N"
    L4ProtocolIPComp         = "IPCOMP"
    L4ProtocolSNP            = "SNP"
    L4ProtocolCompaqPeer     = "COMPAQ-PEER"
    L4ProtocolIPXinIP        = "IPX-IN-IP"
    L4ProtocolVRRP           = "VRRP"
    L4ProtocolPGM            = "PGM"
    L4ProtocolL2TP           = "L2TP"
    L4ProtocolDDX            = "DDX"
    L4ProtocolIATP           = "IATP"
    L4ProtocolSTP            = "STP"
    L4ProtocolSRP            = "SRP"
    L4ProtocolUTI            = "UTI"
    L4ProtocolSMP            = "SMP"
    L4ProtocolSM             = "SM"
    L4ProtocolPTP            = "PTP"
    L4ProtocolISIS           = "ISIS"
    L4ProtocolFIRE           = "FIRE"
    L4ProtocolCRTP           = "CRTP"
    L4ProtocolCRUDP          = "CRUDP"
    L4ProtocolSSCOPMCE       = "SSCOPMCE"
    L4ProtocolIPLT           = "IPLT"
    L4ProtocolSPS            = "SPS"
    L4ProtocolPIPE           = "PIPE"
    L4ProtocolSCTP           = "SCTP"
    L4ProtocolFC             = "FC"
    L4ProtocolRSVPE2EIGNORE  = "RSVP-E2E-IGNORE"
    L4ProtocolMobilityHeader = "MOBILITY-HEADER"
    L4ProtocolUDPLite        = "UDPLITE"
    L4ProtocolMPLSinIP       = "MPLS-IN-IP"
    L4Protocolmanet          = "MANET"
    L4ProtocolHIP            = "HIP"
    L4ProtocolShim6          = "SHIM6"
    L4ProtocolWESP           = "WESP"
    L4ProtocolROHC           = "ROHC"
)

All L4 Protocols (Ref https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers)

const ANY = "ANY"

ANY defines all protocols NOTE: Keeping it uppercase for consistency

Variables

var L4ProtocolNames = map[string]int{}

L4ProtocolNames contains the list of all IANA protocols organized by names

var L4ProtocolNumbers = make([]string, 150)

L4ProtocolNumbers contains the list of all IANA protocols organized by numbers

var L4ProtocolNumbersMap = map[int]string{}

L4ProtocolNumbersMap contains the list of all IANA protocols organized by numbers

func L4ProtocolNameFromNumber Uses

func L4ProtocolNameFromNumber(n int64) string

L4ProtocolNameFromNumber returns the IANA name for the given protocol number.

func L4ProtocolNumberFromName Uses

func L4ProtocolNumberFromName(name string) int

L4ProtocolNumberFromName returns the protocol number given a protocol name.

Package protocols imports 1 packages (graph) and is imported by 2 packages. Updated 2019-10-04. Refresh now. Tools for package owners.