]> git.ipfire.org Git - thirdparty/mtr.git/log
thirdparty/mtr.git
6 months agoMerge pull request #495 from matt-kimball/cygwin-async-pipe master
Roger Wolff [Tue, 24 Oct 2023 07:22:58 +0000 (09:22 +0200)] 
Merge pull request #495 from matt-kimball/cygwin-async-pipe

Update Cygwin ICMP service thread for asynchronous pipes

6 months agoUpdate Cygwin ICMP service thread for asynchronous pipes 495/head
Matt Kimball [Tue, 24 Oct 2023 02:02:43 +0000 (03:02 +0100)] 
Update Cygwin ICMP service thread for asynchronous pipes

Recent versions of Cygwin implement pipe() using Windows' named
pipes, and put the read end of the pipe in FILE_PIPE_COMPLETE_OPERATION
mode, which doesn't allow overlapped I/O operations.

For the relevant commit in the Cygwin repository, see
9e4d308cd592fe383dec58ea6523c1b436888ef8

The solution here is to maintain a Windows event object which is
set only when any ICMP requests are pending.  We can do an alertable
wait on that event object, which will allow us to complete ICMP
requests.

Thanks to Adam Schultz for research into this issue and a first
attempt at a fix.

6 months agoMerge pull request #493 from slord399/master
Roger Wolff [Sat, 14 Oct 2023 21:00:54 +0000 (23:00 +0200)] 
Merge pull request #493 from slord399/master

Recommend WSL as a way to run MTR on Windows.

6 months agoUpdate section title 493/head
Tony Lewis Hiroaki URAHAMA [Sat, 7 Oct 2023 20:20:42 +0000 (21:20 +0100)] 
Update section title

6 months agoAdd Ubuntu as specific distribution
Tony Lewis Hiroaki URAHAMA [Sat, 7 Oct 2023 20:05:19 +0000 (21:05 +0100)] 
Add Ubuntu as specific distribution

6 months agoAdd WSL method to Windows Install
Tony Lewis Hiroaki URAHAMA [Sat, 7 Oct 2023 19:58:59 +0000 (20:58 +0100)] 
Add WSL method to Windows Install

It would be much simpler and not experience IPv6 related build fail at all.

7 months agoMerge pull request #489 from flu0r1ne/set-mark-during-address-selection
Roger Wolff [Wed, 4 Oct 2023 09:28:08 +0000 (11:28 +0200)] 
Merge pull request #489 from flu0r1ne/set-mark-during-address-selection

Set mark during address selection

7 months agoSupport Hexadecimal Arguments for Packet Marking 489/head
flu0r1ne [Wed, 4 Oct 2023 03:45:20 +0000 (22:45 -0500)] 
Support Hexadecimal Arguments for Packet Marking

Packet marks are often specified in hexadecimal format. Update the
`strtonum_or_err` function to parse both hexadecimal and decimal
values.

7 months agoUse Packet Marking for IP Address Selection
flu0r1ne [Wed, 4 Oct 2023 03:31:23 +0000 (22:31 -0500)] 
Use Packet Marking for IP Address Selection

In certain scenarios, the routing policy database may affect packet
routing. When selecting an address in `mtr`, assign a packet mark if
`SO_MARK` is defined and a mark has been supplied.

7 months agoUse a uint32 for the type of a Linux mark
flu0r1ne [Wed, 4 Oct 2023 03:13:00 +0000 (22:13 -0500)] 
Use a uint32 for the type of a Linux mark

It is typical to store and manipulate Linux packet marks using unsigned values.

7 months agoMerge pull request #478 from esimest/master
Roger Wolff [Tue, 3 Oct 2023 12:00:59 +0000 (14:00 +0200)] 
Merge pull request #478 from esimest/master

Add error code ETIMEOUT(110) handle logic

7 months agoMerge pull request #488 from flu0r1ne/linux-tests
Roger Wolff [Tue, 3 Oct 2023 12:00:11 +0000 (14:00 +0200)] 
Merge pull request #488 from flu0r1ne/linux-tests

