overwriteFw reloads the fw with the configuration file specified via cli.
(cfg *config.Config, qNum uint16, fwCfg string)
| 154 | |
| 155 | // overwriteFw reloads the fw with the configuration file specified via cli. |
| 156 | func overwriteFw(cfg *config.Config, qNum uint16, fwCfg string) { |
| 157 | firewall.Reload( |
| 158 | cfg.Firewall, |
| 159 | fwCfg, |
| 160 | cfg.FwOptions.MonitorInterval, |
| 161 | cfg.FwOptions.QueueBypass, |
| 162 | qNum, |
| 163 | ) |
| 164 | // TODO: Close() closes the daemon if closing the queue timeouts |
| 165 | //queue.Close() |
| 166 | //repeatQueue.Close() |
| 167 | //setupQueues(qNum) |
| 168 | } |
| 169 | |
| 170 | func setupQueues(qNum uint16) { |
| 171 | // prepare the queue |