1 Star 0 Fork 1

吴欢/arptables

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
arptables-standalone.c 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
Bart De Schuymer 提交于 2003-06-09 20:47 . *** empty log message ***
/*
*
* Based on the ipchains code by Paul Russell and Michael Neuling
*
* (C) 2000-2002 by the netfilter coreteam <[email protected]>:
* Paul 'Rusty' Russell <[email protected]>
* Marc Boucher <[email protected]>
* James Morris <[email protected]>
* Harald Welte <[email protected]>
* Jozsef Kadlecsik <[email protected]>
*
* arptables -- IP firewall administration for kernels with
* firewall table (aimed for the 2.3 kernels)
*
* See the accompanying manual page arptables(8) for information
* about proper usage of this program.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <arptables.h>
int
main(int argc, char *argv[])
{
int ret;
char *table = "filter";
arptc_handle_t handle = NULL;
program_name = "arptables";
/* init_extensions();
*/
ret = do_command(argc, argv, &table, &handle);
if (ret)
ret = arptc_commit(&handle);
if (!ret)
fprintf(stderr, "arptables: %s\n",
arptc_strerror(errno));
exit(!ret);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wilson_wh/arptables.git
[email protected]:wilson_wh/arptables.git
wilson_wh
arptables
arptables
master

搜索帮助