Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix Makefile.am typo breaking tests | Thomas Habets | 2016-11-23 | 1 | -1/+1 | |
| | ||||||
* | Make `arping` -w/-W behave like `ping` and `iputils-arping` | Thomas Habets | 2016-11-23 | 3 | -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 code | Thomas Habets | 2016-11-23 | 5 | -2/+143 | |
| | ||||||
* | Merge pull request #21 from tklauser/arping-2.x-clang | Thomas Habets | 2016-11-02 | 1 | -3/+3 | |
|\ | | | | | Clang warning fixes | |||||
| * | Fix clang [-Wlogical-op-parentheses] warning | Tobias Klauser | 2016-11-02 | 1 | -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] warnings | Tobias Klauser | 2016-11-02 | 1 | -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.17 | Thomas Habets | 2016-06-27 | 1 | -1/+1 | |
| | ||||||
* | test: Check return value of asprintf() | Thomas Habets | 2016-06-27 | 1 | -1/+3 | |
| | ||||||
* | Add 2016 to copyright year range | Thomas Habets | 2016-06-27 | 1 | -1/+1 | |
| | ||||||
* | Add padding to IP and MAC pings | Thomas Habets | 2016-05-08 | 1 | -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 errors | Thomas Habets | 2015-12-23 | 1 | -1/+5 | |
| | ||||||
* | Add end of line to some verbose strings. | Thomas Habets | 2015-12-21 | 1 | -3/+3 | |
| | ||||||
* | Up version to 2.16.arping-2.16 | Thomas Habets | 2015-12-07 | 1 | -1/+1 | |
| | ||||||
* | Added release docs to HACKING.md | Thomas Habets | 2015-12-07 | 1 | -0/+14 | |
| | ||||||
* | Correct packet testing script comment. | Thomas Habets | 2015-12-07 | 1 | -1/+1 | |
| | ||||||
* | Fix packet testing script. | Thomas Habets | 2015-12-07 | 1 | -22/+27 | |
| | ||||||
* | Fix libnet CONST check. Mental note: C is not C++ | Thomas Habets | 2015-12-07 | 1 | -2/+2 | |
| | ||||||
* | Add extra/packets.exp to test generated packets. | Thomas Habets | 2015-11-27 | 1 | -0/+110 | |
| | ||||||
* | Test exit code correctness | Thomas Habets | 2015-11-27 | 1 | -0/+55 | |
| | ||||||
* | Detect too many args and bail. | Thomas Habets | 2015-11-27 | 1 | -0/+7 | |
| | ||||||
* | Simplify option parsing a bit by reduceing state variables. | Thomas Habets | 2015-11-27 | 1 | -25/+28 | |
| | ||||||
* | Added some const correctness | Thomas Habets | 2015-11-27 | 1 | -7/+7 | |
| | ||||||
* | Better errors when flags used incorrectly. | Thomas Habets | 2015-11-27 | 1 | -5/+9 | |
| | ||||||
* | Test -d a bit | Thomas Habets | 2015-11-27 | 1 | -1/+9 | |
| | ||||||
* | Rework getopt loop | Alexey Mochkin | 2015-11-27 | 1 | -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* addr | Thomas Habets | 2015-11-26 | 1 | -0/+15 | |
| | ||||||
* | Check if `libnet_init()` takes const for device. | Thomas Habets | 2015-11-25 | 2 | -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 linemode | Alexey Mochkin | 2015-11-25 | 1 | -0/+2 | |
| | | | | Signed-off-by: Alexey Mochkin <alukardd@alukardd.org> | |||||
* | Correctly check if libnet_init fails. | Thomas Habets | 2015-11-25 | 4 | -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 libnet | Thomas Habets | 2015-11-14 | 1 | -1/+3 | |
| | | | Found by https://github.com/evuez/github-links-checker/issues/1056 | |||||
* | Don't rely on C99 features. | Thomas Habets | 2015-09-24 | 1 | -3/+6 | |
| | ||||||
* | Clean up get_mac_addr and strip_newlines, and add unit tests. | Thomas Habets | 2015-09-24 | 2 | -43/+104 | |
| | ||||||
* | Use suitable lookupdev for system. | Thomas Habets | 2015-04-22 | 1 | -2/+2 | |
| | ||||||
* | Silence all warnings in unit tests on clang. | Thomas Habets | 2015-04-22 | 2 | -3/+19 | |
| | ||||||
* | Handle all display cases, silencing a warning in clang. | Thomas Habets | 2015-04-22 | 1 | -0/+5 | |
| | ||||||
* | Conditionally include grp.h and sys/param.h. | Thomas Habets | 2015-04-22 | 2 | -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 Habets | 2015-04-22 | 1 | -1/+1 | |
| | ||||||
* | Add test on some borken packets. | Thomas Habets | 2015-04-22 | 2 | -8/+228 | |
| | ||||||
* | Add tests on output. | Thomas Habets | 2015-04-22 | 1 | -1/+135 | |
| | ||||||
* | Initial unit test. | Thomas Habets | 2015-04-22 | 6 | -10/+219 | |
| | ||||||
* | Fix typo in Travis-CI config. | Thomas Habets | 2015-04-22 | 1 | -1/+1 | |
| | ||||||
* | Add Travis-CI config. | Thomas Habets | 2015-04-22 | 1 | -0/+8 | |
| | ||||||
* | Merge pull request #18 from newbg/8021p-v2 | Thomas Habets | 2015-02-11 | 3 | -6/+31 | |
|\ | | | | | Add -Q option to specify 802.1Q priority. | |||||
| * | Add -Q option to specify 802.1Q priority. | Nikolay Aleksandrov | 2015-02-11 | 3 | -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 Habets | 2015-02-05 | 4 | -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.15 | Thomas Habets | 2015-01-10 | 1 | -1/+1 | |
| | ||||||
* | Have expect celebrate when it succeeds. | Thomas Habets | 2015-01-10 | 1 | -0/+3 | |
| | ||||||
* | Remove autom4te.cache from tarball. | Thomas Habets | 2015-01-10 | 1 | -0/+1 | |
| | ||||||
* | Add comment on BIOCIMMEDIATE use. | Thomas Habets | 2014-12-05 | 1 | -0/+1 | |
| | ||||||
* | Friendlier error message if setting timestamp type fails. | Thomas Habets | 2014-12-05 | 1 | -1/+5 | |
| |