// Make a snapshot of the current iptables rules func NewIPTables(table string) (IPTable, error) { cname := C.CString(table) defer C.free(unsafe.Pointer(cname)) s := new(IPTables) h, err := C.iptc_init(cname) if err != nil { return nil, err } s.h = h return s, nil }
func NewManager() *Manager { C.iptc_init(tableName) return &Manager{} }