Versions in this module Expand all Collapse all v1 v1.0.1 Sep 11, 2023 v1.0.0 Mar 15, 2021 Changes in this version + const ProtoICMP + const ProtoICMP6 + const ProtoSCTP + const ProtoTCP + const ProtoUDP + func GetICMPv4PortEquivalents(p1, p2 uint8) (uint16, uint16, bool) + func GetICMPv6PortEquivalents(p1, p2 uint8) (uint16, uint16, bool) + func PcapFlowTupleSource(file string) (<-chan PcapFlowTuple, error) + type CommunityID interface + Calc func(FlowTuple) []byte + CalcBase64 func(FlowTuple) string + CalcHex func(FlowTuple) string + Hash func(FlowTuple) hash.Hash + Render func(hash.Hash) []byte + RenderBase64 func(hash.Hash) string + RenderHex func(hash.Hash) string + func GetCommunityIDByVersion(version uint, seed uint16) (CommunityID, error) + type CommunityIDv1 struct + Seed uint16 + func (cid CommunityIDv1) Calc(ft FlowTuple) []byte + func (cid CommunityIDv1) CalcBase64(ft FlowTuple) string + func (cid CommunityIDv1) CalcHex(ft FlowTuple) string + func (cid CommunityIDv1) Hash(ft FlowTuple) hash.Hash + func (cid CommunityIDv1) Render(h hash.Hash) []byte + func (cid CommunityIDv1) RenderBase64(h hash.Hash) string + func (cid CommunityIDv1) RenderHex(h hash.Hash) string + type FlowTuple struct + Dstip net.IP + Dstport uint16 + IsOneWay bool + Proto uint8 + Srcip net.IP + Srcport uint16 + func MakeFlowTuple(srcip, dstip net.IP, srcport, dstport uint16, proto uint8) FlowTuple + func MakeFlowTupleICMP(srcip, dstip net.IP, srcport, dstport uint16) FlowTuple + func MakeFlowTupleICMP6(srcip, dstip net.IP, srcport, dstport uint16) FlowTuple + func MakeFlowTupleSCTP(srcip, dstip net.IP, srcport, dstport uint16) FlowTuple + func MakeFlowTupleTCP(srcip, dstip net.IP, srcport, dstport uint16) FlowTuple + func MakeFlowTupleUDP(srcip, dstip net.IP, srcport, dstport uint16) FlowTuple + func (ft FlowTuple) InOrder() FlowTuple + func (ft FlowTuple) IsOrdered() bool + type PcapFlowTuple struct + FlowTuple FlowTuple + Metadata *gopacket.PacketMetadata