mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-14 00:17:51 +02:00
25 lines
339 B
C
25 lines
339 B
C
/* IPFire helper program - IPStat
|
|
*
|
|
* Get the list from IPTABLES -L
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include "setuid.h"
|
|
|
|
|
|
int main(void)
|
|
{
|
|
if (!(initsetuid()))
|
|
exit(1);
|
|
|
|
safe_system("/usr/sbin/iptstate -1rbt");
|
|
return 0;
|
|
}
|
|
|