Hi all,

I need an API (using C) such that it gives the current status of the firewall installed in linux box.The API should be generic such that it can detect any type of firewall.

int getFirewallStaus()

Returrns 1 - For Enabled
0 - Disabled