LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   API to detect firewall status in Linux (http://www.linuxquestions.org/questions/linux-newbie-8/api-to-detect-firewall-status-in-linux-722769/)

huntneeraj 04-30-2009 01:28 PM

API to detect firewall status in Linux
 
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

MensaWater 04-30-2009 02:26 PM

You really ought to do your own homework if you expect to learn anything.


All times are GMT -5. The time now is 04:47 PM.