Linux-Only Interface, Marking, and IP Unit Tests

7 months agoMerge pull request #487 from flu0r1ne/adjust-capability-handling
Roger Wolff [Tue, 3 Oct 2023 07:19:23 +0000 (09:19 +0200)] 
Merge pull request #487 from flu0r1ne/adjust-capability-handling

Adjust capability handling

7 months agoChange B101->S101 to reflect flake8 488/head
flu0r1ne [Tue, 3 Oct 2023 02:21:53 +0000 (21:21 -0500)] 
Change B101->S101 to reflect flake8

7 months agoFix flake8 linting
flu0r1ne [Tue, 3 Oct 2023 01:57:51 +0000 (20:57 -0500)] 
Fix flake8 linting

- Remove unused imports
- Search for ip executables in known locations
- Fix f-string
- Ignore assert warnings

7 months agoDrop capabilities when `setsockopt` errors 487/head
flu0r1ne [Tue, 3 Oct 2023 01:16:28 +0000 (20:16 -0500)] 
Drop capabilities when `setsockopt` errors

Ensure that `set_privileged_socket_opt` drops capabilities even in the event
that `setsockopt` returns an error.

7 months agoAnnotate `set_privileged_socket_opt` with UNUSED
flu0r1ne [Mon, 2 Oct 2023 23:10:43 +0000 (18:10 -0500)] 
Annotate `set_privileged_socket_opt` with UNUSED

The `set_privileged_socket_opt` function is currently called only when
`SO_MARK` or `SO_BINDTODEVICE` are defined. On systems that do not support
either feature, `set_privileged_socket_opt` is expected to be unused. Adding
an annotation suppresses compiler warnings.

7 months agoLinux-Only Interface, Marking, and IP Unit Tests
flu0r1ne [Mon, 2 Oct 2023 08:53:16 +0000 (03:53 -0500)] 
Linux-Only Interface, Marking, and IP Unit Tests

This commit introduces three unit tests focused on interface binding,
packet marking, and IP source address spoofing/selection. Each of these
tests builds upon the original `MtrPacketTest` base class. To evaluate
these network-dependent features, the tests utilize an emulated network
environment. To enable this, a small network emulation library, `netem`,
has been developed specifically for this purpose. `Netem` allows for the
creation of arbitrary network configurations for testing and can reliably
set up and clean up virtual network environments on Linux systems. The only
dependencies are `iproute2` and `libc`, which are generally pre-installed
on most Linux hosts.

The commit adds three tests that are expected to fail:

1. Interface Binding: Evaluates the capability of `mtr-packet` to bind to
   a specific interface.
2. Packet Marking: Assesses the ability of `mtr-packet` to apply a Linux
   networking mark (fwmark).
3. Source Address Selection: Tests `mtr-packet`'s ability to spoof or bind
   to a specified source address.

7 months agoFix interface binding by retaining CAP_NET_RAW
flu0r1ne [Fri, 29 Sep 2023 21:28:19 +0000 (16:28 -0500)] 
Fix interface binding by retaining CAP_NET_RAW

This commit addresses an issue where mtr would fail with EPERM because setting the
SO_BINDTODEVICE socket option requires the CAP_NET_RAW capability.

Changes:

- Refactor the code to abstract setting privileged socket options. This
  includes a common interface for setting capabilities depending on the
  platform (with or without LIBCAP).

- Replace direct setsockopt calls with the new abstracted function for
  setting both SO_MARK and SO_BINDTODEVICE.

- Update capability management in `drop_excess_capabilities` to retain
  CAP_NET_RAW when needed.

7 months agoFix Capability Management, Retain CAP_NET_ADMIN
flu0r1ne [Fri, 29 Sep 2023 08:07:54 +0000 (03:07 -0500)] 
Fix Capability Management, Retain CAP_NET_ADMIN

