summaryrefslogtreecommitdiffstats
path: root/arptables.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple of spelling errorsHEADmasterJeremy Sowden2024-03-091-1/+1
| | | | | | | One mistake in a man-page, one in a warning. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Phil Sutter <phil@nwl.cc>
* Eliminate compiler warning about size passed to strncmp()Phil Sutter2019-11-211-2/+1
| | | | | | | | | | | | | Gcc complains about the size being equal to destination size, despite the nul character being explicitly set in following line. Reduce size by one to make gcc happy. While being at it, drop the explicit nul character assignment - it is not needed as the buffer was allocated by calloc(). Fixes: 8f586939999e0 ("fix potential buffer overflows reported by static analysis") Acked-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
* arptables: legacy renamingArturo Borrero Gonzalez2018-06-261-1/+1
| | | | | | | | | | | | The original arptables tool is now the legacy version, let's rename it. A more uptodate client of the arptables tool is provided in the iptables tarball. The new tool was formerly known as arptables-compat. The new -legacy binary should have no problem if called via a symlink. Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de>
* src: Use stdint typesFelix Janda2015-05-201-4/+4
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* arptables: Add revision field for arptables userspaceZhang Chunyu2015-04-161-0/+2
| | | | | | Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Zhang Chunyu <zhangcy@cn.fujitsu.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: fix compilation warningPablo Neira Ayuso2015-04-021-3/+4
| | | | | | | | libarptc/libarptc.c: In function ‘dump_entry’: libarptc/libarptc.c:137:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘__u64’ [-Wformat] libarptc/libarptc.c:137:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘__u64’ [-Wformat] Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* arptables: remove dead dynamic hooks codeGustavo Zacarias2014-11-121-1/+0
| | | | | | | | The code is unused and #if'ed away, it also breaks pure-static builds because of the dlfcn.h include. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* arptables: fix potential buffer overflow (author: dcb)Bart De Schuymer2014-05-061-0/+1
|
* arptables: add missing long option --set-counters and update documentationJesper Dangaard Brouer2014-03-021-1/+2
|
* fix potential buffer overflows reported by static analysisJaromír Končický2013-10-151-4/+5
|
* make static analysis tool happy (false positive)Jaromír Končický2013-10-151-1/+3
|
* when listing a rule where a negation (!) is used with interfaces, put the ↵Bart De Schuymer2013-01-101-16/+4
| | | | negation sign (!) before the -i/-o option; fix compiler warning
* fix inversion flagPablo Neira Ayuso2013-01-071-0/+1
|
* also print the -i and -o interface if -v isn't specifiedBart De Schuymer2010-10-101-22/+33
|
* make arptables --proto-type also accept hexadecimal inputs (Jeroen van ↵Bart De Schuymer2010-10-091-1/+1
| | | | Wolffelaar)
* more llu -> PRIu64 conversionsBart De Schuymer2010-03-181-6/+6
|
* - use %zu for size_tBart De Schuymer2010-03-181-12/+13
| | | | | - use PRIu64 for 64-bit unsigned (based on patch by Jan Engelhardt)
* remove compile warningsBart De Schuymer2007-08-191-5/+5
|
* make it compilable againBart De Schuymer2005-03-091-2/+2
|
* make -l workBart De Schuymer2004-08-141-13/+8
|
* get rid of warning when arptables is compiled in a 2.4 kernel, thanks to ↵Bart De Schuymer2004-02-111-6/+10
| | | | Siva Kumar Natarajan for the report
* Riccardo Murri <murri_at_dmmm.uniroma1.it>: introduce ↵Bart De Schuymer2003-12-301-2/+3
| | | | RUNTIME_NF_ARP_NUMHOOKS so arptables can be compiled straight from CVS + add DESTDIR option
* auto-detect 2.4 or 2.6Bart De Schuymer2003-10-251-0/+19
|
* plnBart De Schuymer2003-06-261-16/+30
|
* don't fill in hlen, just default on EHT_ALENBart De Schuymer2003-06-101-32/+24
|
* *** empty log message ***Bart De Schuymer2003-06-091-0/+2452