Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/chamaken/cgolmnfct

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/chamaken/cgolmnfct

  • v0.0.0-20170327004417-98596113b289
  • Source
  • Go
  • Socket score

Version published
Created
Source

cgolmnfct

Go wrapper of libnetfilter_conntrack subset using cgo, under heavy development

sample

see examples

installation

Need running ``mktypes.sh'' before build.

Need delete tesglib/types_linux.go or comment out the lines on testing I do not know how to avoid this...

requires

  • libmnl, libnetfilter_conntrack

  • cgolmnl (https://github.com/chamaken/cgolmnl)

struct

All of internal structs are opaque as...

  • struct nf_conntrack / Conntrack
  • struct nf_expect / Expect
  • struct nfct_bitmask / Bitmask
  • struct nfct_labelmap / Labelmap
  • struct nfct_filter / Filter

comparison

originalcgolmnfctremarks
nfct_open(Not implemented)
nfct_open_nfnl(Not implemented)
nfct_close(Not implemented)
nfct_fd(Not implemented)
nfct_nfnlh(Not implemented)
nfct_newNewConntrack
nfct_destroyConntrack.Destroy
nfct_cloneConntrack.Clone
nfct_sizeof(Not implemented)
nfct_maxsize(Not implemented)
nfct_setobjoptConntrack.Setobjopt
nfct_getobjoptConntrack.Getobjopt
nfct_callback_register(Not implemented)
nfct_callback_unregister(Not implemented)
nfct_callback_register2(Not implemented)
nfct_callback_unregister2(Not implemented)
nfct_bitmask_newNewBitmask
nfct_bitmask_cloneBitmask.Clone
nfct_bitmask_maxbitBitmask.Maxbit
nfct_bitmask_test_bitBitmask.TestBit
nfct_bitmask_unset_bitBitmask.UnsetBit
nfct_bitmask_destroyBitmask.Destroy
nfct_bitmask_clearBitmask.Clear
nfct_bitmask_equalBitmask.Equal
nfct_labelmap_newNewLabelmap
nfct_labelmap_destroyLabelmap.Destroy
nfct_labelmap_get_nameLabelmap.GetName
nfct_labelmap_get_bitLabelmap.GetBit
nfct_set_attrConntrack.SetAttrdata is unsafe.Pointer
(add)Conntrack.SetAttrPtrdata is Ptr
nfct_set_attr_u8Conntrack.SetAttrU8
nfct_set_attr_u16Conntrack.SetAttrU16
nfct_set_attr_u32Conntrack.SetAttrU32
nfct_set_attr_u64Conntrack.SetAttrU64
nfct_set_attr_lConntrack.SetAttrL
(add)Conntrack.SetAttrLPtr
nfct_get_attrConntrack.GetAttr
nfct_get_attr_u8Conntrack.GetAttrU8
nfct_get_attr_u16Conntrack.GetAttrU16
nfct_get_attr_u32Conntrack.GetAttrU32
nfct_get_attr_u64Conntrack.GetAttrU64
nfct_attr_is_setConntrack.AttrIsSet
nfct_attr_is_set_arrayConntrack.AttrIsSetArray
nfct_attr_unsetConntrack.AttrUnset
nfct_set_attr_grpConntrack.SetAttrGrp
(add)Conntrack.SetAttrGrpPtr
nfct_get_attr_grpConntrack.SetAttrGrp
(add)Conntrack.SetAttrGrpPtr
nfct_attr_grp_is_setConntrack.AttrGrpIsSet
nfct_attr_grp_unsetConntrack.AttrGrpUnset
nfct_snprintfConntrack.Snprintf
nfct_snprintf_labelsConntrack.SnprintfLabels
nfct_compareConntrack.Compare
nfct_cmpConntrack.Cmp
nfct_query(Not implemented)
nfct_send(Not implemented)
nfct_catch(Not implemented)
nfct_copyConntrack.Copy
nfct_copy_attrConntrack.CopyAttr
-----------------------------------------------------------------------------------------------
nfct_filter_createNewFilter
nfct_filter_destroyFilter.Destroy
nfct_filter_add_attrFilter.AddAttr
(add)Filter.AddAttrPtr
nfct_filter_add_attr_u32Filter.AddAttrU32
nfct_filter_set_logicFilter.SetLogic
nfct_filter_attachFilter.Attach
nfct_filter_detachFilter.Detach
-----------------------------------------------------------------------------------------------
nfct_filter_dump_create(Not implemented)
nfct_filter_dump_destroy(Not implemented)
nfct_filter_dump_set_attr(Not implemented)
nfct_filter_dump_set_attr_u8(Not implemented)
-----------------------------------------------------------------------------------------------
nfct_build_conntrack(Not implemented)
nfct_parse_conntrack(Not implemented)
nfct_build_query(Not implemented)
nfct_nlmsg_buildConntrack.NlmsgBuild
nfct_nlmsg_parseConntrack.NlmsgParse
nfct_payload_parseConntrack.PayloadParse
(add)Conntrack.PayloadParseBytes
-----------------------------------------------------------------------------------------------
nfexp_newNewExpect
nfexp_destroyExpect.Destroy
nfexp_cloneExpect.Clone
nfexp_sizeof(Not implemented)
nfexp_maxsize(Not implemented)
nfexp_callback_register(Not implemented)
nfexp_callback_unregister(Not implemented)
nfexp_callback_register2(Not implemented)
nfexp_callback_unregister2(Not implemented)
nfexp_set_attrExpect.SetAttr
(add)Expect.SetAttrPtr
nfexp_set_attr_u8Expect.SetAttrU8
nfexp_set_attr_u16Expect.SetAttrU16
nfexp_set_attr_u32Expect.SetAttrU32
nfexp_get_attrExpect.GetAttr
nfexp_get_attr_u8Expect.GetAttrU8
nfexp_get_attr_u16Expect.GetAttrU16
nfexp_get_attr_u32Expect.GetAttrU32
nfexp_attr_is_setExpect.AttrIsSet
nfexp_attr_unsetExpect.AttrUnset
nfexp_query(Not implemented)
nfexp_snprintfExpect.Snprintf
nfexp_cmpExpect.Cmp
nfexp_send(Not implemented)
nfexp_catch(Not implemented)
nfexp_build_expect(Not implemented)
nfexp_parse_expect(Not implemented)
nfexp_build_query(Not implemented)
nfexp_nlmsg_buildExpect.NlmsgBuild
nfexp_nlmsg_parseExpect.NlmsgParse
-----------------------------------------------------------------------------------------------

FAQs

Package last updated on 27 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc