lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 2 Dec 2015 22:08:28 -0500
From:	Phillip Susi <psusi@...ntu.com>
To:	netdev@...r.kernel.org
Subject: Ethernet MII still negotiating status?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I'm looking into a problem with the mediatomb package not starting up
correctly on recent Ubuntu releases, and I see that the problem is
that the service depends on a network up event generated by
network-manager to start.  While it actually depends on eth0 being up,
n-m decides that "networking" is up as soon as it sees no interfaces
that have a phy link need more work done ( which seems to mean still
negotiating a DHCP lease ), and so it tends to declare that networking
is "up" as soon as lo is configured, because eth0's phy status is down.

This seems to be pulled from the MII info for the link, which as far
as I can see, only indicates up/down, rather than any sort of state
like "something seems to be there, give me a second to negotiate the
LLC" or "I don't know yet, give me a second".  For my e1000e, this
negotiation seems to take about 10 seconds, by which time n-m has
decided that all interfaces that are plugged in are configured so
networking is "up".

Is there no way for an ethernet adapter to indicate that it does not
yet know for sure that it is not plugged in, and is still trying to
negotiate a link ( and thus user space should wait a second instead of
concluding that everything that is plugged and therefore likely to
ever come up in is configured )?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJWX7InAAoJEBB5UWFcu6UWwGQIAJ8Qc1/MdZl3yrDE3gMqkA1h
jJsrjJBC2gVxQqrdty6WZs4aiXgfMVzP7ROCKVNzfV3RBDl6M0g8EqQGkL7WDIgw
QrYRnELTKpbWVJKa0iweUeNhTunK7qQmYvS0REx2idLd94zPl+SRcrrugEvTesX2
9jufkt+rfEQpEiITzDU4Dy86criHR4HmOhIgUCkJrtIT2Z84V8l4R37mJjFG72qy
qYrag+hiajf2+JRkNq5VmdsYeJvnA6v78MkOepjRVvPmCioJ5y6E9v5p6OslCa9L
NrqMVphS2n8JOQab7vwpJYFfan2Z6/p4t5+7mCwLQJqN/9J7w4FkA+LbEFGVAvA=
=Jswv
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