Modify the capability-dropping logic to specifically retain CAP_NET_ADMIN if it
is initially provided, in adherence to least-privilege principles.

Details:
1. Update the `drop_excess_capabilities` function to only drop capabilities that
   are unnecessary, retaining CAP_NET_ADMIN when needed for setting the socket
   mark.
2. Introduce logic in `set_socket_mark` to temporarily elevate CAP_NET_ADMIN
   into the effective set for the duration of the packet mark setting
   operation.

7 months agoMerge pull request #484 from alarig/master
Roger Wolff [Mon, 11 Sep 2023 12:09:17 +0000 (14:09 +0200)] 
Merge pull request #484 from alarig/master

Change UDP and ICMP sockets binding to accept a source IP from the -a…

7 months agoChange UDP and ICMP sockets binding to accept a source IP from the -a CLI option 484/head
Alarig Le Lay [Mon, 11 Sep 2023 09:48:53 +0000 (11:48 +0200)] 
Change UDP and ICMP sockets binding to accept a source IP from the -a CLI option

Issue: #232

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
8 months agoMerge pull request #481 from darless/github-workflows
Roger Wolff [Thu, 10 Aug 2023 14:31:35 +0000 (16:31 +0200)] 
Merge pull request #481 from darless/github-workflows

Github actions added to perform lint and compile

9 months agoGithub actions added to perform lint and compile 481/head
darless [Tue, 11 Jul 2023 16:18:33 +0000 (11:18 -0500)] 
Github actions added to perform lint and compile

In the test folder, there was lint.sh, but I think flake8 is a better
tool.

Added a compile job for linux, this runs compilation as defined in
the README, runs a sample mtr and runs cmdparse.py test. Need
documentation on what other tests to run and whether to include the
testing in tox instead of running them individually.

Not adding in this PR support for cygwin or freebsd, as that will need
investigation on how to run.

Minor:
- Fixed a typo in configure.ac that used ---- vs -- for a flag option.

10 months agoAdd error code ETIMEOUT(110) handle logic 478/head
Jian Cheng [Thu, 8 Jun 2023 12:28:29 +0000 (20:28 +0800)] 
Add error code ETIMEOUT(110) handle logic

11 months agoMerge pull request #476 from ewpratten/nat64_asns
Roger Wolff [Wed, 31 May 2023 09:39:00 +0000 (11:39 +0200)] 
Merge pull request #476 from ewpratten/nat64_asns

Implement ASN lookups in well-known nat64 prefix

11 months agoImplement ASN lookups in well-known nat64 prefix 476/head
Evan Pratten [Wed, 31 May 2023 00:22:48 +0000 (20:22 -0400)] 
Implement ASN lookups in well-known nat64 prefix

11 months agoFixed typo noted by @szczot3k
R.E. Wolff [Tue, 16 May 2023 12:03:37 +0000 (14:03 +0200)] 
Fixed typo noted by @szczot3k

