summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix clang-tidy complaints. No actual changes.HEADarping-2.xThomas Habets2022-12-194-4/+30
|
* Add pre-commit script, to be symlinked from .git/hooks/Thomas Habets2022-11-211-0/+4
|
* fixed missing variable for command line parsingpusi772022-11-181-0/+1
|
* Use proper old style (but clear) prototypeThomas Habets2022-11-021-1/+1
|
* Remove shadowing variablesThomas Habets2022-11-021-16/+16
|
* arping_test: Remove most warningsThomas Habets2022-11-021-16/+14
|
* Explicitly cast double to uint32, to suppress warningThomas Habets2022-11-021-1/+4
|
* fuzz: Remove Wconversion warningsThomas Habets2022-10-301-4/+4
| | | | Warnings: 26->22
* Cast sec to doubleThomas Habets2022-10-301-1/+1
| | | | Warnings: 27->26
* Fix conversion warnings for -CThomas Habets2022-10-302-9/+45
| | | | Warnings 28 -> 27
* Add -Wconversion to --enable-warningsThomas Habets2022-10-301-1/+1
|
* Simplify fallback for generating suffixThomas Habets2022-10-301-27/+19
| | | | | | | | * Removed fallback for failing to allocate. * Simplified fallback for generating randomness. * Reduce implicit casts. Reduced conversion warnings: 33 -> 28.
* Fix conversion warningThomas Habets2022-10-261-1/+1
|
* Fix int castThomas Habets2022-10-261-1/+1
|
* Use PCAP_NETMASK_UNKNOWN, where availableThomas Habets2022-10-261-2/+8
|
* Fix libcheck warningThomas Habets2022-10-261-4/+4
|
* Fix typo in vlan tag error messageThomas Habets2022-10-261-1/+1
|
* Parse -wW strictly as floatThomas Habets2022-10-262-3/+113
|
* Parse -VQCc strictly as numThomas Habets2022-10-262-5/+91
|
* arping_test: use STDOUT_FILENO, not 1Thomas Habets2022-10-261-9/+9
|
* configure: Make --disable-seccomp actually workThomas Habets2022-05-251-3/+7
| | | | | | More complete fix than #51. Thanks thesamesam!
* Exit with failure if failing to write to stdout/stderrThomas Habets2022-03-091-2/+33
| | | | Inspired by https://blog.sunfishcode.online/bugs-in-hello-world/
* Up version to 2.23arping-2.23Thomas Habets2022-03-061-1/+1
|
* seccomp: Add newfstatat to whitelistThomas Habets2022-03-061-2/+5
|
* seccomp: Add pselect6 to whitelistThomas Habets2022-03-061-0/+1
|
* Work around VLAN bug in libpcap 1.7-1.9.0Thomas Habets2022-03-011-2/+42
| | | | Fixes #50
* For dot1q: check that reply actually is dot1qThomas Habets2022-03-011-0/+18
|
* Check received VLAN tag when using -VThomas Habets2022-03-011-2/+20
|
* Print library versionsThomas Habets2022-03-011-0/+14
|
* More checking for short packetsThomas Habets2022-03-011-12/+32
|
* Print verbose message when seccomp enabledThomas Habets2021-12-261-0/+3
|
* Clean up --help textThomas Habets2021-12-261-2/+2
|
* Don't show seccomp help if it not compiled inThomas Habets2021-12-261-5/+10
|
* configure: error out if default seccomp requested but not presentThomas Habets2021-12-261-0/+3
|
* Add seccomp to drop syscall access before receiving any packetsThomas Habets2021-12-094-14/+108
| | | | | | | | | | | | seccomp is not as good as pledge(), in that different systems, and even different versions of any of the transitively dependent libraries, will need different syscalls. This feature is therefore off by default, and should be considered experimental. Maybe the right long term solution is to blacklist, not whitelist. Which is also not great, as new syscalls get created.
* Don't attempt to use caps if header doesn't existThomas Habets2021-11-301-0/+7
| | | | | | | | | | | | | | Termux with android seems to not provide capabilities.h, even though the libc provides it. Without the header it's not actually possible to use it though, so don't even try. There's a similar situation with getrandom(), but it's still possible to call it without a prototype, so I'm opting to just let that spit out a warning at build time on those systems. Bug #49
* Also try lo0 as a fallback interface. Fixes default use on OpenBSDThomas Habets2021-11-051-17/+51
| | | | | | | | | | | | Background: Libnet usually needs init before we have searched for the real interface. In that case, first we just give a NULL pointer as the interface. But libnet sometimes fails to find an interface (no idea why), so we try to put in "lo". This commit adds "lo0" as an interface checked, as that is the name on OpenBSD.
* Change git clone protocol to httpsThomas Habets2021-11-021-1/+1
|
* Fix missing comma compilation errorThomas Habets2021-11-021-1/+1
|
* -P (reply mode) will set ARP Target MAC Address by -t (target MAC) optionNatasFX2021-11-021-1/+1
|
* Augment return value check of pcap_next_exPeiwei Hu2021-11-021-1/+1
| | | pcap_next_ex returns >0 on success.
* Up version to 2.22arping-2.22Thomas Habets2021-06-271-1/+1
|
* unit tests: Remove test registry code in favour of code duplication.Thomas Habets2021-01-201-47/+41
| | | | | As of https://github.com/libcheck/check/pull/158 libcheck broke the ability to have a test registry, so we have to resort to code duplication.
* Add stuff to .gitignoreThomas Habets2020-09-101-0/+25
|
* Include header files that should be thereThomas Habets2020-09-101-0/+2
|
* Add LSP build stuffThomas Habets2020-09-101-0/+5
|
* Up version to 2.21arping-2.21Thomas Habets2020-03-081-1/+1
|
* Fix some format strings for ssize_tThomas Habets2020-01-031-5/+5
|
* Remove use of random() where possibleThomas Habets2019-12-201-1/+21
|
* Add timestamp and magic suffix as payload to mac ping (ICMP PING)Thomas Habets2019-12-202-5/+77
| | | | Fixes #7