summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix Makefile.am typo breaking testsThomas Habets2016-11-231-1/+1
|
* Make `arping` -w/-W behave like `ping` and `iputils-arping`Thomas Habets2016-11-233-16/+53
| | | | | | | | I think I did it in microseconds in the past because the ping I was looking at did that. But that was over 16 years ago so I could be wrong or it could have changed. Fixes #22
* Add fuzzing codeThomas Habets2016-11-235-2/+143
|
* Merge pull request #21 from tklauser/arping-2.x-clangThomas Habets2016-11-021-3/+3
|\ | | | | Clang warning fixes
| * Fix clang [-Wlogical-op-parentheses] warningTobias Klauser2016-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | Fix the following warning when compiling with clang: arping.c:1595:34: warning: '&&' within '||' [-Wlogical-op-parentheses] || (mode == PINGMAC) && (opt_B || dstmac_opt || opt_U)) { ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
| * Fix clang [-Wpointer-sign] warningsTobias Klauser2016-11-021-2/+2
|/ | | | | | | | | | | | | libnet_build_icmpv4_echo() expects the padding parameter to be a pointer of type const uint8_t*, but in pingmac_send() a const char* is passed, causing clang to emit a [-Wpointer-sign] warning. The same is the case for the padding parameter to libnet_build_arp used in pingip_send(). Fix these two warnings by defining the padding as const uint8_t[16]. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
* Up version to 2.17arping-2.17Thomas Habets2016-06-271-1/+1
|
* test: Check return value of asprintf()Thomas Habets2016-06-271-1/+3
|
* Add 2016 to copyright year rangeThomas Habets2016-06-271-1/+1
|
* Add padding to IP and MAC pingsThomas Habets2016-05-081-4/+18
| | | | | | Without this padding some systems (e.g. Raspberry Pi 3 wireless interface) failed. dmesg said: arping: packet size is too short (42 <= 50)
* Check setvbuf() for errorsThomas Habets2015-12-231-1/+5
|
* Add end of line to some verbose strings.Thomas Habets2015-12-211-3/+3
|
* Up version to 2.16.arping-2.16Thomas Habets2015-12-071-1/+1
|
* Added release docs to HACKING.mdThomas Habets2015-12-071-0/+14
|
* Correct packet testing script comment.Thomas Habets2015-12-071-1/+1
|
* Fix packet testing script.Thomas Habets2015-12-071-22/+27
|
* Fix libnet CONST check. Mental note: C is not C++Thomas Habets2015-12-071-2/+2
|
* Add extra/packets.exp to test generated packets.Thomas Habets2015-11-271-0/+110
|
* Test exit code correctnessThomas Habets2015-11-271-0/+55
|
* Detect too many args and bail.Thomas Habets2015-11-271-0/+7
|
* Simplify option parsing a bit by reduceing state variables.Thomas Habets2015-11-271-25/+28
|
* Added some const correctnessThomas Habets2015-11-271-7/+7
|
* Better errors when flags used incorrectly.Thomas Habets2015-11-271-5/+9
|
* Test -d a bitThomas Habets2015-11-271-1/+9
|
* Rework getopt loopAlexey Mochkin2015-11-271-46/+67
| | | | | | | | Getopt loop should only set variables, and calculate nothing. Without this patch you MUST specify -i option before -S or -T in your commandline in other cases ifname will be NULL. Signed-off-by: Alexey Mochkin <alukardd@alukardd.org>
* Detect if libnet_addr2name4 takes const char* addrThomas Habets2015-11-261-0/+15
|
* Check if `libnet_init()` takes const for device.Thomas Habets2015-11-252-1/+22
| | | | | Const was added somewhere between Libnet 1.1.4 and 1.1.6 and correct prototype is needed for unit test mocks.
* Add comment for vim linemodeAlexey Mochkin2015-11-251-0/+2
| | | | Signed-off-by: Alexey Mochkin <alukardd@alukardd.org>
* Correctly check if libnet_init fails.Thomas Habets2015-11-254-5/+99
| | | | | If `libnet_init()` failed (e.g. not root) AND IP parsing failed, then arping would SEGV when it tried to construct the error message. This fixes that.
* Update link to libnetThomas Habets2015-11-141-1/+3
| | | Found by https://github.com/evuez/github-links-checker/issues/1056
* Don't rely on C99 features.Thomas Habets2015-09-241-3/+6
|
* Clean up get_mac_addr and strip_newlines, and add unit tests.Thomas Habets2015-09-242-43/+104
|
* Use suitable lookupdev for system.Thomas Habets2015-04-221-2/+2
|
* Silence all warnings in unit tests on clang.Thomas Habets2015-04-222-3/+19
|
* Handle all display cases, silencing a warning in clang.Thomas Habets2015-04-221-0/+5
|
* Conditionally include grp.h and sys/param.h.Thomas Habets2015-04-222-0/+10
| | | | | | | FreeBSD says setgroups() is in sys/param.h, and on my Linux it's actually in grp.h even though manpage doesn't mention it. This silences a warning when building with clang.
* Add check dependency to travis.Thomas Habets2015-04-221-1/+1
|
* Add test on some borken packets.Thomas Habets2015-04-222-8/+228
|
* Add tests on output.Thomas Habets2015-04-221-1/+135
|
* Initial unit test.Thomas Habets2015-04-226-10/+219
|
* Fix typo in Travis-CI config.Thomas Habets2015-04-221-1/+1
|
* Add Travis-CI config.Thomas Habets2015-04-221-0/+8
|
* Merge pull request #18 from newbg/8021p-v2Thomas Habets2015-02-113-6/+31
|\ | | | | Add -Q option to specify 802.1Q priority.
| * Add -Q option to specify 802.1Q priority.Nikolay Aleksandrov2015-02-113-6/+31
|/ | | | | | | | Since the 802.1p priority is a part of the 802.1Q VLAN header, it requires that the -V option is also specified. The allowed priority values are 0 (default) - 7. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
* Add -V for supplying a 802.1Q tag.Thomas Habets2015-02-054-46/+133
| | | | | | | | | Tag is added on sent packets and expected on replies. This gives the ability to arping hosts on multiple different 802.1Q VLANs without actually having to create them as subinterfaces. Adapted from patch by Nikolay Aleksandrov <razor@blackwall.org>.
* Up version to 2.15.arping-2.15Thomas Habets2015-01-101-1/+1
|
* Have expect celebrate when it succeeds.Thomas Habets2015-01-101-0/+3
|
* Remove autom4te.cache from tarball.Thomas Habets2015-01-101-0/+1
|
* Add comment on BIOCIMMEDIATE use.Thomas Habets2014-12-051-0/+1
|
* Friendlier error message if setting timestamp type fails.Thomas Habets2014-12-051-1/+5
|