summaryrefslogtreecommitdiff
path: root/packages/Tethering/src/android/net/util/TetheringUtils.java
AgeCommit message (Collapse)Author
2020-10-29Restructure Module code [ com.android.tethering ]Baligh Uddin
Code Migration from frameworks/base/packages/Tethering -> packages/modules/Connectivity/Tethering BUG: 167962976 Test: TH Change-Id: I2accb96abbdfa665ef34aa79e87af040226bcf32
2020-09-22tethering: DAD Proxy DaemonTyler Wear
DAD proxy daemon responsible for forwarding NS/NA between tethered iface and upstream iface. Change-Id: I2e58e10e7fa7dba6a6f63ad03b000549f3afc37e
2020-05-29[BOT.1] Add a class ForwardedStats in TetheringUtilsHungming Chen
Used to record offload transmitted/received forwarded bytes/packets. Bug: 150736748 Test: new test BpfTetheringCoordinatorTest Change-Id: Ie8725f95c3ddd5fb3811d479de32d2c1f7dcb493
2020-03-17Support static address configurationmarkchien
Application can specify static ipv4 server and client address to setup tethering and this is one shot configuration. Tethering service would not save the configuration and the configuration would be reset when tethering stop or start failure. When startTethering callback fired, it just mean tethering is requested successful. Therefore, callers may call startTethering again if startTethering successful but do not receive following tethering active notification for a while. Tethering service never actually does anything synchronously when startTethering is called: -startProvisioningIfNeeded just posts a message to the handler thread. -enableTetheringInternal doesn't do anything synchronously, it just asks the downstreams to get their interfaces ready and waits for callbacks. If tethering is already enabled with a different request, tethering would be disabled and re-enabled. Bug: 141256482 Test: -build, flash, boot -atest TetheringTests -atest CtsTetheringTest Change-Id: I0399917e7cefa1547d617e688225544c4fc1a231
2020-02-10Move offload config hidl usage from native to javamarkchien
TetheringUtil JNI is too big that it statically linking hidl and its dependency library. To remove these static libraries, calling hidl in java directly instead of using JNI. Bug: 148984662 Test: -build, flash, boot -manually ON/OFF tethering Change-Id: Id5a9759eb453fddaf0c3b7a31da17224e35e963e
2020-01-07Fix some @hide usage in Tetheringmarkchien
Using alternative way to replace some @hide API. Bug: 144814072 Test: build, flash, boot atest TetheringTests Change-Id: I1e12d69db1ad91dff553e142e17c6a70808e1639
2020-01-07Change tetheroffloadjni to tetheringutilsjnimarkchien
Rename tetheroffloadjni to tetheringutilsjni and move setupRaSocket jni method from NetUtils into tetheringutilsjni. Bug: 143195885 Test: -build, flash, boot -atest TetheringTests -Off/On hotspot with ipv6 upstream Change-Id: Ib68eb6999bbe2d3ca97e68712f22b105311ef800