Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2025 19:05:03 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Maxim Sobolev <sobomax@sippysoft.com>
Cc:        Gleb Smirnoff <glebius@freebsd.org>, Allan Jude <allanjude@freebsd.org>, Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: Difference in "netstat -rn" output in the last 2 months
Message-ID:  <382bafe6ff9c04ab72d9e0c6f7fb39c3@Leidinger.net>
In-Reply-To: <CAH7qZfvuf95Z_3_kj59B7CtE1SvnoERF51XTCMa2vD2WE53yZg@mail.gmail.com>
References:  <b529fbae8f4f4ed96dab86d11995f4b9@Leidinger.net> <Z5kJzMy0qRZ3i0pD@cell.glebi.us> <CAH7qZfvuf95Z_3_kj59B7CtE1SvnoERF51XTCMa2vD2WE53yZg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_d1d3067cbd48107adf43127468117635
Content-Type: multipart/alternative;
 boundary="=_d34c0128669efe86a6a3541dfe510c34"

--=_d34c0128669efe86a6a3541dfe510c34
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

Am 2025-01-28 18:32, schrieb Maxim Sobolev:

> I also think this should be reverted back to default. "-n" refers to IP 
> to name functionality, "default" is clearly a special case. If someone 
> wants it, some other option can be added to emit 0.0.0.0/0 [1] (not 
> sure why but ok).

This was discussed in the review referenced in the commit. The -nn 
proposal was there too. Personally I agree with the rationales in favor 
of "-nn".

Bye,
Alexander.

> -Max
> 
> On Tue, Jan 28, 2025, 5:46 PM Gleb Smirnoff <glebius@freebsd.org> 
> wrote:
> 
>> On Sun, Jan 26, 2025 at 04:58:57PM +0100, Alexander Leidinger wrote:
>> A> something has changed in the output of "netstat -rn" between
>> A> 2024-11-23-195545 and 2025-01-22-151306. The default route is not 
>> listed as
>> A> "default" anymore, but with "0.0.0.0" resp. "::/0". This breaks 
>> some tools
>> A> (e.g. iocage). Iocage uses python, I'm not sure if it uses netstat 
>> or some
>> A> other interface, so it may not be directly related to netstat 
>> itself but
>> A> could be related to some other stuff (netlink maybe?).
>> A>
>> A> Does this ring a bell for someone?
>> 
>> This is very likely changed by 
>> 9206c79961986c2114a9a2cfccf009ac010ad259.
>> 
>> Allan, may be make exclusion for the "default" to keep POLA? 
>> Otherwise,
>> indeed at time of 15.0-RELEASE we will receive some negative feedback 
>> :)
>> 
>> Maybe double -nn should introduce new behavior?
>> 
>> --
>> Gleb Smirnoff

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

Links:
------
[1] http://0.0.0.0/0
--=_d34c0128669efe86a6a3541dfe510c34
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p id=3D"reply-intro">Am 2025-01-28 18:32, schrieb Maxim Sobolev:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"auto">I also think this should be reverted back to default. "-n=
" refers to IP to name functionality, "default" is clearly a special case. =
If someone wants it, some other option can be added to emit <a href=3D"http=
://0.0.0.0/0" target=3D"_blank" rel=3D"noopener noreferrer">0.0.0.0/0</a> (=
not sure why but ok).</div>
</div>
</blockquote>
<div id=3D"replybody1">
<div dir=3D"auto">
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">This was discussed in the review referenced in the commit=
=2E The -nn proposal was there too. Personally I agree with the rationales =
in favor of "-nn".</div>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">Bye,</div>
<div dir=3D"auto">Alexander.</div>
<div dir=3D"auto">&nbsp;</div>
</div>
</div>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"auto">
<div dir=3D"auto">-Max</div>
</div>
<br />
<div class=3D"v1gmail_quote v1gmail_quote_container">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Tue, Jan 28, 2025, 5:46=E2=80=AF=
PM Gleb Smirnoff &lt;<a href=3D"mailto:glebius@freebsd.org" rel=3D"noreferr=
er">glebius@freebsd.org</a>&gt; wrote:</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0 0 0 .8ex; border-lef=
t: 1px #ccc solid; padding-left: 1ex;">On Sun, Jan 26, 2025 at 04:58:57PM +=
0100, Alexander Leidinger wrote:<br />A&gt; something has changed in the ou=
tput of "netstat -rn" between<br />A&gt; 2024-11-23-195545 and 2025-01-22-1=
51306. The default route is not listed as<br />A&gt; "default" anymore, but=
 with "0.0.0.0" resp. "::/0". This breaks some tools<br />A&gt; (e.g. iocag=
e). Iocage uses python, I'm not sure if it uses netstat or some<br />A&gt; =
other interface, so it may not be directly related to netstat itself but<br=
 />A&gt; could be related to some other stuff (netlink maybe?).<br />A&gt; =
