Add new iptables handle task
authorNeutron Soutmun <neo.neutron@gmail.com>
Mon, 20 Apr 2009 07:21:34 +0000 (14:21 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Mon, 20 Apr 2009 07:21:34 +0000 (14:21 +0700)
commitebf1b313a3bf00f239329f7fe3a81e40e23b0296
treeec7c5672ab9df2ac39a6c5159ea64d5d02930ea7
parentad04bbc3dc5adfe3e75690b34a04448840efeffb
Add new iptables handle task

2009-04-20  Neutron Soutmun <neo.neutron@gmail.com>

* +src/rh-task-iptables.{h,c}:
  Add new iptables handle, preparing for configuration reloading.
* src/Makefile.am: Changed accordingly, iptables handle.
* src/rh-config.{h,c}: Add more config fields.
* src/rh-task-{bandwidth,dbset,ipset,memset}.c, src/rh-task.{h,c}:
  Change the {start,stop}service API and use them to do the task only when
  the service is start or stop.
* src/rahunasd.c, src/rh-server.c: Changed accordingly, {start,stop}service.
* tools/firewall.sh.in: Adapted to the new iptables handle.
15 files changed:
ChangeLog
src/Makefile.am
src/rahunasd.c
src/rh-config.c
src/rh-config.h
src/rh-server.c
src/rh-task-bandwidth.c
src/rh-task-dbset.c
src/rh-task-ipset.c
src/rh-task-iptables.c [new file with mode: 0644]
src/rh-task-iptables.h [new file with mode: 0644]
src/rh-task-memset.c
src/rh-task.c
src/rh-task.h
tools/firewall.sh.in