11 months agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Tue, 16 May 2023 11:58:23 +0000 (13:58 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

11 months agoMerge pull request #473 from famfo/master
Roger Wolff [Tue, 16 May 2023 11:13:54 +0000 (13:13 +0200)] 
Merge pull request #473 from famfo/master

Add option to use custom ipinfo provider

11 months agoAdd option to use custom ipinfo provider 473/head
famfo [Tue, 16 May 2023 10:41:58 +0000 (12:41 +0200)] 
Add option to use custom ipinfo provider

11 months agoMerge pull request #472 from the-eater/fix-cap
Roger Wolff [Tue, 16 May 2023 07:33:32 +0000 (09:33 +0200)] 
Merge pull request #472 from the-eater/fix-cap

configure.ac: fix broken cap check

11 months agoconfigure.ac: fix broken cap check 472/head
eater [Tue, 16 May 2023 04:40:24 +0000 (04:40 +0000)] 
configure.ac: fix broken cap check

12 months agomerged
R.E. Wolff [Sat, 22 Apr 2023 17:14:02 +0000 (19:14 +0200)] 
merged

12 months agoMerge pull request #468 from msmeissn/master
Roger Wolff [Tue, 11 Apr 2023 15:17:13 +0000 (17:17 +0200)] 
Merge pull request #468 from msmeissn/master

fixed the sizes passed into snprintf

12 months agofixed the sizes passed into snprintf 468/head
Marcus Meissner [Tue, 11 Apr 2023 14:05:36 +0000 (16:05 +0200)] 
fixed the sizes passed into snprintf

15 months agoMerge pull request #462 from uniontech-lilinjie/master
Roger Wolff [Tue, 10 Jan 2023 10:11:49 +0000 (11:11 +0100)] 
Merge pull request #462 from uniontech-lilinjie/master

fix typo

15 months agofix typo 462/head
lilinjie [Tue, 10 Jan 2023 06:20:12 +0000 (14:20 +0800)] 
fix typo

Signed-off-by: lilinjie <lilinjie@uniontech.com>
19 months agoMarkus pointed out useless statement.
R.E. Wolff [Fri, 30 Sep 2022 07:42:20 +0000 (09:42 +0200)] 
Markus pointed out useless statement.

19 months agoMerge pull request #447 from kerolasa/exit-code
Roger Wolff [Tue, 6 Sep 2022 14:07:17 +0000 (16:07 +0200)] 
Merge pull request #447 from kerolasa/exit-code

ui: make interactive and non-interactive exit code the same

19 months agoui: make interactive and non-interactive exit code the same 447/head
Sami Kerola [Tue, 6 Sep 2022 13:16:04 +0000 (14:16 +0100)] 
ui: make interactive and non-interactive exit code the same

Before this change the report gave successful exit value when destination
hostname could not be found.

    $ ./mtr --report nxdomain. ; echo $?
    ./mtr: Failed to resolve host: nxdomain.: Name or service not known
    0

Quickly looking 'git grep ---after-context if.*Interactive' there does not
appear to be more than the two instances in main() where exit is called
depending on interactive, so this change should cover all these cases.

Reported-by: Marek Kroemeke <mkroemeke@cloudflare.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
20 months agoMerge pull request #426 from amarshall/min-port
Roger Wolff [Fri, 19 Aug 2022 08:48:36 +0000 (10:48 +0200)] 
Merge pull request #426 from amarshall/min-port

Adjust MIN_PORT to comply with IANA reserved/recommended ports

20 months agoMerge pull request #445 from wenlxie/addhelpforECMP
Roger Wolff [Fri, 19 Aug 2022 08:46:40 +0000 (10:46 +0200)] 
Merge pull request #445 from wenlxie/addhelpforECMP

Add help info for option -E

20 months agoAdd help info for option -E 445/head
wenlxie [Fri, 19 Aug 2022 05:51:35 +0000 (13:51 +0800)] 
Add help info for option -E

20 months agoMerge pull request #443 from rovo89/bindtodevice
Roger Wolff [Wed, 10 Aug 2022 11:27:35 +0000 (13:27 +0200)] 
Merge pull request #443 from rovo89/bindtodevice

Check if SO_BINDTODEVICE is defined

20 months agoCheck if SO_BINDTODEVICE is defined 443/head
Robert Vollmer [Wed, 10 Aug 2022 09:15:55 +0000 (11:15 +0200)] 
Check if SO_BINDTODEVICE is defined

20 months agoMerge pull request #440 from rovo89/bindtodevice
Roger Wolff [Fri, 5 Aug 2022 11:03:41 +0000 (13:03 +0200)] 
Merge pull request #440 from rovo89/bindtodevice

Set SO_BINDTODEVICE for `-I`

20 months agoSet SO_BINDTODEVICE for -I 440/head
Robert Vollmer [Fri, 5 Aug 2022 07:58:41 +0000 (09:58 +0200)] 
Set SO_BINDTODEVICE for -I

This is done by traceroute and other tools as well. It requires
CAP_NET_RAW, but without it the -I option doesn't seem to have any
effect.

21 months agoMerge pull request #412 from 23hiro/master
Roger Wolff [Sun, 17 Jul 2022 12:46:56 +0000 (14:46 +0200)] 
Merge pull request #412 from 23hiro/master

ipv6 udp checksums like ipv4 but with ipv6 pseudoheader

21 months agoMerge branch 'traviscross:master' into master 412/head
23hiro [Sun, 17 Jul 2022 11:49:44 +0000 (11:49 +0000)] 
Merge branch 'traviscross:master' into master

23 months agoMerge pull request #430 from bewing/max_display_path
Roger Wolff [Sat, 14 May 2022 16:15:49 +0000 (18:15 +0200)] 
Merge pull request #430 from bewing/max_display_path

add --max-display-paths option

23 months agoadd --max-display-paths option 430/head
Brandon Ewing [Fri, 13 May 2022 16:18:38 +0000 (11:18 -0500)] 
add --max-display-paths option

It is not unknown to have datacenters with over 8 ECMP paths between two
hops.  Expand the maximum number of ECMP hosts stored in addrs to 128,
and add a new option to control the number to display, defaulting to the
old MAX_PATHS of 8

23 months agoMerge pull request #429 from bewing/ecmp_order
Roger Wolff [Sat, 14 May 2022 10:06:06 +0000 (12:06 +0200)] 
Merge pull request #429 from bewing/ecmp_order

use addrs for static host ordering in curses

23 months agouse addrs for static host ordering in curses 429/head
Brandon Ewing [Fri, 13 May 2022 15:27:55 +0000 (10:27 -0500)] 
use addrs for static host ordering in curses

Change d2552ca has the side effect of moving hosts around in the
multipath view, as the last host to reply to a packet was set as
addr.  Using addrs[0] istead of addr to draw the first host keeps
the ordering deterministic, in order of first reply.

2 years agoAdjust MIN_PORT to match other implementations 426/head
Andrew Marshall [Wed, 23 Mar 2022 15:36:48 +0000 (11:36 -0400)] 
Adjust MIN_PORT to match other implementations

Port 33434 is the IANA-reserved port for traceroute. It also seems to be
the most common start port. The following implementations, and
likely others, use it as their start port:

- Apple macOS traceroute
- FreeBSD traceroute
- GNU inetutils-traceroute
- Modern traceroute for Linux
- OpenBSD traceroute

The benefit to using a standard starting port is that some firewalls may
have these ports allowed, whereas other ports may be blocked, so there
is a greater probability the probe will succeed.

2 years agoThe release script bumped the version number to 95 v0.95
R.E. Wolff [Tue, 11 Jan 2022 09:10:34 +0000 (10:10 +0100)] 
The release script bumped the version number to 95

2 years agoincreased max length suggested by YVS2014
R.E. Wolff [Wed, 22 Dec 2021 22:58:23 +0000 (23:58 +0100)] 
increased max length suggested by YVS2014

2 years agoMerge pull request #416 from gmax0/master
Roger Wolff [Tue, 14 Dec 2021 07:16:03 +0000 (08:16 +0100)] 
Merge pull request #416 from gmax0/master

Report secondary servers when CSV + wide report is enabled

2 years agoReport secondary servers when CSV + wide report is enabled 416/head
gaamox@tutanota.com [Tue, 14 Dec 2021 06:34:22 +0000 (22:34 -0800)] 
Report secondary servers when CSV + wide report is enabled

2 years agoipv6 udp checksums like ipv4 but with ipv6 pseudoheader
hiro [Tue, 9 Nov 2021 17:50:12 +0000 (17:50 +0000)] 
ipv6 udp checksums like ipv4 but with ipv6 pseudoheader

this fixes a problem where both source and destination port are supplied on the commandline,
this lead to packets not showing up any more due to checksum being different.
this was mentioned first on https://github.com/traviscross/mtr/issues/351

2 years agoMerge pull request #411 from trofi/master
Roger Wolff [Mon, 1 Nov 2021 07:50:49 +0000 (08:50 +0100)] 
Merge pull request #411 from trofi/master

ui/curses: always use "%s"-style format for printf()-style functions

2 years agoui/curses: always use "%s"-style format for printf()-style functions 411/head
Sergei Trofimovich [Mon, 1 Nov 2021 07:36:06 +0000 (07:36 +0000)] 
ui/curses: always use "%s"-style format for printf()-style functions

`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:

  ui/curses.c:765:42:
    error: format not a string literal and no format arguments [-Werror=format-security]
    765 |         mvprintw(rowstat - 1, startstat, msg);
        |                                          ^~~

Let's wrap all the missing places with "%s" format.

2 years agoMerge pull request #407 from a1346054/fixes
Roger Wolff [Sun, 5 Sep 2021 15:51:16 +0000 (17:51 +0200)] 
Merge pull request #407 from a1346054/fixes

Minor cleanup

2 years agotrim trailing whitespace 407/head
a1346054 [Sun, 5 Sep 2021 13:17:33 +0000 (13:17 +0000)] 
trim trailing whitespace

2 years agofix spelling
a1346054 [Sun, 5 Sep 2021 13:18:53 +0000 (13:18 +0000)] 
fix spelling

2 years agounify codestyle
a1346054 [Sun, 5 Sep 2021 13:50:56 +0000 (13:50 +0000)] 
unify codestyle

2 years agofix shellcheck warnings
a1346054 [Sun, 5 Sep 2021 13:12:42 +0000 (13:12 +0000)] 
fix shellcheck warnings

2 years agofix wrong bash completion flag
a1346054 [Sun, 5 Sep 2021 13:10:51 +0000 (13:10 +0000)] 
fix wrong bash completion flag

3 years agoMerge pull request #399 from krisl/bits_and_pieces
Roger Wolff [Sat, 17 Apr 2021 06:39:18 +0000 (08:39 +0200)] 
Merge pull request #399 from krisl/bits_and_pieces

dont show json option if not available

3 years agodont show json option if not available 399/head
Aaron Lipinski [Fri, 16 Apr 2021 20:36:55 +0000 (08:36 +1200)] 
dont show json option if not available

3 years agoMerge pull request #397 from rpaaron/consistent_resolution_strategy
Roger Wolff [Fri, 9 Apr 2021 06:55:46 +0000 (08:55 +0200)] 
Merge pull request #397 from rpaaron/consistent_resolution_strategy

Consistent resolution strategy

3 years agorename function 397/head
Aaron Lipinski [Wed, 7 Apr 2021 20:14:00 +0000 (08:14 +1200)] 
rename function

3 years agomake Hostname as const
Aaron Lipinski [Wed, 7 Apr 2021 01:15:05 +0000 (13:15 +1200)] 
make Hostname as const

3 years agoexport get_hostent_from_name
Aaron Lipinski [Wed, 7 Apr 2021 01:11:55 +0000 (13:11 +1200)] 
export get_hostent_from_name

3 years agofreeaddrinfo
Aaron Lipinski [Wed, 7 Apr 2021 01:08:36 +0000 (13:08 +1200)] 
freeaddrinfo

3 years agoreset addr family before searching again
Aaron Lipinski [Tue, 6 Apr 2021 04:57:59 +0000 (16:57 +1200)] 
reset addr family before searching again

3 years agoexport DEFAULT_AF
Aaron Lipinski [Wed, 7 Apr 2021 19:46:26 +0000 (07:46 +1200)] 
export DEFAULT_AF

3 years agoswitch gui to addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:52:18 +0000 (16:52 +1200)] 
switch gui to addrinfo

3 years agoremove conversion function
Aaron Lipinski [Tue, 6 Apr 2021 04:12:36 +0000 (16:12 +1200)] 
remove conversion function

3 years agouse addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:00:41 +0000 (16:00 +1200)] 
use addrinfo

3 years agomove conversion call to caller
Aaron Lipinski [Tue, 6 Apr 2021 03:39:57 +0000 (15:39 +1200)] 
move conversion call to caller

3 years agoextract convert_addrinfo_to_hostent function
Aaron Lipinski [Tue, 6 Apr 2021 03:09:29 +0000 (15:09 +1200)] 
extract convert_addrinfo_to_hostent function

3 years agoremove temporaries
Aaron Lipinski [Tue, 6 Apr 2021 01:49:08 +0000 (13:49 +1200)] 
remove temporaries

3 years agoprepare host with h_addr_list
Aaron Lipinski [Tue, 6 Apr 2021 01:25:10 +0000 (13:25 +1200)] 
prepare host with h_addr_list

3 years agoinit structures correctly wired up
Aaron Lipinski [Tue, 6 Apr 2021 01:23:14 +0000 (13:23 +1200)] 
init structures correctly wired up

3 years agoremove wrapper only function
Aaron Lipinski [Tue, 6 Apr 2021 00:25:12 +0000 (12:25 +1200)] 
remove wrapper only function

3 years agoresolve ipv6 only if we have ipv6
Aaron Lipinski [Sun, 4 Apr 2021 01:02:54 +0000 (13:02 +1200)] 
resolve ipv6 only if we have ipv6

3 years agotell dns process if we want 4 or 6 394/head
Aaron Lipinski [Sun, 4 Apr 2021 00:16:26 +0000 (12:16 +1200)] 
tell dns process if we want 4 or 6

3 years agoMerge pull request #395 from krisl/reset_address_family
Roger Wolff [Tue, 6 Apr 2021 08:48:57 +0000 (10:48 +0200)] 
Merge pull request #395 from krisl/reset_address_family

Reset address family

3 years agoaccept only value used in structure 395/head
Aaron Lipinski [Sat, 3 Apr 2021 22:19:29 +0000 (10:19 +1200)] 
accept only value used in structure

3 years agoaccept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:14:52 +0000 (10:14 +1200)] 
accept only value used in structure

3 years agoaccept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:08:00 +0000 (10:08 +1200)] 
accept only value used in structure

3 years agoreset ctl address family at net_reopen
Aaron Lipinski [Sat, 3 Apr 2021 20:02:38 +0000 (08:02 +1200)] 
reset ctl address family at net_reopen

3 years agoMerge pull request #393 from rpaaron/fix_changing_source
Roger Wolff [Sat, 3 Apr 2021 08:47:34 +0000 (10:47 +0200)] 
Merge pull request #393 from rpaaron/fix_changing_source

Fix changing source

3 years agoSlight cleanup, but no fix for code that came up in a bugreport.
R.E. Wolff [Sat, 3 Apr 2021 08:25:41 +0000 (10:25 +0200)] 
Slight cleanup, but no fix for code that came up in a bugreport.

3 years agorefactor - group local, remote inits 393/head
Aaron Lipinski [Sat, 3 Apr 2021 02:34:31 +0000 (15:34 +1300)] 
refactor - group local, remote inits

3 years agoadditional call from net_reopen
Aaron Lipinski [Sat, 3 Apr 2021 02:25:09 +0000 (15:25 +1300)] 
additional call from net_reopen

3 years agore-init source too
Aaron Lipinski [Sat, 3 Apr 2021 02:07:17 +0000 (15:07 +1300)] 
re-init source too

3 years agoaddr -> hostent for consistency
Aaron Lipinski [Sat, 3 Apr 2021 02:05:01 +0000 (15:05 +1300)] 
addr -> hostent for consistency

3 years agomove net_send_batch call to its caller
Aaron Lipinski [Sat, 3 Apr 2021 02:00:45 +0000 (15:00 +1300)] 
move net_send_batch call to its caller