<br />A&gt; Does this ring a bell for someone?<br /><br />This is very like=
ly changed by 9206c79961986c2114a9a2cfccf009ac010ad259.<br /><br />Allan, m=
ay be make exclusion for the "default" to keep POLA? Otherwise,<br />indeed=
 at time of 15.0-RELEASE we will receive some negative feedback :)<br /><br=
 />Maybe double -nn should introduce new behavior?<br /><br />-- <br />Gleb=
 Smirnoff<br /><br /></blockquote>
</div>
</div>
</blockquote>
<p><br /></p>
<div id=3D"signature">-- <br />
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener nore=
ferrer">http://www.Leidinger.net</a>; <a href=3D"mailto:Alexander@Leidinger.=
net:">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br /><a href=3D"h=
ttp://www.FreeBSD.org" target=3D"_blank" rel=3D"noopener noreferrer">http:/=
/www.FreeBSD.org</a> &nbsp; &nbsp;<a href=3D"mailto:netchild@FreeBSD.org">n=
etchild@FreeBSD.org</a> &nbsp;: PGP 0x8F31830F9F2772BF</div>
</div>
</body></html>

--=_d34c0128669efe86a6a3541dfe510c34--


--=_d1d3067cbd48107adf43127468117635
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmeZHGEACgkQEg2wmwP4
2Ib70w//XBeEj3JBN0ofGWpsM9omHXGGhKlumr3FtlVtdWvHyIy2hlBt+2JXDXbU
v4TN3O7SNnXah1hHd15F/4jScVTQWmMJQShTdASM+29kGOR/bveNG63HyS6Q7xb9
Y1HdMXQ6hysehbDNBmmiQyZlcab5hvOIY7nqtUOSQ7Eh3M6SPv1ZcZJrkLrerEVB
7JAI4kvK7WgvUkYqhCypfFfFpII+bOyT2zdcHp3OMd8MfkkEwyB3Dd6xNIDy/thr
/L9ospHngMy8rOiPVQ5LrkuC0Mg8YX6FlGLhOLIK3CmOmt/iCJLMJCihdz1k5YqF
0F805VQ/y0tfXFGZauFRvLfUVVUxwfhff5BeeoXG78NtcnRulmNyFGTliZK/nsE6
CSa/3htrflKfSZv9WyH7Dhf9cO2dWE8WWW1PElBjZMOuiBZ4b39KdBsiqQk5/DE9
7RQ+LmI47qFqfm62gF3mFSLTJFMqvYTV1LSHNSkrD1j9pgsCnF7AIjrmxNQL/wOc
f6lSoU6hwwTGTxRvSOOjJIe6aSr7dDjW4qk1/c3c3moOvOTxPqxQZeSrmeoeN7Va
6PYfTFiFOjJpzA2hy+3z0QkxWWGp8bl1uo6P4FQNMBIXCYYXA9+8QVgs9iDOf4OJ
Jo7xiyaH/+c/Z+O/AtpXNKq8vIzRNbaR6QRvZKvfYWhWj5NMNc8=
=r/jQ
-----END PGP SIGNATURE-----

--=_d1d3067cbd48107adf43127468117635--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?382bafe6ff9c04ab72d9e0c6f7fb39c3>