Versions in this module Expand all Collapse all v1 v1.0.0 Oct 20, 2018 Changes in this version + const NFNETLINK_V0 + const NFNL_SUBSYS_CTNETLINK + const NF_NETLINK_CONNTRACK_DESTROY + const NF_NETLINK_CONNTRACK_EXP_DESTROY + const NF_NETLINK_CONNTRACK_EXP_NEW + const NF_NETLINK_CONNTRACK_EXP_UPDATE + const NF_NETLINK_CONNTRACK_NEW + const NF_NETLINK_CONNTRACK_UPDATE + const NLA_F_NESTED + const NLA_F_NET_BYTEORDER + const NLA_TYPE_MASK + func Follow(flags uint32) (<-chan Conn, func(), error) + func FollowSize(bufferSize int, flags uint32) (<-chan Conn, func(), error) + func StreamAllConnections() chan Conn + type Attr struct + IsNested bool + IsNetByteorder bool + Msg []byte + Typ int + type CntlMsgTypes int + const IpctnlMsgCtDelete + const IpctnlMsgCtGet + const IpctnlMsgCtGetCtrzero + const IpctnlMsgCtGetDying + const IpctnlMsgCtGetStats + const IpctnlMsgCtGetStatsCpu + const IpctnlMsgCtGetUnconfirmed + const IpctnlMsgCtNew + const IpctnlMsgMax + type Conn struct + CtId uint32 + CtMark uint32 + Err error + MsgType NfConntrackMsg + Orig Tuple + OrigPktCount uint64 + OrigPktLen uint64 + Reply Tuple + ReplyPktCount uint64 + ReplyPktLen uint64 + Status CtStatus + TCPState string + Zone uint16 + func Connections() ([]Conn, error) + func ConnectionsSize(bufferSize int) ([]Conn, error) + func (c Conn) ConnTCP(local map[string]struct{}) *ConnTCP + type ConnTCP struct + Local string + LocalPort string + Remote string + RemotePort string + func Established() ([]ConnTCP, error) + func (c ConnTCP) String() string + type ConnTrack struct + func New() (*ConnTrack, error) + func (c *ConnTrack) Connections() []ConnTCP + func (c ConnTrack) Close() + type ConntrackListReq struct + Body unix.Nfgenmsg + Header syscall.NlMsghdr + type CtStatus uint32 + const IPS_ASSURED + const IPS_CONFIRMED + const IPS_DST_NAT + const IPS_DST_NAT_DONE + const IPS_DYING + const IPS_EXPECTED + const IPS_FIXED_TIMEOUT + const IPS_HELPER + const IPS_NAT_DONE_MASK + const IPS_NAT_MASK + const IPS_OFFLOAD + const IPS_SEEN_REPLY + const IPS_SEQ_ADJUST + const IPS_SRC_NAT + const IPS_SRC_NAT_DONE + const IPS_TEMPLATE + const IPS_UNTRACKED + type CtattrCounters int + const CtaCounters32Bytes + const CtaCounters32Packets + const CtaCountersBytes + const CtaCountersMax + const CtaCountersPackets + const CtaCountersUnspec + type CtattrIp int + const CtaIpMax + const CtaIpUnspec + const CtaIpV4Dst + const CtaIpV4Src + const CtaIpV6Dst + const CtaIpV6Src + type CtattrL4proto int + const CtaProtoDstPort + const CtaProtoIcmpCode + const CtaProtoIcmpId + const CtaProtoIcmpType + const CtaProtoIcmpv6Code + const CtaProtoIcmpv6Id + const CtaProtoIcmpv6Type + const CtaProtoMax + const CtaProtoNum + const CtaProtoSrcPort + const CtaProtoUnspec + type CtattrProtoinfo int + const CtaProtoinfoDccp + const CtaProtoinfoMax + const CtaProtoinfoSctp + const CtaProtoinfoTcp + const CtaProtoinfoUnspec + type CtattrProtoinfoTcp int + const CtaProtoinfoTcpFlagsOriginal + const CtaProtoinfoTcpFlagsReply + const CtaProtoinfoTcpMax + const CtaProtoinfoTcpState + const CtaProtoinfoTcpUnspec + const CtaProtoinfoTcpWscaleOriginal + const CtaProtoinfoTcpWscaleReply + type CtattrTuple int + const CtaTupleIp + const CtaTupleMax + const CtaTupleProto + const CtaTupleUnspec + type CtattrType int + const CtaCountersOrig + const CtaCountersReply + const CtaHelp + const CtaId + const CtaLabels + const CtaLabelsMask + const CtaMark + const CtaMarkMask + const CtaMax + const CtaNatDst + const CtaNatSeqAdjOrig + const CtaNatSeqAdjReply + const CtaNatSrc + const CtaProtoinfo + const CtaSecctx + const CtaSecmark + const CtaStatus + const CtaTimeout + const CtaTimestamp + const CtaTupleMaster + const CtaTupleOrig + const CtaTupleReply + const CtaUnspec + const CtaUse + const CtaZone + type NfConntrackAttrGrp int + const AttrGrpIcmp + const AttrGrpMasterIpv4 + const AttrGrpMasterIpv6 + const AttrGrpMasterPort + const AttrGrpMax + const AttrGrpOrigAddrDst + const AttrGrpOrigAddrSrc + const AttrGrpOrigCounters + const AttrGrpOrigIpv4 + const AttrGrpOrigIpv6 + const AttrGrpOrigPort + const AttrGrpReplAddrDst + const AttrGrpReplAddrSrc + const AttrGrpReplCounters + const AttrGrpReplIpv4 + const AttrGrpReplIpv6 + const AttrGrpReplPort + type NfConntrackMsg int + const NfctMsgDestroy + const NfctMsgNew + const NfctMsgUnknown + const NfctMsgUpdate + type NfConntrackQuery int + const NfctQCreate + const NfctQCreateUpdate + const NfctQDestroy + const NfctQDump + const NfctQDumpFilter + const NfctQDumpFilterReset + const NfctQDumpReset + const NfctQFlush + const NfctQGet + const NfctQUpdate + type Tuple struct + Dst net.IP + DstPort uint16 + IcmpCode uint8 + IcmpId uint16 + IcmpType uint8 + Proto int + Src net.IP + SrcPort uint16