summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* travis.yml: KEEP: add coverity-scancoverity_scanDavid Heidelberg2017-08-051-1/+13
| | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* Merge pull request #89 from metan-ucw/masterDavid Heidelberg2017-08-051-1/+1
|\ | | | | ping_common.c: POLLERRR is ignored in events
| * ping_common.c: POLLERRR is ignored in eventsCyril Hrubis2017-06-011-1/+1
| | | | | | | | | | | | | | See 'man poll' or fs/select.c in kernel sources, POLLERR is ignored in events and if error happens it will be returned regardless. Signed-off-by: Cyril Hrubis <metan@ucw.cz>
* | doc: convert from converting SGML to XMLDavid Heidelberg2017-08-0529-3818/+2160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This work is mostly inspired by systemd manpages procedure creation. [1] With this commit, you can freely throw SGML tools and you should be fine with xsltproc :) Enjoy! Also, please don't be shy fix bugs, it will need more polishing! [1] https://github.com/systemd/systemd/tree/master/man Fixes bug: https://github.com/iputils/iputils/issues/1 Fixes bug: https://github.com/iputils/iputils/issues/27 Signed-off-by: David Heidelberg <david@ixit.cz>
* | travis-ci: cleanup and switch to Ubuntu 14.04 buildDavid Heidelberg2017-08-051-8/+3
| | | | | | | | | | | | This commit will speed up CI testing and cleanup .travis.yml file Signed-off-by: David Heidelberg <david@ixit.cz>
* | RELNOTES: deprecated in favor of git history & githubDavid Heidelberg2017-08-052-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Recently RELNOTES contained only git commits, which is not very informative. Please, use "$ git shortlog" instead. Also get rid of UNAME_N, not used in Makefile. Fixes: https://bugs.gentoo.org/626994 Signed-off-by: David Heidelberg <david@ixit.cz>
* | remove iputils.specDavid Heidelberg2017-08-022-101/+0
| | | | | | | | | | | | | | | | | | At this moment, there is no known user of this file. Later, Meson build system should be able generate file based on meson.build file. Signed-off-by: David Heidelberg <david@ixit.cz>
* | ping: fix conflicting definesDavid Heidelberg2017-07-311-2/+2
| | | | | | | | | | | | | | | | | | | | After ping and ping6 merge, defining F_FLOWINFO caused ipv4 ping starts priting F_TIMESTAMP. This weird behaviour has been caused by defines overlap. This behaviour couldn't happend when ping and ping6 has been standalone binary, because separate codepaths. Signed-off-by: David Heidelberg <david@ixit.cz>
* | ping: flowinfo: fixup checks for flowinfo and also add decimal numbers supportDavid Heidelberg2017-07-313-27/+30
| | | | | | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* | ping: parsetos verification is enough, allow decimal valuesDavid Heidelberg2017-07-311-8/+2
| | | | | | | | | | | | | | | | Drop rest of code, duplicated and buggy. Fixes: https://github.com/iputils/iputils/issues/70 Signed-off-by: David Heidelberg <david@ixit.cz>
* | ping: fix typo in error tos error messageDavid Heidelberg2017-07-311-1/+1
| | | | | | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* | meson: add experimental meson buildsystem supportmesonDavid Heidelberg2017-07-183-0/+85
| | | | | | | | | | | | | | | | | | Usage: meson builddir/ cd builddir ninja Signed-off-by: David Heidelberg <david@ixit.cz>
* | gitignore: prepare for MesonDavid Heidelberg2017-07-161-0/+3
| | | | | | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* | Merge pull request #87 from jsynacek/fix-pmtudiscDavid Heidelberg2017-07-153-3/+9
|\ \ | |/ |/| ping: fix pmtu discovery for ipv6
| * ping: fix pmtu discovery for ipv6Jan Synacek2017-05-153-3/+9
| | | | | | | | Fixes: #40
* | traceroute6: Fix traceroute to IPv6 addressNathaniel White2017-04-151-1/+3
| | | | | | | | | | | | | | | | Tracing to an IPv6 address was broken in 40fd68a784 when fixing tracing to a hostname. It correctly moved the assignment to after the memcpy into 'to', but that code path is only executed when tracing to a hostname. The fix just moves the assignment to after the code paths for filling out 'to' for both IPv6 addresses and hostnames.
* | traceroute6: Fix leaking the idn memoryNathaniel White2017-04-151-0/+5
|/ | | | | | When we call idna_to_ascii_lz, it allocates memory for the output, which is put into the idn variable. According to the man page, we're required to free it. This change simply frees the memory if it was allocated.
* traceroute6: Fix use after free for hostnameNathaniel White2017-03-311-2/+13
| | | | | | The memory in result is freed when freeaddrinfo is called. We need to copy that string into our own memory and free it before we exit. Changed the exit(0) at the end of the loop to a break to simplify cleanup.
* tracepath,doc: Added -4, -6 Parameter in doc and void usage(void)Seishinryohosha2017-03-012-1/+17
|
* fix multicast setsockopt calls on big endianJan Synacek2017-03-011-2/+2
| | | | Originally reported at https://bugzilla.redhat.com/show_bug.cgi?id=1373333.
* arping: exit if network disappears while runningJan Synacek2017-03-011-0/+2
| | | | Originally reported at https://bugzilla.redhat.com/show_bug.cgi?id=1387542
* ping: prevent possible double free after cap_free()Jan Synacek2017-01-141-0/+1
| | | | Original bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=1410114
* Merge pull request #69 from nmeyerhans/traceroute6David Heidelberg2016-11-161-1/+1
|\
| * traceroute6: Fix udp packet port specification.Noah Meyerhans2016-11-091-1/+1
| | | | | | | | Signed-off-by: Noah Meyerhans <noahm@debian.org>
* | Merge pull request #67 from locasity/masterDavid Heidelberg2016-11-164-0/+23
|\ \ | |/ |/|
| * Add strict pattern matching on response when pattern was providedSingh2016-11-154-0/+23
|/ | | | Signed-off-by: Singh <sstattla@gmail.com>
* iputils-s20161105s20161105David Heidelberg2016-11-054-3/+47
| | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* doc: Inserted a missing wordOlof Sjödin2016-09-291-1/+1
|
* Merge pull request #56 from lilydjwg/masterDavid Heidelberg2016-09-292-21/+28
|\
| * ping: also bind the ICMP socket to the specific device依云2016-09-172-21/+28
| |
* | Merge pull request #65 from jsynacek/ping-eacces-fixDavid Heidelberg2016-09-121-1/+2
|\ \
| * | ping: fix error message when getting EACCES from connect()Jan Synacek2016-09-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | According to man connect(2), EACCES can be set either when pinging a broadcast address, or when a local firewall rule is in place. Easily reproduced by running "ip route add prohibit <ipaddr>" and then trying to ping the address.
* | | Merge pull request #63 from jsynacek/ping6-I-optionpavlix2016-09-102-1/+2
|\ \ \ | | | | | | | | fix ping -6 -I
| * | | ping: fix ping -6 -IJan Synacek2016-09-092-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ping passes the device variable to ping6_common.c, but it's not visible there. Original patch by Xin Long <lucien.xin@gmail.com>.
* | | | Merge pull request #64 from jsynacek/arping-doc-fixDavid Heidelberg2016-09-092-2/+2
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | arping,doc: fix documentation of -IJan Synacek2016-09-092-2/+2
|/ / | | | | | | | | Also, give a less misleading error when a device cannot be automatically determined and has to be specified by the user using the -I option.
* | tftpd: Drop supplementary groups for rootMarkos Chandras2016-08-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | Before dropping our root privileges, we need to make sure that root does not belong to any other group. That's because setgid() will change the gid but it will leave the supplementary groups unchanged so we may still be able to do privilege operations. Use setgroups() before set{u,g}id to ensure that root does not have any unexpected priviledges. Link: https://www.securecoding.cert.org/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges Signed-off-by: Markos Chandras <mchandras@suse.de>
* | ping: work with older kernels that don't support ping socketsPavel Šimerda2016-08-231-11/+64
| | | | | | | | Fixes #54, related #32.
* | docs: remove references to ping6 and traceroute6Pavel Šimerda2016-08-202-4/+2
| | | | | | | | Closes #30.
* | (re)structured INSTALL.md and transformed into markdown; added hint that ↵Karl-Philipp Richter2016-08-201-23/+25
| | | | | | | | installation into prefix has to be done with DESTDIR make variable and that there's no prefix support in configure, close #21
* | renamed INSTALL to INSTALL.mdKarl-Philipp Richter2016-08-201-0/+0
| |
* | ping: remove assignments of values that are never readPavel Šimerda2016-08-204-10/+3
| | | | | | | | fixes #2
* | Merge pull request #60 from pavlix/buildDavid Heidelberg2016-08-121-2/+2
|\ \
| * | docs: fix parallel build of manpagesPavel Šimerda2016-08-121-2/+2
|/ /
* | Merge pull request #58 from jsynacek/masterDavid Heidelberg2016-08-041-0/+1
|\ \ | |/ |/|
| * correctly initialize first hopJan Synacek2016-08-041-0/+1
|/ | | | | | | When the sin6_family was set to 0, the initial probe connect() could have succeeded instead of failing. Fixes #57.
* Merge pull request #48 from pavlix/dualstackDavid Heidelberg2016-05-183-670/+233
|\
| * tracepath: remove now redundant tracepath6Pavel Šimerda2016-03-302-592/+1
| |
| * tracepath: switch to dual-stack operationPavel Šimerda2016-03-301-2/+16
| |
| * tracepath: borrow everything good from tracepath6Pavel Šimerda2016-03-301-72/+216
| |