summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-03-19 13:46:32 +0100
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-25 13:17:58 +0200
commit8d9d64c7f2deda60e668bd74c09dfd4b16cfa0d2 (patch)
treeadab483ab7708ee9dbb9f243d6fe3242f8006dbc /tools
parenta6b73c60cf555ea6e02daca913f08bfa0b48b723 (diff)
downloadconnman-8d9d64c7f2deda60e668bd74c09dfd4b16cfa0d2.tar.gz
connman-8d9d64c7f2deda60e668bd74c09dfd4b16cfa0d2.tar.bz2
connman-8d9d64c7f2deda60e668bd74c09dfd4b16cfa0d2.zip
firewall: Add firewall API
The main idea behind this API is to collect several iptables rules together and enable or disable in one go. For this a context is created via __connman_firewall_create() and the rules added to this context via __connman_firewall_add_rule(). In order to append all rules __connman_firewall_enable() has to be called. To remove all rules associated with one context __connman_firewall_disable() has to be used. If something goes awry the code tries to get back to the initial state.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions