No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Rohr f360e458fc ethernet: read running flag before bringing up interface
Previously, the "running" flag was checked right after calling
setInterfaceUp(), which caused an updateInterfaceState(UP) event to be
generated at the end of addInterface(). This "artificial" link up
notification is only needed for interfaces that already had link before
being added (as in this case, no RTM_NEWLINK callbacks are received, and
link state needs to "manually" be set to UP to start configuring the
interface). This could happen when system server crashes and gets
restarted, or when ethernet is temporarily disabled via the
EthernetManager API.

Reading the running flag before bringing up the interface ensures the
updateInterfaceState(UP) event is not generated for interfaces that were
just brought up.
This fix gets rid of the up/up/down/up callback when a new interface is
added.

Test: atest EthernetManagerTest
Change-Id: I122dc886a94222c575f44182b943e64b435c03e8
2022-08-24 13:14:33 -07:00
bpf_progs dscpPolicy.c - old/new_first_u32 is actually be32 2022-08-22 09:12:26 +00:00
common replace U32 ifindex with S32 2022-08-18 01:07:11 +00:00
framework Removing SuppressLint on NetworkRequst 2022-08-12 16:10:29 -07:00
framework-t Merge "Cleanup constructor of NetworkStats#Entry" am: 0ab4d265d6 2022-08-05 08:37:59 +00:00
nearby Add more owners for Nearby code. am: da95563e96 2022-07-21 03:27:53 +00:00
netd simplify netd updatable 2022-08-15 17:40:31 +00:00
service Merge "Use PerUidCounter in the connectivity static library" 2022-08-23 18:25:03 +00:00
service-t ethernet: read running flag before bringing up interface 2022-08-24 13:14:33 -07:00
tests ethernet: read running flag before bringing up interface 2022-08-24 13:14:33 -07:00
Tethering Merge "EthernetTetheringTest: testTetherUdpV4Dns" 2022-08-24 08:30:56 +00:00
tools Do not jarjar classes in the target package 2022-08-10 15:28:14 +09:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Add additional IPsec owners 2021-12-08 06:57:51 +00:00
OWNERS_core_networking add prohr to OWNERS_core_networking 2022-01-11 18:54:31 +00:00
OWNERS_core_networking_xts Add an OWNERS_core_networking_xts for CTS/GTS/... and use it. 2022-01-18 01:42:39 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Add back compat config for NSD 2022-07-27 19:53:25 +09:00